PayMaya / PayMaya-Payment-JS-SDK

JavaScript wrapper for PayMaya Payments API. Accept payments online while minimizing your PCI-DSS compliance scope.
MIT License
2 stars 0 forks source link

Sandbox URL endpoint not working #1

Open jgfrancisco opened 7 years ago

jgfrancisco commented 7 years ago

When using paymaya.js from https://s3-ap-southeast-1.amazonaws.com/paymaya-assets/paymaya.js -- as documented at: https://developers.paymaya.com/blog/entry/paymayajs-payments-api-javascript-sdk

The target URL: http://private-anon-5c87df497-paymayapaymentsapi.apiary-mock.com/payment-tokens is not working.

Error:

XMLHttpRequest cannot load http://private-anon-5c87df497-paymayapaymentsapi.apiary-mock.com/payment-tokens. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404.
jgfrancisco commented 7 years ago

Should use: https://pg-sandbox.paymaya.com/payments/v1/payment-tokens based on https://developers.paymaya.com/docs/e/payments