Developers / Shopify
Shopify integration
Starter files live in plugins/shopify-aurapay/create invoices with create-invoice.mjs, mark paid with worker.js.
- AuraPay key: Services → API. Set webhook URL to your deployed worker and the same secret.
- Shopify custom app: Admin API scopes including
write_orders. Note shop domain + access token. - Create invoice when the customer is ready to pay:Redirect the customer to the returned
AURAPAY_API_KEY=apk_live_... \ node create-invoice.mjs --order 5678901234 --amount 25 --currency USDT
checkoutUrl. - Deploy worker.js (Cloudflare / Vercel) with env:
AURAPAY_WEBHOOK_SECRET,SHOPIFY_SHOP,SHOPIFY_ADMIN_TOKEN.
API create body
POST https://api.aurapayglobal.com/api/v1/invoices
{
"amount": 25,
"currency": "USDT",
"externalId": "5678901234",
"metadata": { "platform": "shopify" }
}