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.
Verify that you are using the correct public key (pk-xxxx) for the Create Dynamic QR endpoint.
Ensure the key is correctly encoded in Base64 format for the Authorization header.
Check that the API key has the appropriate scope for QRPh generation.
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.