Developer Discussions

Ask a Question
Back to All

Issue: problem on testing my own public api key

Issues on: https://github.com/PayMaya/PayMaya-JS-SDK-v2/

I have generated my API secret and public at Maya Business Dashboard - Checkout & Invoicing

So I cloned this project and see that you only use the Public Key so what i did is to test it out with my own public key, However it is giving me this kind of error in the console and won't let me proceed.

From URL: https://pg-sandbox.paymaya.com/checkout/v1/checkouts

{  
    "error": "Invalid authentication credentials. Kindly verify if the key you are using is correct.",  
    "code": "K003",  
    "reference": "bdd5260f-f7ef-42a0-9472-dcdf757f6a35"  
}

I wonder why the project redirecting me to v1 instead of v2 everytime i use my public key but if i keep the default or the project sample public key it is redirecting to this link: https://payments-web-sandbox.paymaya.com/v2/checkout?id=

Also this page doesn't exist https://developers.maya.ph/changelog/entry/paymaya-checkout-overview-and-faqs

Screenshots:

Raised Issue: https://github.com/PayMaya/PayMaya-JS-SDK-v2/issues/46