Skip to content

Commit

Permalink
[LIBSDK] add order id to Payment Confirm example
Browse files Browse the repository at this point in the history
  • Loading branch information
rpWelschlau authored Jun 1, 2018
1 parent 60b4673 commit beec47c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions example.paymentConfirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
'ProfileId' => PROFILE_ID,
'Securitycode' => SECURITYCODE
],
'TransactionId' => $transactionId
'TransactionId' => $transactionId,
'External' => [ // If order id or customer id isn't created at the time of Payment Request use Payment Confirm to hand missing information later
'MerchantConsumerId' => "1234567", // Customer Id
'OrderId' => "xyzabc"
]
]);

$rb = new RatePAY\RequestBuilder(true); // Sandbox mode = true
Expand All @@ -34,4 +38,4 @@

/*********************************************************************************************************************************
* The library throws decidedly exceptions. It's recommended to surround model building and request calls with try-catch-blocks. *
*********************************************************************************************************************************/
*********************************************************************************************************************************/

0 comments on commit beec47c

Please sign in to comment.