Test Auto-Debit
Last updated
Last updated
This endpoint will take a session id and check for it's related payment if it's possible to be auto charged or not. if possible it will charge the payment and return the operation response. ๐ NOTE Optional fields may not be represented in response body.
Authentication Notes
The Api-Key
is already automatically added to the headers, so no authentication type required.
If you want to choose your preferred authentication type, follow these steps:
Api-Key
header and choose one of the following:
ApiKeyAuth
, use: Api-Key vSUmxsXx.V81oYvOWFMcIywaOu57Utx6VSCmG11lo
.BasicAuth
, provide your valid username and password.JWT Auth
, include your token in the format: Bearer <your_token>
.Private API key to be provided in the format Api-Key <key>
.
Api-Key vSUmxsXx.V81oYvOWFMcIywaOu57Utx6VSCmG11lo
Auto debit serializer should take session_id and consumer payment token then validate if session id is valid if session id is valid then validate if payment gateway supports auto debit if payment gateway supports auto debit then validate if payment gateway has implemented auto debit if payment gateway has implemented auto debit then charge the token and return charge response from client auto_debit method which should be implemented in client
A unique identifier for each payment transaction, used to maintain the session state during the payment process.