1. Create a checkout session
Use the gateway sessions endpoint directly:checkoutUrl hosted on pay.getopenrails.com.
2. Redirect the buyer
Send the customer tocheckoutUrl. Open Rails hosts the checkout, selects the route, and sends the buyer through the payment flow.
3. Read records after creation
After the session is created, you can look up the customer and track the payment:4. Handle the webhook
Your fulfillment app should listen forpayment.paid before shipping, unlocking credits, or marking an invoice as paid.