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

{
  "merchantAccountId": "8zbSM0000000F8jYAE",
  "referenceOwnerId": "001SM00000FwMhEYAV",
  "paymentGatewayId": "0b0SM0000002oLhYAI",
  "Status": "Active",
  "usageType": "OFFSESSION",
  "Name": "AmazonPay...001",
  "GatewayReference": "cus_TEGn3J3WI5onpb",
  "gatewayToken": "pm_1SHoagRO2MG01L0jLSbc4sdm",
  "last4": "1234",
  "type": "extd_wallet",
  "Checksum": "UNIQUE_GATEWAY_HASH_Wallet_10001",
  "ExtendedPaymentMethodType": "amazon_pay"
}

Sample JSON response

{
  "id": "12qSM000000qfS6YAI",
  "success": true,
  "errors": []
}

Here’s a sample UI showing example records created for extd_wallet. note: In this example, ExtendedPaymentMethodType is set to amazon_pay for testing. You can use any value not supported by Salesforce and customize your implementation as needed.

Example of a saved payment method record for a wallet payment type showing field values and status