Skip to content

Commit

Permalink
1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Nov 12, 2017
1 parent b2eec9f commit 85a15bf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Facade/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function void($id) {return null;}
* http://moip.github.io/moip-sdk-js
* @override
* @see \Df\StripeClone\Facade\Charge::cardIdPrefix()
* @used-by \Df\StripeClone\Payer::usePreviousCard()
* @used-by \Df\StripeClone\Payer::tokenIsNew()
* @return string
*/
protected function cardIdPrefix() {return 'CRC-';}
Expand Down
8 changes: 4 additions & 4 deletions P/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ function pTaxDocument() {return [
* 2017-06-11
* @override
* @see \Df\StripeClone\P\Charge::v_CardId()
* @used-by \Dfe\Moip\P\Reg::v_CardId()
* @used-by \Df\StripeClone\P\Charge::request()
* @used-by \Dfe\Moip\P\Reg::v_CardId()
* @param string $id
* @param bool $isPrevious [optional]
* @param bool $isNew
* @return array(string => mixed)
*/
function v_CardId($id, $isPrevious = false) {return [
function v_CardId($id, $isNew) {return [
// 2017-06-09
// «Credit Card data. It can be:
// *) the ID of a credit card previously saved,
Expand All @@ -124,7 +124,7 @@ function v_CardId($id, $isPrevious = false) {return [
// http://moip.github.io/moip-sdk-js
// A card ID looks like «CRC-M423RWG3PK7J».
'creditCard' => [
$isPrevious ? 'id' : 'hash' => $id
!$isNew ? 'id' : 'hash' => $id
// 2017-06-09
// «Do not send when the request is using credit card id»
// Conditional, String.
Expand Down
2 changes: 1 addition & 1 deletion P/Reg.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ protected function p() {return df_clean([
* @param string $id
* @return array(array(string => mixed))
*/
protected function v_CardId($id) {return [$this->charge()->v_CardId($id)];}
protected function v_CardId($id) {return [$this->charge()->v_CardId($id, true)];}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/moip"
,"version": "1.2.2"
,"version": "1.2.3"
,"description": "Moip integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/moip"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.2.27", "mage2pro/geo": ">=1.2.0", "mage2pro/phone": ">=1.0.0"}
,"require": {"mage2pro/core": ">=3.3.5", "mage2pro/geo": ">=1.2.0", "mage2pro/phone": ">=1.0.0"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Moip\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit 85a15bf

Please sign in to comment.