Re-charge Card
Startbutton's 'Re-charge' feature allows you to charge your customer's card for subsequent transactions after the first charge has been successfully authenticated and completed.
Enable Card Re-Charge
Hey there! Please contact the Startbutton team if you would like to access this feature. With a single API, you can initiate a card re-charge on domestic and international cards.
Complete First Charge
In order for us to ensure that the card is valid and can be charged for subsequent transactions, initializing a first charge is required. You could do this as described here for your customer's first transaction with the card.
The minimum amount we recommend for the first charge is NGN 50.00, GHS 0.10. Lower amounts are not guaranteed to work on all card brands or banks.
Store Card Authorization Code
Once the first transaction is successful (via the initialize transaction endpoint), you should have the webhook payload by listening for webhook notifications or getting the transaction status.
Store the authorizationCode
returned to you via the webhook payload or the 'get transaction status
' endpoint. This can be used to charge the card subsequently. Avoid saving an authorizationCode
multiple times.
Post Re-Charge Request
For subsequent card charges, send the authorizationCode
and amount
in the param.
Content-type
Set value to application/json
The secret key can be gotten from the 'Settings' page on your Startbutton dashboard.
Post a request to the URL below, where the base URL is determined by the environment you are on.
POST {{baseurl}}/transaction/recurrent
Sample request:
Sample response:
Webhooks
Go here to understand webhooks and getting transaction status
isRecurrent
is true
in the webhook when the card is charged via the Recharge endpoint.
Last updated