Payment Method Details
This section helps to specify what information is needed per payment method during the Create Payment Method step of the flow.
GoPay
{
"shopper_id": "{shopper.id}",
"type": "gopay",
"gopay": {
"country_code": "ID",
"msisdn": "+6281231684642"
}
}Request Parameters
shopper_id
String
Yes
Shopper ID will be generated by Coda
Shopper ID must have a length between 20 and 32 and follow the pattern [A-Za-z]+_[A-Za-z0-9]+
type
String
Yes
Type of payment method
Type must have a length between 3 and 64 and follow the pattern [a-zA-Z0-9_]+
gopay.country_code
String
Yes
Country associated with payment method using ISO 3166 ALPHA-2 country codes
Country code length must be 2 and follow the pattern (\w{2})
gopay.msisdn
String
Yes
Mobile number associated with payment method
Msisdn length must be between 12 and 16 and must follow the pattern +[0-9]+
Payment Method GoPay Object
id
String
Payment Method ID generated by Coda
shopper_id
String
Shopper ID generated by Coda
type
String
Type of Payment Method
gopay.id
String
Payment Method Go Pay ID generated by Coda
gopay.country_code
String
The country code associated with the specified payment method using GoPay
gopay.msisdn
String
The phone number associated with the specified payment method using GoPay
Mada - Card Payment Method
Request Parameters
shopper_id
String
Yes
Shopper ID will be generated by Coda
Shopper ID must have a length between 20 and 32 and follow the pattern [A-Za-z]+_[A-Za-z0-9]+
type
String
Yes
Type of payment method
Type must have a length between 3 and 64 and follow the pattern [a-zA-Z0-9_]+
card.country_code
String
Yes
Country associated with payment method using ISO 3166 ALPHA-2 country codes
Country code length must be 2 and follow the pattern (\w{2})
Payment Method Card Object
id
String
Payment Method ID generated by Coda
shopper_id
String
Shopper ID generated by Coda
type
String
Type of Payment Method
card.id
String
Payment Method Card ID generated by Coda
card.country_code
String
The country code associated with the payment method using a card
card.last_four
String
The Last 4 digits of Card Number
DANA Wallet
Request Parameters
shopper_id
String
Yes
Shopper ID will be generated by Coda
Shopper ID must have a length between 20 and 32 and follow the pattern [A-Za-z]+_[A-Za-z0-9]+
type
String
Yes
Type of payment method
Type must have a length between 3 and 64 and follow the pattern [a-zA-Z0-9_]+
dana.country_code
String
Yes
Country associated with payment method using ISO 3166 ALPHA-2 country codes
Country code length must be 2 and follow the pattern (\w{2})
Payment Method DANA Object
id
String
Payment Method ID generated by Coda
shopper_id
String
Shopper ID generated by Coda
type
String
Type of Payment Method
dana.id
String
Payment Method DANA ID generated by Coda
dana.country_code
String
The country code associated with the specified payment method using DANA Wallet
Last updated
Was this helpful?