PayMaya / PayMaya-Node-SDK

MIT License
18 stars 10 forks source link

When I change to production keys, it doesn't work #17

Open jpinon27 opened 11 months ago

jpinon27 commented 11 months ago

based on the documentation, I just need to replace the sandbox public key and secret key to production public key and secret key like this PaymayaSDK.initCheckout( process.env.MAYA_PK_PROD, process.env.MAYA_SK_PROD, PaymayaSDK.ENVIRONMENT.PRODUCTION );

if the credentials are for sandbox, the "checkout.execute" part returns the checkoutId and redirectUrl, but when I use the production keys, it returns undefined

any workarounds?