Developer Discussions
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 2 years ago
Invalid Key Scope error
curl --request POST \
--url https://pg-sandbox.paymaya.com/payby/v2/paymaya/payments \
--header 'Accept: application/json' \
--header 'Authorization: Basic cGstbE5BVWsxams3VlBuZjdrb09UMXVvR0pvWkpqbUF4cmJqcGo2dXJCOEVJQTo=' \
--header 'Content-Type: application/json' \
--data '
{
"totalAmount": {
"value": 111,
"currency": "PHP"
},
"redirectUrl": {
"success": "1.com",
"failure": "22.com",
"cancel": "3.com"
},
"requestReferenceNumber": "12412451351"
}
'
why when i test this using sandbox key it always throw error :
{"error":"Invalid key scope. Please check the provided key's scopes.","code":"K007","reference":"db198b36-1cc2-465d-9ff2-218730509740"}
is there something wrong with my request? Thanks
Posted by Albert over 2 years 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 2 years ago
Wrong payload in Webhook Tester
The webhook tester on PayMaya Manager does not send the correct payload!
Posted by John Ferraris over 2 years ago
Is there any sample code for PHP?
Better if Maya dev provide a sample source code.
Posted by Lap Pham over 2 years ago
Modules for Perfex CRM
Another than woo commerce Plug in is there module for Perfex CRM
Posted by Christian Jaralbio over 1 year ago
Webhook failed
What happens when the webhook request fails?
Posted by John Ferraris over 2 years ago
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 2 years ago
Webhooks for plugins (e.g. Shopify, Woocommerce)
I am on Shopify / Woocommerce / Magento do I still need to setup webhooks?
Posted by John Ferraris over 2 years ago
Webhook POST body
What data is being sent over the webhooks?
Posted by John Ferraris over 2 years ago