Processing recurring payments
Instructions on processing subscription based payments with Nomba’s payment gateway.
Overview
Leverage our tokenization APIs to set up a subscription service, facilitating the recurrent collection of payments from your customers on a predefined schedule, be it monthly, weekly, or yearly.
During the payment process through Nomba Checkout, you can simply request us to tokenize your customer’s card. Subsequently, we will furnish you with the token details through our webhook, enabling you to effortlessly charge your customer at scheduled intervals. Moreover, we offer an API to update or delete a tokenized card, providing flexibility in case your customer decides to terminate their recurring payments. Please read through the following section to gain insight on how to proceed with processing recurring payments.
Request for a card to be tokenised
Requesting a card to be tokenized is as simple as setting the tokenizedCard
property in the request body for creating a checkout order. Setting this property to true
would mean that you want us to tokenize the customer’s card on your behalf.
Sample request
Sample response
Handle the token details in the webhook sent
Upon successfully processing a customer’s payment, a webhook notification will be dispatched with the event type payment_success
. Ensure you are subscribed to this event, as detailed in this documentation. Following your request to tokenize the card, the webhook notification’s request body will include a property called tokenizedCardData
. The value of this property is essential for subsequent tokenized card payments.
Pay with a tokenised card
Upon obtaining the tokenizedCardData as outlined in the preceding section, you can commence charging the customer using the tokenized card. Simply incorporate the value of tokenizedCardData
into a new property named tokenKey
when interacting with the the tokenized card payment endpoint, as specified in this documentation.
Sample request
Sample response
Update the email of a tokenised card
Should there arise a necessity to modify the email address associated with a tokenized card, such a need may arise due to our verification process. We scrutinize the email address linked to a tokenized card, and a tokenized payment may be declined if the email address does not match the one used for tokenization. Please see the information detailed below to update the email address of a tokenized card.
Sample request
Sample response