question

qadeermuniry avatar image
qadeermuniry asked bryanvargas answered

Unable to access hosted checkout for testing

The API Token is not working for testing in Clover hosted checkout I'm using the API Token in bearer as in the below screenshot https://docs.clover.com/reference/createcheckout clicking "try it" with payload, keeps loading. Before it was working. Or is there a way to call this https://sandbox.dev.clover.com/invoicingcheckoutservice/v1/checkouts?access_token=hosted_token


screenshot-2023-08-11-at-41507-pm.png


API Tokenaccess tokenauth tokens
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image
bryanvargas answered

You cannot have the accessToken in the URL Param, more details on this is in our blog: https://medium.com/clover-platform-blog/change-is-coming-api-authentication-7d3a85d9abb4


The accessToken has to be a bearer authorization header, please review our docs on how to create a session https://docs.clover.com/reference/createcheckout

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

qadeermuniry avatar image
qadeermuniry answered qadeermuniry commented

Getting 406 Not Acceptable

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

01928-7325x2 avatar image 01928-7325x2 commented ·

Look on your screenshot. The integration type is wrong.
You should set it to hosted checkout.
Unfortunately only one token can be generated.

0 Likes 0 ·
qadeermuniry avatar image qadeermuniry 01928-7325x2 commented ·

Thank you for your reply, In API tokens there is no way to change the integration type. In the Ecommerce API tokens I'm able to create a token with Hosted_Checkout integration type. But When I call in the response there is false. Here is how my url look:
https://sandbox.dev.clover.com/oauth_callback?merchant_id=xxxxx&client_id=xxxxxxx&code=xxxxxxxxxxxxxxxx

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community