Skip to content

Commit

Permalink
Merge pull request #123 from santiago-delpuerto-cko/dev
Browse files Browse the repository at this point in the history
Bug fix on riskCheck parameter
  • Loading branch information
nicolas-maalouf-cko authored Mar 4, 2019
2 parents 26ba089 + c2d199a commit 56f9bf9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Or require the Checkout.com package inside the composer.json of your project:
```
"require": {
"php": ">=5.2.4",
"checkout/checkout-php-api": "1.2.17"
"checkout/checkout-php-api": "1.2.18"
},
```
__Manually__
Expand Down
2 changes: 1 addition & 1 deletion com/checkout/ApiServices/Charges/ChargesMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function requestPayloadConverter($requestModel = null )
$requestPayload['chargeMode'] = $requestModel->getChargeMode();
}

if(method_exists($requestModel,'getRiskCheck') && $requestModel->getRiskCheck()) {
if(method_exists($requestModel,'getRiskCheck') && is_bool($requestModel->getRiskCheck())) {
$requestPayload['riskCheck'] = $requestModel->getRiskCheck();
}

Expand Down
2 changes: 1 addition & 1 deletion com/checkout/packages/CheckoutApi/Client/Constant.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ final class CheckoutApi_Client_Constant
const VERSION = 'v2';
const STATUS_CAPTURE = 'Captured';
const STATUS_REFUND = 'Refunded';
const LIB_VERSION = 'v1.2.17';
const LIB_VERSION = 'v1.2.18';
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "checkout/checkout-php-api",
"description": "Checkout PHP API Library",
"homepage": "https://github.com/checkout/checkout-php-library",
"version": "1.2.17",
"version": "1.2.18",
"type": "library",
"license": "MIT",
"keywords": ["checkout.com","payment","gateway","online payment","checkoutcom","GW3","CKO"],
Expand Down

0 comments on commit 56f9bf9

Please sign in to comment.