Hosted checkout
Send customers to a Yera-hosted payment page for checkout.
Hosted checkout lets Yera Connect manage the customer payment page.
The merchant creates a checkout session, sends the customer to the Yera hosted checkout URL, and then receives payment status updates through the dashboard and webhooks.
How it works
- Merchant creates a checkout session.
- Yera Connect returns a checkout URL.
- Customer opens the hosted checkout page.
- Customer completes payment.
- Yera Connect records the result and sends webhooks.
What the merchant backend should send
A hosted checkout request usually includes:
- Amount
- Fiat currency
- Customer email
- Internal order ID
- Callback or return URL
- Webhook metadata
- Checkout description
- Selected payment or settlement preferences if supported
Keep enough metadata to match the Yera payment session back to the merchant order.
Use hosted checkout when
- You want a fast integration.
- You do not want to build your own payment UI.
- You need customer redirects and payment status tracking.
- You use a custom ecommerce backend.
Customer redirect behavior
After checkout, the customer should return to a merchant success, pending, or failure page.
The return page is useful for customer communication, but the merchant backend should still rely on webhooks for final payment status.
Do not treat a browser redirect alone as proof of payment.
Merchant checklist
Before using hosted checkout live:
- Create server-side API keys.
- Store secret keys securely.
- Create checkout sessions from the backend.
- Store Yera session IDs with internal order IDs.
- Configure webhook delivery.
- Test success, failed, pending, and expired flows.
- Confirm the dashboard shows the sessions and transactions.
