question

lhy2731 avatar image
lhy2731 asked ·

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 characters needed characters left characters exceeded

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

sanjay avatar image
sanjay 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


Share
10 |2000 characters needed characters left characters exceeded

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 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



Share
10 |2000 characters needed characters left characters exceeded

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