Merchant sends a POST request to Create Direct Debit Payment API with the required parameters.
payment_method_id. The ID of the payment method you want to pull funds from.
The basket object. The basket object helps the merchant track the items purchased per transaction.
The transaction will remain to have a status of PENDING until the debit is confirmed SUCCESS or FAIL.
The endpoint will return a JSON. If
is_otp_required is TRUE, the direct debit will only be completed once the OTP is verified with the channel.
Xendit will send a POST to the merchant’s
callback_url whether the debit is successful for top up or not.