Skip to content

Commit

Permalink
Merge pull request #30 from wlzch/patch-1
Browse files Browse the repository at this point in the history
Add authentication_id to captureCreditCardPayment
  • Loading branch information
afik authored Oct 10, 2017
2 parents d59c59c + f02840b commit db0b265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XenditPHPClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function getBalance () {
return $responseObject;
}

function captureCreditCardPayment ($external_id, $token_id, $amount) {
function captureCreditCardPayment ($external_id, $token_id, $amount, $authenticationId = null) {
$curl = curl_init();

$headers = array();
Expand All @@ -222,6 +222,7 @@ function captureCreditCardPayment ($external_id, $token_id, $amount) {
$data['external_id'] = $external_id;
$data['token_id'] = $token_id;
$data['amount'] = $amount;
$data['authentication_id'] = $authenticationId;

$payload = json_encode($data);

Expand Down

0 comments on commit db0b265

Please sign in to comment.