Choose an Integration Path
Mint supports three main integration styles. All begin with your backend creating a payment; the difference is who owns the buyer-facing checkout.
1. Hosted payments
Best when you want the fastest launch and the least frontend work.
- Your backend creates a payment with Mint.
- Mint returns a
payment_urlwhen hosted payments are enabled. - You redirect the buyer to that URL.
- Your server fulfils only after a verified
payment.paidwebhook.
2. React SDK
Best when you want Mint checkout embedded inside your product.
- Your backend creates the payment.
- Your React app uses
@mintmoney/react. - The SDK opens Mint checkout inside your app.
- Your server fulfils only after a verified
payment.paidwebhook.
3. Direct API
Best when you want full control over the buyer UI and payment orchestration.
- Your backend creates payments directly with Mint.
- Your frontend and backend decide how to create attempts, present status, and recover from failures.
- You build and maintain more of the flow yourself.
One rule that does not change
No matter which path you choose, payment creation happens on your backend with
your Mint secret key. Keep the key out of browser code, persist the Mint
payment_id with your order, and use Webhooks
for fulfilment.