The SuperWalletSetDefaultCard request will set the sent card token as default card for the customer
URL: https://secure1.sandbox.directpay.online/API/v6/
Variables to send:
Parameter | Data type | Description | |
---|---|---|---|
Request | Text | SuperWalletGetTransactions | Mandatory |
CompanyToken | Token | Token you got from 3G to operate this API | Mandatory |
customerUnq | Token | Token of the customer | Mandatory |
customerToken | Token | Token for customer's credit card. | Mandatory |
customerCreditCardToken | Token | Token of the credit card to be set as default | Mandatory |
Request example
Request example
<?xml version="1.0" encoding="utf-8"?> <API3G> <CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken> <Request>SuperWalletSetDefaultCard</Request> <customerToken>C34F09A5-A6BA-46BD-9245-38AC7E32CC20</customerToken> <customerCreditCardToken>CA5377AF-AF78-4954-9780-14339911A59F</customerCreditCardToken> </API3G>
Response:
The server will respond for the SuperWalletSetDefaultCard request according to the following results:
Parameter | Data type | Description |
---|---|---|
Result | Number | Result Code |
ResultExplanation | Text | Free text of the response |
Values:
Result | Result Explanation |
---|---|
000 | Card set as default card |
902 | Data mismatch in one of the fields |
999 | Card does not exist / Customer does not exist |
Response example
<?xml version="1.0" encoding="utf-8"?> <API3G> <Result>000</Result> <ResultExplanation>Card set as default card</ResultExplanation> </API3G>