Description
The chargeTokenBankTransfer request will be used to mark the transaction as "Pending bank transfer" and to get the converted amount and currency for specific bank, API will accept a CompanyToken, TransactionToken and BankCode (received in GetBankTransferOptions).
Upon the customer payment, the transaction status would be updated and should be checked in “verifyToken”
URL: https://secure1secure.sandbox3gdirectpay.directpay.onlinecom/API/v6/
Response
The method will return the operation result.
Variables to send:
Parameter | Data type | Description | |
Request | Text | chargeTokenBankTransfer | Mandatory |
CompanyToken | Token | Token you got from 3G to operate this API | Mandatory |
TransactionToken | Token | Transaction token as accepted from the createToken. | Mandatory |
BankCode | Text | BankCode - received in GetBankTransferOptions | Mandatory |
...
Request example:
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="utf-8"?> <API3G> <CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken> <Request>chargeTokenBankTransfer</Request> <TransactionToken>EC9E975A-A7A2-4031-8972-BF123CDD9EDD</TransactionToken> <BankCode>DTB</BankCode> </API3G> |
...
Parameter | Data type | Description |
Result | 3 digits code | A code will be sent with the result of the request |
ResultExplanation | Text | Free text of the result |
ConvertedAmount | Money | The transaction converted amount |
ConvertedCurrency | Text | The transaction converted currency |
Respond codes:
Code | Explanation |
000 | Transaction peding for bank transfer DTB |
999 | Custom error message |
804 | Error in XML |
950 | Request missing transaction level mandatory fields |
...
Respond example:
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="utf-8"?> <API3G> <Result>000</Result> <ResultExplanation>Transaction pedingpending for bank transfer DTB</ResultExplanation> <ConvertedAmount>1.01</ConvertedAmount> <ConvertedCurrency>USD</ConvertedCurrency> </API3G> |
...