Skip to content

Commit

Permalink
Merge pull request #18 from qriouslad/qriouslad-xendit-patch-1
Browse files Browse the repository at this point in the history
Add the missing virtual_account_number parameter
  • Loading branch information
boxbag authored May 7, 2017
2 parents 20600fc + f18d052 commit b919093
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 @@ -91,7 +91,7 @@ function getVirtualAccountBanks () {
return $responseObject;
}

function createCallbackVirtualAccount ($external_id, $bank_code, $name) {
function createCallbackVirtualAccount ($external_id, $bank_code, $name, $virtual_account_number) {
$curl = curl_init();

$headers = array();
Expand All @@ -102,6 +102,7 @@ function createCallbackVirtualAccount ($external_id, $bank_code, $name) {
$data['external_id'] = $external_id;
$data['bank_code'] = $bank_code;
$data['name'] = $name;
$data['virtual_account_number'] = $virtual_account_number;

$payload = json_encode($data);

Expand Down

0 comments on commit b919093

Please sign in to comment.