Business Use Cases
In all of the following cases, we encourage you to store Coda information and link them to your own customer identifier: Shopper ID, Payment Method ID, Token ID, and Subscription ID.
Registering New Shopper
When registering a new shopper and generating a token for the first time, you will need to perform the following actions,
Create a new Shopper using your customer ID
Create a Payment Method depending on the customer's payment choice
Generate a Token for that payment method
Monitor Coda notification for token validation, which partner can config Subscription Notification URL
Charge the customer using the generated token
Returning Shoppers and Reusing the Same Payment Method
If you already have a token linked to your customer, then you simply need to initiate the customer charge using the generated token:
Charge the customer using the generated token
Returning Shopper with Expired Payment Token
If you’re an existing shopper that needs to re-generate a token, follow these steps:
Generate a new Token for your customer’s payment method
Charge the customer using the newly generated token
Generating a Token for New Payment Method for Existing Customers
If you’re an existing shopper that needs to generate a new token for an alternative payment method, follow these steps:
Create a Payment Method according to the shopper’s payment choice (ex: Go-Pay) using existing Shopper ID linked to your customer ID
Generate a Token for the selected payment method
Charge the customer using the generated token
Initiating a Subscription with Coda Scheduler
To set up a recurring charge for your shopper using Coda scheduler, follow the steps:
Create a new subscription plan (This step is required only once per plan)
Create a new Shopper using your shopper ID
Create a Payment Method according to the shopper’s payment choice (ex: Go-Pay)
Generate a Token for the selected payment method
Launch the subscription by utilizing the subscription plan and the generated token
Cancelling a Subscription
To cancel a shopper’s subscription, follow these steps:
Cancel an existing subscription using the ID generated
Last updated
Was this helpful?