Based on the purchase amount, the customer can select payment currency for the order. The response will have the pay_amount and payment_address. You can redirect the buyer to the payment_url.
It's done by our side. ONLY use this if you want to build an in-house payment without redirecting to our page. This API is only needed with no page redirecting.
Definition
POST https://api.mugglepay.com/v1/orders/:id/checkout
Body Params
Result Format
MugglePay Server will always return status 200 on success API.
MugglePay Server will always return status 400. If API failed, it will return error_code and error as its object.
{
"status": 400,
"error_code": "ORDER_NO_PERMISSION",
"error": "Order does not exist or permission denied."
}
Notes
If you want the user to stay at your website, a QR code can generated based on the pay_amount and payment_address. Buyer can scan the QR code with any crypto wallets on their mobiles.