Enter your Shopify store domain (e.g. mystore or mystore.myshopify.com) to install the app.
Redirect customers to this URL with the draft order details:
https://oxapay.melonsdigital.com/pay?draft_order_id=123456&shop=mystore.myshopify.com&amount=99.99¤cy=USD
Parameters: draft_order_id, shop, amount, currency (optional, default USD), email (optional)
POST to /api/draft-order with JSON body:
{
"shop": "mystore.myshopify.com",
"line_items": [
{ "variant_id": 123456789, "quantity": 1 },
{ "price": "29.99", "title": "Custom item", "quantity": 2 }
],
"email": "customer@example.com"
}
Returns payment_url to redirect the customer.
OxaPay callback: https://oxapay.melonsdigital.com/webhook/oxapay