Payment Methods
Create and manage payment methods of customers
PaymentMethods - Create
Creates and stores a payment method against a customer. In case of cards, this API should be used only by PCI compliant merchants.
PaymentMethods - Create › Request Body
payment_methodIndicates the type of payment method. Eg: 'card', 'wallet', etc.
payment_method_typeIndicates the sub type of payment method. Eg: 'google_pay' & 'apple_pay' for wallets.
payment_method_issuerThe name of the bank/ provider issuing the payment method to the end user
payment_method_issuer_codemetadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
customer_idThe unique identifier of the customer.
card_networkThe card network
client_secretFor Client based calls, SDK will use the client_secret in order to call /payment_methods Client secret will be generated whenever a new payment method is created
PaymentMethods - Create › Responses
Payment Method Created
merchant_idUnique identifier for a merchant
payment_method_idThe unique identifier of the Payment method
payment_methodIndicates the type of payment method. Eg: 'card', 'wallet', etc.
customer_idThe unique identifier of the customer.
payment_method_typeIndicates the sub type of payment method. Eg: 'google_pay' & 'apple_pay' for wallets.
recurring_enabledIndicates whether the payment method supports recurring payments. Optional.
installment_payment_enabledIndicates whether the payment method is eligible for installment payments (e.g., EMI, BNPL). Optional.
payment_experienceType of payment experience enabled with the connector
metadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
createdA timestamp (ISO 8601 code) that determines when the payment method was created
last_used_atclient_secretFor Client based calls
List payment methods for a Merchant
Lists the applicable payment methods for a particular Merchant ID. Use the client secret and publishable key authorization to list all relevant payment methods of the merchant for the payment corresponding to the client secret.
query Parameters
client_secretThis is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
accepted_countriesThe two-letter ISO currency code
accepted_currenciesThe three-letter ISO currency code
amountThe amount accepted for processing by the particular payment method.
recurring_enabledIndicates whether the payment method is eligible for recurring payments
installment_payment_enabledIndicates whether the payment method is eligible for installment payments
limitIndicates the limit of last used payment methods
card_networksIndicates whether the payment method is eligible for card netwotks
List payment methods for a Merchant › Responses
Payment Methods retrieved
currencyThe three-letter ISO 4217 currency code (e.g., "USD", "EUR") for the payment amount. This field is mandatory for creating a payment.
Information about the payment method
show_surcharge_breakup_screenflag to indicate if surcharge and tax breakup screen should be shown or not
request_external_three_ds_authenticationflag to indicate whether to perform external 3ds authentication
is_tax_calculation_enabledflag that indicates whether to calculate tax on the order amount
is_guest_customerindicates whether this is a guest customer flow
redirect_urlRedirect URL of the merchant
merchant_namepayment_typeThe type of the payment that differentiates between normal and various types of mandate payments. Use 'setup_mandate' in case of zero auth flow.
collect_shipping_details_from_walletsflag that indicates whether to collect shipping details from wallets or from the customer
collect_billing_details_from_walletsflag that indicates whether to collect billing details from wallets or from the customer
Intent-only payment details returned as part of the Payment Method List response
show_logoWhether to show logo
logo_urlThe logo URL
List payment methods for a Customer
Lists all the applicable payment methods for a particular Customer ID.
path Parameters
customer_idThe unique identifier for the customer account
query Parameters
client_secretThis is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
accepted_countriesThe two-letter ISO currency code
accepted_currenciesThe three-letter ISO currency code
amountThe amount accepted for processing by the particular payment method.
recurring_enabledIndicates whether the payment method is eligible for recurring payments
installment_payment_enabledIndicates whether the payment method is eligible for installment payments
limitIndicates the limit of last used payment methods
card_networksIndicates whether the payment method is eligible for card netwotks
List payment methods for a Customer › Responses
Payment Methods retrieved
List of payment methods for customer
is_guest_customerReturns whether a customer id is not tied to a payment intent (only when the request is made against a client secret)
List customer saved payment methods for a Payment
Lists all the applicable payment methods for a particular payment tied to the client_secret.
query Parameters
client_secretThis is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
accepted_countriesThe two-letter ISO currency code
accepted_currenciesThe three-letter ISO currency code
amountThe amount accepted for processing by the particular payment method.
recurring_enabledIndicates whether the payment method is eligible for recurring payments
installment_payment_enabledIndicates whether the payment method is eligible for installment payments
limitIndicates the limit of last used payment methods
card_networksIndicates whether the payment method is eligible for card netwotks
List customer saved payment methods for a Payment › Responses
Payment Methods retrieved for customer tied to its respective client-secret passed in the param
List of payment methods for customer
is_guest_customerReturns whether a customer id is not tied to a payment intent (only when the request is made against a client secret)
Payment Method - Set Default Payment Method for Customer
Set the Payment Method as Default for the Customer.
path Parameters
customer_idThe unique identifier for the Customer
payment_method_idThe unique identifier for the Payment Method
Payment Method - Set Default Payment Method for Customer › Responses
Payment Method has been set as default
customer_idThe unique identifier of the customer.
payment_methodIndicates the type of payment method. Eg: 'card', 'wallet', etc.
default_payment_method_idThe unique identifier of the Payment method
payment_method_typeIndicates the sub type of payment method. Eg: 'google_pay' & 'apple_pay' for wallets.
Payment Method - Retrieve
Retrieves a payment method of a customer.
path Parameters
method_idThe unique identifier for the Payment Method
Payment Method - Retrieve › Responses
Payment Method retrieved
merchant_idUnique identifier for a merchant
payment_method_idThe unique identifier of the Payment method
payment_methodIndicates the type of payment method. Eg: 'card', 'wallet', etc.
customer_idThe unique identifier of the customer.
payment_method_typeIndicates the sub type of payment method. Eg: 'google_pay' & 'apple_pay' for wallets.
recurring_enabledIndicates whether the payment method supports recurring payments. Optional.
installment_payment_enabledIndicates whether the payment method is eligible for installment payments (e.g., EMI, BNPL). Optional.
payment_experienceType of payment experience enabled with the connector
metadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
createdA timestamp (ISO 8601 code) that determines when the payment method was created
last_used_atclient_secretFor Client based calls
Payment Method - Delete
Deletes a payment method of a customer.
path Parameters
method_idThe unique identifier for the Payment Method
Payment Method - Delete › Responses
Payment Method deleted
payment_method_idThe unique identifier of the Payment method
deletedWhether payment method was deleted or not
Payment Method - Update
Update an existing payment method of a customer. This API is useful for use cases such as updating the card number for expired cards to prevent discontinuity in recurring payments.
path Parameters
method_idThe unique identifier for the Payment Method
Payment Method - Update › Request Body
client_secretThis is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK
Payment Method - Update › Responses
Payment Method updated
merchant_idUnique identifier for a merchant
payment_method_idThe unique identifier of the Payment method
payment_methodIndicates the type of payment method. Eg: 'card', 'wallet', etc.
customer_idThe unique identifier of the customer.
payment_method_typeIndicates the sub type of payment method. Eg: 'google_pay' & 'apple_pay' for wallets.
recurring_enabledIndicates whether the payment method supports recurring payments. Optional.
installment_payment_enabledIndicates whether the payment method is eligible for installment payments (e.g., EMI, BNPL). Optional.
payment_experienceType of payment experience enabled with the connector
metadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
createdA timestamp (ISO 8601 code) that determines when the payment method was created
last_used_atclient_secretFor Client based calls