Skip to content

Commit

Permalink
1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 14, 2017
1 parent 09d0e69 commit 6a2b1fc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ function __construct(Response $response, array $request = []) {
* @see \Df\Payment\Exception::message()
* @return string
*/
function message() {return df_api_rr_failed('Checkout.com',
function message() {return dfc($this, function() {return df_api_rr_failed('Checkout.com',
$this->_r->a(!$this->_r->hasId() ? null : [
'status', 'responseMessage', 'id', 'responseCode', 'authCode', 'responseAdvancedInfo'
])
,$this->_request
);}
);});}

/**
* 2016-07-17
Expand Down
4 changes: 1 addition & 3 deletions Source/Prefill.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,5 @@ protected function map() {return [0 => 'No'] + dfa_combine_self(array_keys($this
* 2016-05-10
* @return array(mixed => mixed)
*/
private function _config() {return
df_http_json_c('https://mage2.pro/ext/checkout.com/test-card-data.json')
;}
private function _config() {return df_module_json($this, 'test-card-data');}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/checkout.com"
,"version": "1.4.0"
,"version": "1.4.1"
,"description": "The «Checkout.com» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/checkout-com"
Expand Down
14 changes: 14 additions & 0 deletions etc/test-card-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"Success": {
"cvv": "257"
,"expiration-month": 6
,"expiration-year": 2025
,"number": "5436031030606378"
}
,"Failure": {
"cvv": "204"
,"expiration-month": 6
,"expiration-year": 2019
,"number": "5436031030606378"
}
}

0 comments on commit 6a2b1fc

Please sign in to comment.