Implement this sequence
The integration is intentionally small: one backend initializer, one hosted checkout redirect, status polling for UX, and one signed webhook handler for backend truth.
Call Foxpay only from your backend with `Authorization: Bearer <apiKey>`. Never expose merchant credentials in browser code.
02Initialize the paymentSend `merchantId`, `orderId`, `amountCents`, `currency`, optional buyer context, and metadata to `POST /payments/initialize`.
03Redirect to hosted checkoutUse the returned `paymentUrl` as the browser redirect target. Keep `paymentId` for status checks and support lookup.
04Reconcile with webhooksUse polling for buyer-facing progress. Use signed webhooks to make durable backend order-state changes.