Convenience Store (OTC)
Convenience Store Call Flow
With the Convenience Store payment type, customers can complete their payments at a convenience store or a designated payment counter. Partners receive a unique payment code in the profile field, which the customer presents at the counter to make the payment.
For more details, refer to the Convenience Store details in the Profile field within the response table.

Request Message
api_key
String
256
Mandatory API key provided by Coda. Refer to Getting started to find out how to get it.
project_id
String
10
*This field is only needed for v2.0 API
Mandatory
Project ID provided by Coda, unique for each title product. Refer to Getting started to find out how to get it.
order_id
String
64
Mandatory
Your unique identifier for the transaction
type
Number
1
1: Digital content, 2: Non-digital content
pay_channel
Number
3
Mandatory Code for each payment channel.
msisdn
Number
15
Optional
MSISDN (non-formatted; without country code). Only include this if MSISDN is required and not email.
merchant_name
String
128
Optional
The merchant name that will be displayed in an SMS message, if the partner wants to specify the partner name, please enter the name in this field.
The default value is empty.
items
ItemInfo
N/A
Mandatory
List of items being purchased by the users
items[].code
String
128
Mandatory
Code associated with the item on your side
items[].name
String
128
Mandatory Name of the item being purchased. Only supports latin characters.
items[].price
Number
N/A
Mandatory Price of the item inclusive of any taxes in the currency specified in the request.
items[].type
Number
N/A
Mandatory Default=1
profile
Map
N/A
Mandatory Refer Profile Info below for more details
Profile Info
name
String
128
Optional
Customer's Name.
user_id
String
128
Mandatory
Customer's user ID.
client_ip
String
15
Optional
Customer IP Address. (only support IPv4)
String
Optional
The email address where the successful transaction receipt will be sent. Upon a successful payment, Coda will automatically deliver a digital receipt to this address. This feature is not enabled by default. To activate automated receipt delivery for your titles, please contact the payment enablement team at codapay_integration@coda.co.
Receipt example: 
Sample Request
Response Message
txn_id
Number
N/A
Unique payment transaction identifier.
txn_timeout
Number
N/A
Transaction Timeout in Minutes.
total_price
Number
N/A
The total amount the user has paid for the transaction. This will always be in local currency.
pay_instructions
String
15
If this value is populated, the partner should display the instructions provided on screen to the customer.
Profile Info
extInfoByte
Number
N/A
Please ignore this field.
payment_code
Number
N/A
A code generated by payment channel.
user_id
Number
N/A
Customer's user ID.
id_no
String
N/A
Customer's ID number.
name
String
N/A
Customer's Name.
redirect_url
String
128
The payment gateway's redirect URL is returned only if the selected payment channel follows a redirect URL workflow.
Sample Response
Reference of USD Transactions
Please check out this guide to learn more about USD transactions.
Last updated
Was this helpful?