Hi there,
I'm trying to implement Visa Checkout on a webpage with a button to pay but API always return 401 with error of "Invalid API Key".
I already check the API and it's correct from credential section of sandbox account.
Configurations look like this:
function onVisaCheckoutReady() {
console.log('VISA Checkout ready');
V.init({
apiKey: 'API_FROM_CREDENTIAL_SECTION',
paymentRequest: {
currencyCode: 'CAD',
subtotal: '10.00',
},
});
}
Solved! Go to Solution
Hi @aminpaks,
Please navigate to the below link for details on how to add Visa Checkout to your webpage.
https://developer.visa.com/capabilities/visa_checkout/docs-how-to
Hey @aminpaks,
Happy to hear from you. Thanks for sharing the issue with us and letting us know how it was solved.