Guides
Direct Debit Setup
Setup Webhook
Use dev-api.shabaas.com for test environments.
Call the Create Webhook API to register below callback URLs [Webhook > Create Webhook]
Register Webhook URLs
You must provide two webhook endpoints
Endpoint1 : direct_debit_accepted
Endpoint2 : direct_debit_rejected
Direct Debit Payment
Use the Direct Debit API to initiate a payment request [Initiate a Payment > Direct Debit]
Initiate Direct Debit Payment
Handle Callback Response
After the direct debit is initiated
If the bank approves the request and funds are transferred, a callback is sent to the direct_debit_accepted URL with transaction details.
If the bank rejects the request (e.g. due to insufficient funds), a callback is sent to the direct_debit_rejected URL with failure information.