It seems you may be referring to the ‘Create Dynamic QR’ endpoint for hosting Pay with Maya (PWM) transactions. This endpoint is used to generate a dynamic QRPh code and is the correct API for your use case.
- Endpoint:
POST https://pg-sandbox.paymaya.com/payments/v1/qr/payments(Sandbox) or the production equivalent. - Authentication: Use HTTP Basic Authentication with your public API key (
pk-xxxx) as the username and an empty password. - Request Body: Must include:
totalAmount(currency: “PHP”, value: “amount”)redirectUrlobject with success, failure, and cancel URLsrequestReferenceNumber(a unique merchant-generated UUID)
- Response: Returns
paymentId,redirectUrl, andqrCodeBody. - Usage: Use
redirectUrlto redirect customers to Maya’s hosted payment page, or embedqrCodeBodydirectly into your self-hosted page.
For full details, refer to the Create Dynamic QR API reference.
For Sandbox concerns and other technical implementation inquiries, please get in touch with us via:
- Sandbox Health Page: Check real-time service status updates.
- Maya Developer Hub Service Desk: File
a ticket in Sandbox.
To Know More:
We value your input and would love to hear your insights. Please submit you feedback here.