Developer Discussions
Invalid Request
Hi, Im currently developing a payment paymaya integration via PHP cURL in WordPress, Im able to see the POST Request on the dev tools however when I try to open the 'https://payments-web-sandbox.paymaya.com/v2/checkout'
note that Im able to open the payamaya checkout URL in less than 30secs.
I always encounter 'Invalid Request' 'The link you're trying to access is invalid or has already expired.' on Maya Dashboard.
here is the response I got
string(162) "{"checkoutId":"37840256-52b9-4bfe-98f4-cb26e9f6fda9","redirectUrl":"https://payments-web-sandbox.paymaya.com/v2/checkout?id=37840256-52b9-4bfe-98f4-cb26e9f6fda9"}"
string(0) ""
https://payments-web-sandbox.paymaya.com/v2/checkout?id=37840256-52b9-4bfe-98f4-cb26e9f6fda90
Hi,
When you called the checkout API, what domain din you call--
https://payments-web-sandbox.paymaya.com or https://pg-sandbox.paymaya.com? It should be the latter, based on https://developers.maya.ph/docs/domains-and-ip-addresses.
Also, based on our logs, you opened the Maya checkout page at this timestamp (in UTC): 12/26/23 10:15:17.443 PM
But it already expired as you didn't complete the payment (selected payment method/completed payment details and clicked complete order) within 1 hour. See our logs (in UTC):
12/26/23 11:15:17.594 PM
... 2023-12-26T15:15:17.594Z - info: STATE_TRANSITION: (payment-id: 37840256-52b9-4bfe-98f4-cb26e9f6fda9) PENDING_TOKEN => PAYMENT_EXPIRED
Thanks.
ο»Ώ