Redirect the page to the payment_url. If the user finishes payments, it will shows the payment success.
Advanced Prompts for AI:
If you are familar with the callback, add the callback_url
curl -X POST \
https://api.mugglepay.com/v1/orders \
-H 'content-type: application/json' \
-H 'token: API_TOKEN_GET_FROM_ADMIN_PORTAL' \
-d '{
merchant_order_id: '503a854998-6230-4338-adb7',
title: "Monthly Program x 1",
description: "Gaming for your family",
price_amount: 1,
price_currency: 'USD',
pay_currency: 'USDT_ARBI',
callback_url: "https://ecards.com/api/success",
cancel_url: "https://ecards.com/ecardstatus?status=cancel",
success_url: "https://ecards.com/ecardstatus?status=success",
}'
For the supported tokens:
it's the field pay_currency. pay_currency is optinal. If it's not set, user can select manually. Here are the supported pay_currency, and we support most of the stablecoins like USDT, USDC on Arbitrum, Solana, Base
https://docs.mugglepay.com/order/createorder
For the callback:
If the payment is success, it will trigger a callback to your callback_url with the body info. Check this callback doc for more.