Business Use Cases
In all of the following cases, we encourage partners to store Coda information and link it to their own customer identifier: Shopper ID, Payment Method ID, Token ID, and Subscription ID.
New Customer Registering
In the case where a partner need to create a token for the first time for a customer, the partner will need to perform the following actions:
Create a new Shopper using their customer ID.
Create a Payment Method depending on the customer's payment choice (ex: Go-Pay.)
Generate a Token for that payment method.
Wait for token validation by listening to Coda notification, which the partner can config Subscription Notification URL.
Charge the customer using the generated token.
Returning Customers Using the Same Payment Method
In a case where the partner already have a token linked to your customer, the partner can:
Charge the customer using the generated token.
Returning Customers but Payment Token has Expired
In a case where the partner's existing customer needs to re-generate a token:
Generate a new Token for the customer's payment method.
Wait for token validation by listening to Coda notification.
Charge the customer using the newly generated token.
Returning Customers Using a Different Payment Method
In a case where an existing customer needs to generate a token for another payment method:
Create a Payment Method depending on the customer payment choice (ex: Go-Pay) using the existing Shopper ID linked to your customer ID.
Generate a Token for that payment method.
Wait for token validation by listening to Coda notification.
Charge the customer using the newly generated token.
Initiating Subscription
If a partner wants to use Coda scheduler to initiate a recurring charge for their customers, the partner will need to go through the following steps
Create a new subscription plan (to be done only once per plan.)
Create a new Shopper using the partner's customer ID.
Create a Payment Method depending on the customer's payment choice (ex: Go-Pay.)
Generate a Token for that payment method.
Wait for token validation by listening to Coda notification.
Launch the subscription using the subscription plan and the newly generated token.
Cancelling Subscription
If a partner wants to cancel a customer subscription, they can cancel an existing subscription using the ID generated.
Last updated