Txns API

Once the order creation is completed and the user is redirected to the payment page and selects CRED Pay for the payment, the /txns api is to be called. The curl is given below for the reference.

Error
  1. Collect Request will be triggered to sdk_pg_params.phoneNumber

  2. Kindly pass phoneNumber encrypted using RSA PKCS1 method with public keylink icon of juspay and append “enc-” as prefix.

Note

When the credAppPresent is true then the merchant needs to fire the intent_url provided in the response, Merchant can write a custom logic like when checkout_mode is intent then fire intent url else load juspay’s authentication.url.

Please refer to the set up pagelink icon for more details.

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