question

Sukhbir Singh avatar image
Sukhbir Singh asked Sukhbir Singh answered

When we create order using clover SDK and used that order id to make payment using clover API we got "Order not found exception"

@James Cha
Payments
10 |2000

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

pst avatar image
pst answered
explicitly set the Order State to Open

https://docs.clover.com/build/working-with-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.

Sukhbir Singh avatar image
Sukhbir Singh answered pst commented
we have updated the order state to open and still we are getting "Order not found exception". for clover payment API, we are calling https://api.clover.com:443/v3/merchants/{merchantId}/orders/{orderId}/payments/?accessToken="" to make the payment.
1 comment
10 |2000

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

pst avatar image pst commented ·

Is the SDK pointing to production or sandbox (did you set the State in the SDK before trying the API?)
the API sanbox target would be https://sandbox.dev.clover.com

0 Likes 0 ·
Sukhbir Singh avatar image
Sukhbir Singh answered
Thanks for response.
How to set the SDK pointing to production, and I have set the state of order to "open" using Order Connector before calling API.
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