Oauth authentification
mikaelcarlavan opened this issue · 3 comments
Hi guys,
I'm trying to use the API to create payment but I am stuck with the Oauth authenfication.
I downloaded the request from Postman, used my Smart Checkout Credentials but it is not working, I always get "invalid_client".
Here is the request :
curl -L -X POST 'https://demo-accounts.vivapayments.com/connect/token'
-H 'Content-Type: application/x-www-form-urlencoded'
-H 'Authorization: Basic XXX'
--data-urlencode 'grant_type=client_credentials'
Any ideas ?
Hello @mikaelcarlavan,
Thank you for your message. You can follow this guide to create an access token. Make sure you used the correct credentials.
After the creation of the access token, the last step is to generate an order code. For the order code creation you will make another API request.
Kind regards,
Viva Wallet E-commerce Support Team
Ok, seems like the demo endpoint only works with the sandbox account.
Problem solved.