Wallet Direct Debit

Directly debit the amount from a Wallet that is linked to a Customer’s account. If the status in the response is CHARGED, then the payment is immediatley successful. If the status in the response is PENDING, then the user wallet doesn’t have sufficient balance for the payment and the topup URL is returned in the response.

Warning
  • Wallet Direct Debit transaction API calls are authenticated, unlike other transaction API calls. This API must be invoked directly from your server. DO NOT send the API key to the client.

  • In case you are calling the transaction API from the client side, kindly include client_auth_token in the API request. Please note that client_auth_token can be fetched from the Create Customer APIlink icon, Get Customer APIlink icon or Create Order APIlink icon.

HANDLING GET

When you get GET as the authentication method in the response, you may load the URL directly into the customer’s browser. You can easily achieve this by send HTTP 302 from your server. However, if the API call was made from the browser, then you can utilize the code snippet provided.

API Endpoints
Sandbox Link
POST
https://sandbox.juspay.in/txns
Production Link
POST
https://api.juspay.in/txns
Headers
Body
200 : Success
400 : Invalid Input data
Last updated 1 month ago