Once you have created the order, you can use the order to initiate payment. You can either use Cashfree’s user interface to capture payment details. You will do this by redirecting the customer to a cashfree hosted page, which can be customized for your needs.
Once you receive payment_session_id from create order response, you need to use Cashfree’s JS SDK 2.0.0.
Cashfree’s JS SDK supports two different environments
Sandbox: Use this environment during your testing. No actual debit occurs. Everything is simulated. Using this environment you should be able to integrate the SDK, accept payments, get webhooks, etc.
Production: Once you have finalized your testing on a sandbox you can use the production environment.
const paymentSessionId = "your payment session id"; const cashfree = new cashfree(paymentSessionId);
You would be using
redirect function to redirect to pre-built checkout page.
Updated 2 months ago
Once the customer has paid through their bank account, you still need to handle the thank you page and verify their response.