improved

New Production URL Hostname and Migration Guide for Online Payments

Effective July 12, 2022 10pm PHT, the new Production API URL Hostname for Maya Payment Gateway will be https://pg.maya.ph.

What this means to you as an integrating merchant or developer?

As a merchant, we recommend that you update your application configuration to use the new URL hostname before the end of 2022. Additionally, the returned web URL hostname for Maya hosted payment web pages for Online Payments such as Checkout and Pay with Maya will be https://payments.maya.ph. You may also need to update the configuration on your side if needed.

Environment

Old API URL Hostname

New API URL Hostname

Old Returned Web URL Hostname

New Returned Web URL Hostname

Production

https://pg.paymaya.com

https://pg.maya.ph

https://payments.paymaya.com

https://payments.maya.ph

Sandbox

https://pg-sandbox.paymaya.com

No change. Still use the existing URL:
https://pg-sandbox.paymaya.com

https://payments-web-sandbox.paymaya.com

No change. Still use the existing URL:
https://payments-web-sandbox.paymaya.com

🔔The old production API URL hostname (https://pg.paymaya.com) will still work until 2023. It is recommended that you update your application configuration to the new URL hostname before the end of 2022.

Sample Returned Web URL Hostname in Production

All the returned web URL hostname for Maya hosted payment web pages Production will be changed to https://payments.maya.ph. See sample values for redirectUrl and verificationUrl below.

{
  "checkoutId": "fa4da2ff-dcda-4367-a97d-0c9445147b73",
  "redirectUrl": "https://payments.maya.ph/v2/checkout?id=fa4da2ff-dcda-4367-a97d-0c9445147b73"
}
{
  "paymentId": "5f1e1df5-b58f-481b-89cb-8dd41afcf771",
  "redirectUrl": "https://payments.maya.ph/paymaya/payment?id=5f1e1df5-b58f-481b-89cb-8dd41afcf771"
}
{
  "id": "7ea1f6ef-035c-4fcd-85e0-037c8d9d4a2c",
  "isPaid": false,
  "status": "FOR_AUTHENTICATION",
  "amount": "100",
  "currency": "PHP",
  "canVoid": false,
  "canRefund": false,
  "canCapture": false,
  "createdAt": "2021-07-12T10:02:55.000Z",
  "updatedAt": "2021-07-12T10:02:55.000Z",
  "description": "Charge for [email protected]",
  "paymentTokenId": "0zjacza65HEobriYGN9g5XwaWZYVSeErdNnaNCLCo8QvUXuGg49KPJSy1XbhHPL8OisYOiYPJSQ2BxqR2AuC682Yu5G5LzrU0SK6ByWi0TyhkekWf1ssl6cMBWAVAOdArLcY1QXEyHdr8EsRAS2bHeMEpUU6OSmxmky5Fk",
  "requestReferenceNumber": "1626084179",
  "verificationUrl": "https://payments.maya.ph/authenticate?id=7ea1f6ef-035c-4fcd-85e0-037c8d9d4a2c"
}
{
  "id": "2a6ec8c2-1c48-4a7f-9d94-2d9e7c4c49eb",
  "isPaid": false,
  "status": "FOR_AUTHENTICATION",
  "amount": "100",
  "currency": "PHP",
  "canVoid": false,
  "canRefund": false,
  "canCapture": false,
  "createdAt": "2021-07-12T10:42:32.000Z",
  "updatedAt": "2021-07-12T10:42:32.000Z",
  "description": "Charge for [email protected]",
  "paymentTokenId": "0zjacza65HEobriYGN9g5XwaWZYVSeErdNnaNCLCo8QvUXuGg49KPJSy1XbhHPL8OisYOiYPJSQ2BxqR2AuC682Yu5G5LzrU0SK6ByWi0TyhkekWf1ssl6cMBWAVAOdArLcY1QXEyHdr8EsRAS2bHeMEpUU6OSmxmky5Fk",
  "requestReferenceNumber": "af094e84-d362-4f42-88b0-af72bfd62787",
  "verificationUrl": "https://payments.maya.ph/authenticate?id=2a6ec8c2-1c48-4a7f-9d94-2d9e7c4c49eb"
}
{
  "cardTokenId": "0zjacza65HEobriYGN9g5XwaWZYVSeErdNnaNCLCo8QvUXuGg49KPJSy1XbhHPL8OisYOiYPJSQ2BxqR2AuC682Yu5G5LzrU0SK6ByWi0TyhkekWf1ssl6cMBWAVAOdArLcY1QXEyHdr8EsRAS2bHeMEpUU6OSmxmky5Fk",
  "cardType": "master-card",
  "maskedPan": "4154",
  "createdAt": "2021-07-06T15:32:02.000Z",
  "updatedAt": "2021-07-06T15:32:02.000Z",
  "id": "e732f996-cb87-4120-b712-166d8183c01d",
  "state": "PREVERIFICATION",
  "default": true,
  "verificationUrl": "https://payments.maya.ph/authenticate?id=e732f996-cb87-4120-b712-166d8183c01d"
}

For any questions or concerns, please contact us through our support channels.