To enable the Save Card option in the Mobile API integration, follow these steps:
- Save Initial Transaction Reference: Store the initial transaction reference number against the customer.
- Repeat Payments: If the same customer makes a payment again on your store, pass the saved Transaction Reference number of the initial transaction made by that customer. This will enable the transaction to utilize the Save Card with CVV validation feature.
- Pass Initial Transaction Reference: In the Mobile API request, include the Transaction Reference number of the initial transaction made by the specific customer in the parameter. (Refer to the example below for clarification).
- Pre-filled Payment Page: By including the parameter in the request, the customer will be redirected to the TelrPayment page, where their card number and expiry date will be pre-filled on the payment page.
<?xml version="1.0" encoding="UTF-8"?>
<mobile>
<store>Stire ID</store>
<key>Mykey123</key>
<device>
<type>Android</type>
<id>36C0EC49-AA2F-47DC-A4D7-D9927A739F123</id>
</device>
<app>
<name><<company_name>>SDK</name>
<version>0.0.1</version>
<user>123456</user>
<id>123456796</id>
</app>
<tran>
<test>1</test>
<type>paypage</type>
<class>ecom</class>
<cartid>myCartId123cartid>
<description>MyCartDesc</description>
<currency>SAR</currency>
<amount>1</amount>
****************************************
--> <firstref>yourFirstTransactionRef</firstref>
****************************************
<language>en</language>
</tran>
<billing>
<name>
<title></title>
<first></first>
<last></last>
</name>
<address>
<line1></line1>
<city></city>
<region></region>
<country></country>
</address>
<email>[email protected]</email>
</billing>
<paymethod>
<type></type>
<cardtoken></cardtoken>
<stcpayid></stcpayid>
</paymethod>
<repeat>
<amount>10</amount>
<interval></interval>
<period>M</period>
<term>12</term>
<final></final>
<start>27/05/2023</start>
</repeat>
</mobile