Skip to content

Commit

Permalink
0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 26, 2018
1 parent 4ab4c69 commit 9c0b6bc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
15 changes: 12 additions & 3 deletions Charge.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Dfe\TBCBank;
/**
* 2017-04-18
* 2018-09-26
* @method Method m()
* @method Settings s()
*/
final class Charge extends \Df\PaypalClone\Charge {
final class Charge extends \Df\Payment\Charge {
/**
* 2017-08-19
* @override
Expand All @@ -31,7 +31,16 @@ protected function k_MerchantId() {return '';}
* @used-by \Df\PaypalClone\Charge::p()
* @return array(string => mixed)
*/
protected function pCharge() {$s = $this->s(); return [];}
protected function pCharge() {$s = $this->s(); return [
// 2018-09-26 «transaction amount in fractional units, mandatory (up to 12 digits)»
'amount' => $this->amountF()
// 2018-09-26 «client’s IP address, mandatory (15 characters)»
,'client_ip_addr' => df_visitor_ip()
,'command' => 'v' // 2018-09-26 «identifies a request for transaction registration»
,'currency' => 981 // 2018-09-26 «transaction currency code (ISO 4217), mandatory, (3 digits)»
,'description' => 'UFCTEST' // 2018-09-26 «transaction details, optional (up to 125 characters)»
,'msg_type' => 'SMS' // 2018-09-26 «STUB»
];}

/**
* 2017-04-18
Expand Down
5 changes: 4 additions & 1 deletion T/CaseT/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class Init extends \Dfe\TBCBank\T\CaseT {
/** @test 2018-09-26 */
function t00() {}

/** @test 2018-09-26 */
/** 2018-09-26 */
function t01() {echo $this->transId();}

/** 2018-09-26 */
Expand All @@ -27,6 +27,9 @@ function t02() {
echo $z->request()->getBody();
}

/** @test 2018-09-26 */
function t03() {echo df_currency_num('GEL') . ' ' . gettype(df_currency_num('GEL'));}

/**
* 2018-09-26
* @used-by t01()
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/tbc-bank"
,"version": "0.0.2"
,"version": "0.0.3"
,"description": "TBC Bank (Georgia) integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/tbc-bank"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.8.9"}
,"require": {"mage2pro/core": ">=3.9.9"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\TBCBank\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit 9c0b6bc

Please sign in to comment.