Checkout API
One request.
A checkout ready to pay.
Create a payment from your server and send your customer to a hosted checkout. Price in your currency, let them pay with a supported asset, and settle in stablecoin.
Built for the way your backend works.
Your server asks.
Mayarin handles checkout.
Send the order total from your backend. The response carries a checkout link with the price locked, so you never build a payment screen yourself.
- Your serverCreates a payment
- Customer paysHosted checkout
Safe to retry
Send an idempotency key and a retried request returns the same payment, never a second one.
Signed webhooks
Every state change is delivered signed, so your order updates the moment a payment moves.
Stablecoin settlement
Price in your currency and receive a supported stablecoin in your own wallet.
From order to paid in three steps.
Create a payment
Your server sends the amount and currency, and gets back a checkout link.
Send your customer
Redirect to the hosted checkout, where the customer picks how to pay.
Listen for the result
A signed webhook tells your server when the payment succeeds.

Bukit Bakery
45.00 MYR
Pay with
![]()
ETHBase0.0034
![]()
EURCSolana8.71
Price locked for 14:52
Pay 45.00 MYRYour backend.
Our checkout.
Keep your own catalog and cart. Send the total, and Mayarin shows the customer a clear amount, the assets they can pay with, and a locked price.
One fee per payment.
Protocol fee plus network gas. Conversion and third-party services may add costs; the payment quote shows them before the customer pays.
0% fee14-day free trial
0.5%
Protocol fee per payment
Start in the sandbox.
Go live with one key.
Use the TypeScript SDK or plain HTTP. The request is the same either way.
- Get your API keysCreate a secret key in the dashboard and test on the sandbox first.
- Call it your wayThe SDK adds types, retries and webhook verification.
create-payment-intent.ts
1// Server-side. Price the order in your own backend.2const intent = await mayarin.payment.createIntent(3{4merchant: {5id: "merchant_123",6name: "Bukit Bakery",7city: "Kuala Lumpur",8countryCode: "MY",9},10amount: { amount: "45.00", asset: "MYR" },11},12{ idempotencyKey: "order-4711" },13);1415// Send your customer to hosted checkout.16intent.checkoutUrl;
FAQ
A few things worth knowing.
Answers about requests, checkout, webhooks, and testing.
No. Price the order in your own backend and send the total. Catalog, payment links and invoices are optional.
A hosted checkout with the amount in your currency, the supported assets they can pay with, and a price that stays locked while they pay.
Subscribe to webhooks. Each delivery is signed with HMAC-SHA256; verify it, then read the payment from the API before you fulfil the order.
Send an Idempotency-Key header, such as your order ID. A repeated request returns the same payment. The SDK sets one for you.
Yes. The sandbox runs on testnet with its own keys, and you can simulate a deposit to walk a payment through every state.
Add a checkout with one request
Create an account, get your keys, and take your first test payment today.




