Developer Discussions
How to use parameter 'redirectUrl' in endpoint 'Create Dynamic QR'
Hi Maya Dev,
I am using the endpoint 'Create Dynamic QR' to implement QR code payment. I set redirectUrl including 'success','failure','cancel' with some url parameters. Would like to check with the flow:
1. The website retrieves Maya QR code url from endpoint 'Create Dynamic QR', and redirect User to the QR code url.
2. User opens Maya app with mobile, then scans the QR code.
3. If User pays successfully, in mobile it will redirect to the 'success' url of 'redirectUrl' I set before, same as 'failure' and 'cancel' scenarios.
Is that correct?
And what happens if I leave 'redirectUrl' empty?
Best Regards,
Una
Posted by Una over 1 year ago
Error when using generated API
Hello,
I'd like to ask regarding this error I get when switching from sandbox keys to generated keys from a registered account:
["error"]=>
string(86) "Invalid authentication credentials. Kindly verify if the key you are using is correct."
["code"]=>
string(4) "K003"
["reference"]=>
string(36) "fa640821-f9b9-4821-9d0c-7a6bbc44efef"
It works fine with the sandbox keys. Tried regenerating new keys, but the same error persisted. Do I need to change something on my curl code?
Kind regards,
Posted by Rahul over 1 year ago
Keep Getting 'Invalid Endpoint' while accessing 'Retrieve Payment via RRN'
API URL:
https://pg-sandbox.paymaya.com/payments/v1/payment-rrns/VR8UFV20220310270
RRN:
VR8UFV20220310270
Credentials used for creating checkout is the 'Sandbox Party 3' referenced here: https://developers.paymaya.com/reference/sandbox-credentials-and-cards
Try hitting the API via your site, got:
(https://developers.paymaya.com/reference/getpaymentviarequestreferencenumber-1)
'Sorry you couldn't be authenticated with those credential'
Posted by Sean Ellis over 1 year ago