Hi, I’mm trying to connect Viva Wallet payment to my app through The Api Connector. I am having trouble requesting access token through Oauth2 authentication. Has anyone worked on this before? Yet I believe I follow the documentation carefully.
Start to fill it and post a screenshot. We will be able to help. Each API is different.
In this case, you should have two headers for token call: Authorization and Content-type Content-Type: application/x-www-form-urlencodAuthorization: Basic yourbasicauth
Url: https://demo-accounts.vivapayments.com/connect/token for sandbox
and in body, you can set grant_type=client_credentials
After, test with a simple get request like: https://demo-api.vivapayments.com/merchants/v1/wallets
400 is not an issue related to authentication normally.
Url seem good and there’s no parameters for this endpoint.
Just to validate the token request is working, you can create requestbin (or similar http request testing tool) endpoint, use the url to test and inspect the headers call
You can test with a different endpoint too like https://demo-api.vivapayments.com/banktransfers/v1/bankaccounts
Once it’s done, click initialize it and you should see it in requestbin (however, the new requestbin version is not very intuitive. webhook.site and beeceptor are good alternatives (but there’s a lot more)
If you see authorization header with Bearer and an access token, this mean auth is working