question

kesari avatar image
kesari asked kesari commented

Create order

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

Orders
10 |2000

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

1 Answer

Mike M avatar image
Mike M answered kesari commented

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

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

kesari avatar image kesari commented ·

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?

0 Likes 0 ·
Mike M avatar image Mike M commented ·

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/

0 Likes 0 ·
kesari avatar image kesari commented ·

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

0 Likes 0 ·

Welcome to the
Clover Developer Community