VivaPayments / API

Index of Viva Wallet open source projects on GitHub.
139 stars 163 forks source link

Error 403 on https://api.vivapayments.com/checkout/v2/orders #2441

Closed kristofthys closed 11 months ago

kristofthys commented 11 months ago

In the demo environment, the project is working fine.

In production, Merchant ID 8bca4c0c-03bb-4ff8-9a8b-5bdaed3e90da we get an error 403.

Can this be solved?

Thanks, Kristof

VivaWalletCustomerSupport commented 11 months ago

Hello @kristofthys,

Thank you for your message. Kindly note that the Create payment order API uses OAuth2 authentication. Can you please provide the scope of the access token to further investigate?

Kind regards, Viva Wallet E-commerce Support Team

kristofthys commented 11 months ago

The scope received from the token is: [scope] => urn:viva:payments:core:api:posmanagement urn:viva:payments:core:api:posmanagement:usercodes:verify urn:viva:payments:ecr:api

VivaWalletCustomerSupport commented 11 months ago

Hello @kristofthys,

Thank you for your prompt response. As we can observe from the scope, the POS REST API credentials have been used. We would recommend using the Smart Checkout credentials for the Create payment order API.

[scope] => urn:viva:payments:core:api:acquiring urn:viva:payments:core:api:acquiring:cardtokenization urn:viva:payments:core:api:acquiring:transactions urn:viva:payments:core:api:redirectcheckout

Kind regards, Viva Wallet E-commerce Support Team

kristofthys commented 11 months ago

Thanks, I'll ask my client to recreate the keys...

VivaWalletCustomerSupport commented 11 months ago

Thank you for the update @kristofthys,

In any case, this thread will remain active for at least 24 hours, so that you can come back if you wish.

Kind regards, Viva Wallet E-commerce Support Team

VivaWalletCustomerSupport commented 11 months ago

Hello @kristofthys,

This ticket will close for now. Please don't hesitate to raise a new ticket if you need further assistance.

Kind regards, Viva Wallet E-commerce Support Team