Example: Create Saved Payment Method for Wallet

Set the type field to extd_wallet and provide the exact wallet payment type expected by your payment gateway in the extendedPaymentMethodType field to create Saved Payment Method (SPM) for a wallet payment method.

Sample JSON request

1{
2  "merchantAccountId": "8zbSM0000000F8jYAE",
3  "referenceOwnerId": "001SM00000FwMhEYAV",
4  "paymentGatewayId": "0b0SM0000002oLhYAI",
5  "Status": "Active",
6  "usageType": "OFFSESSION",
7  "Name": "AmazonPay...001",
8  "GatewayReference": "cus_TEGn3J3WI5onpb",
9  "gatewayToken": "pm_1SHoagRO2MG01L0jLSbc4sdm",
10  "last4": "1234",
11  "type": "extd_wallet",
12  "Checksum": "UNIQUE_GATEWAY_HASH_Wallet_10001",
13  "ExtendedPaymentMethodType": "amazon_pay"
14}

Sample JSON response

1{
2  "id": "12qSM000000qfS6YAI",
3  "success": true,
4  "errors": []
5}