Payments Flow
Merchant has to do the following integration steps to enable support for their self-hosted PayRam Payments.
Last updated
Merchant has to do the following integration steps to enable support for their self-hosted PayRam Payments.
Last updated
The payment process in Payram involves interactions between three servers. Here’s a step-by-step explanation of how a payment transaction works:
Client (Merchant App/Dapp Front End)
https://yourdomain.com - Merchant's Client server where the user has the option to pay with Payram.
Merchant’s Backend Server It is the application backend server that requests the payment link from Payram server along with user details and receives updates from the Payram server about the transaction status.
Payram (Payram Server)
located at https://payram.yourdomain.com
, hosts the payment page with the amount, currency, QR Code, and other details. It creates, processes, and accepts payments, and sends webhooks back to the Merchant's backend to confirm the payment status.
User Initiates Payment:
The user clicks on the "Pay via Payram" button in the merchant’s app or dApp (Client).
Client Requests Payment Link:
The Client sends a request to the Backend to generate a payment link.
Backend Calls Payram API:
The Backend calls the get_payment_link
API, providing all necessary user details and payment information.
Payram Generates Payment Link:
Payram processes the request and generates a payment link along with a reference ID.
Client Redirects to Payment Link:
The Client receives the payment link and redirects the user to the provided payment URL.
Payment Success Redirect:
Once the payment is successfully completed, the user is redirected to a success URL back to client