question

lhy2731 avatar image
lhy2731 asked David Marginian Deactivated answered

How to use card token to invoke payment

At present, we have obtained card token, in sandboxie environment, but using card token to call payment still reported an error. Why?

OAuth
1592882569469.png (67.8 KiB)
1592882613696.png (79.8 KiB)
10 |2000

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

Sukhbir Singh avatar image
Sukhbir Singh answered

You should use the correct OAuth2.0 token. To generate it you can get help from the following references:

https://docs.clover.com/docs/using-api-tokens

https://docs.clover.com/docs/using-oauth-20


10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered

Sanjay is correct. To add some more information, you are trying to pass a card token as the access token (bearer), that is not correct. Even if you were passing a valid access token, the call would fail because you are not passing the card token as the source.

Please take a look at the following documentation:

https://docs.clover.com/docs/ecommerce-api-tutorials

https://docs.clover.com/docs/ecommerce-accepting-payments

https://docs.clover.com/docs/ecommerce-app-permissions



10 |2000

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