Gather the requirements
You need:- A SimplePay account
- A merchant with an active sandbox environment
- A key with
hosted_checkout:write - A backend that protects the key
Configure your terminal
Set the sandbox host. Read the key without storing it in shell history:Create the session
Send the amount in the currency’s minor unit.50000 represents MXN 500.00:
id, public_reference, and url. Store id for authenticated reads and redirect to url.
Confirm the result
The browser does not confirm a payment. Update your order afterpayment.succeeded or an equivalent authenticated read.
Configure webhooks
Verify signatures and process events without duplicating effects.