Issue on generating dynamic QR code

We have an issue on generating QR code. we are receiving below error message. Our code and API keys is working when using Maya checkout but for QR generation it is not working.

Error Code: PY0019

Message: Forbidden

HTTP Status: 401 Unauthorized Is it a separate maya api keys for maya checkout and QR?

It seems you may be referring to the type of API key required for different Maya services. For Maya Checkout and QRPh generation, different API keys are used based on the endpoint. The PY0019 error suggests that the API key used for QRPh generation lacks the necessary permissions.

To resolve this, ensure you are using the correct API key type for the Create Dynamic QR endpoint, which requires a public key.

  1. Verify that you are using the correct public key (pk-xxxx) for the Create Dynamic QR endpoint.
  2. Ensure the key is correctly encoded in Base64 format for the Authorization header.
  3. Check that the API key has the appropriate scope for QRPh generation.

Refer to the documentation on Generate API Keys for Online Payments and Create Dynamic QR API reference for more details.

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.

@click2keepph, which endpoint are you trying to access?

I also experienced this error once. It was mentioned that I need to be onboarded to Pay with Maya, so I’ll receive another account, for me to generate API keys. It’s like one solution per account/MID.

@frances.kagahastian We are using /payments/v1/qr/payments

Hi @Cerie , how did you requested for another account?

You can contact the Relationship Manager from Maya, whoever assisted you with your Checkout account.

@Cerie Thank you for this information.

1 Like

You’re welcome! Good luck with your integration!