0

HI,

I can able to create order by using

https://www.clover.com/apiexplorer?starturl=POST+%2Fv2%2Fmerchant%2F%7BmId%7D%2Fpay

But when i try to pay for particular order using

https://www.clover.com/apiexplorer?starturl=POST+%2Fv2%2Fmerchant%2F%7BmId%7D%2Fpay

the response is showing as 401 Unauthorized.

And also I can't see these order in my list.

Thanks!!!

asked 2016-05-11 06:22:31 -0500

Kesari gravatar image

updated 2016-05-11 06:50:51 -0500

1 answer

Sort by  
0

Please refer to: https://docs.clover.com/build/web-app...

Specifically,

Once the Order’s “state” is set to “open”, the Order will be returned in the merchant’s order list, and will appear in the Orders app.

In order to pay for an order, you cannot use an API Token generated via the merchant's Setup app (merchant-scoped). You need a developer-scoped token, which you can create via either OAuth flow for your web app or via the Clover SDK for an android app.

Also, for payments, please refer to: https://docs.clover.com/faq/#how-do-i...

answered 2016-05-11 12:59:05 -0500

mike gravatar image

updated 2016-05-11 12:59:36 -0500

Comments

How can i make order state as open?

And can you provide me any example code in c# to encrypt card information

https://docs.clover.com/faq/#how-do-i...

And where can i get my developer-scoped token?

Kesari gravatar image
Kesari 2016-05-11 23:48:49 -0500

stateis field on the Order object: http://devask.clover.com/question/137...

No, but the FAQ question does a java example that you can use to compare your own c# development: https://docs.clover.com/v2webpaytest/ This is also so you can validate your card info encryption (you'd be surprised how often people try to use the wrong encryption).

As I said before, you can create a developer-scoped token via either OAuth flow for your web app or via the Clover SDK for an android app. Please check out our documentation: https://docs.clover.com/build/

mike gravatar image
mike 2016-05-12 12:03:37 -0500

Created app in sandbox account as per this. Do i need to submit app to get access token? Or App secret is access token?

Kesari gravatar image
Kesari 2016-05-13 06:29:54 -0500