Developer Discussions
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 1 year ago
RETENTION ISSUE ON UNSETTLED TRANSACTIONS
Last Sunday ( July 24, 2022) we were unable to transact or validate a credit card payment of our customer thru paymaya terminal and prompt a message of our Sales that " Unsettled transactions beyond retention limit, Please settle Now"
Is there a credit limit on credit card payment that supposed to be settled on us first, that we should be aware of ?
Posted by Teresita Tubigan over 1 year ago
Modules for Perfex CRM
Another than woo commerce Plug in is there module for Perfex CRM
Posted by Christian Jaralbio 12 months 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
Is there any sample code for PHP?
Better if Maya dev provide a sample source code.
Posted by Lap Pham over 1 year ago
Wrong payload in Webhook Tester
The webhook tester on PayMaya Manager does not send the correct payload!
Posted by John Ferraris almost 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 almost 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 1 year ago
Webhook failed
What happens when the webhook request fails?
Posted by John Ferraris almost 2 years ago
Credit Card Payment Using Maya Vault
Reference:
https://developers.maya.ph/docs/credit-card-payment-using-maya-vault
1. Can you give a sample for this ?
customerPurchaseDataWithPaymentTokenId
2. Once you have obtained the paymentTokenId, your application should pass your customer's checkout details. << which field?
3. endpoints
const createPaymentUrl = 'https://pg-sandbox.paymaya.com/payments/v1/payments'
Kept getting this error :
error: 'Invalid endpoint. Please check if you are accessing the correct endpoint/resource.',
code: 'K004',
reference: 'a5f3226d-7059-45e9-a8b1-17b0722184d3'
Posted by Richard Tan about 1 year ago