Checkout Order
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
Param | Type | Required | Description |
---|---|---|---|
order_id |
| MugglePay order ID | |
pay_currency |
| Yes | Payment cryptocurrency. It's currency selected by the user. For example, "EOS". |
Result Format
MugglePay Server will always return status 200 on success API.
200 OK
Error Format
MugglePay Server will always return status 400. If API failed, it will return error_code and error as its object.
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.
Last updated