question

niraj avatar image
niraj asked David Marginian Deactivated commented

Issue in clover Rest API for payment : POST /v2/merchant/{mId}/pay

My request body is as below :

{

"orderId":"7GB7KMAN3RJGP",

"taxAmount":0,

"zip":"201301",

"expMonth":2,

"cvv":123,

"amount":100,

"currency":"usd",

"last4":"6668",

"first6":"601136",

"expYear":"2021",

"cardEncrypted":"asdasdadasdasd"

}

Order exist in merchant business Although why it happens .
I always get the same error - "{"message":"Invalid order ID"}"
Please help on this . I tried many times to solve this but found myself helpless.

REST APIDeveloper Pay API
selection-001.png (65.1 KiB)
5 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.

David Marginian avatar image David Marginian ♦♦ commented ·

Your request looks right to me as well. I am not certain what is going on here. That being said, we have a new ecomm API, would you consider using that instead of our Developer Pay API? More information on it can be found here - https://docs.clover.com/clover-platform/docs/ecommerce-accepting-payments.

1 Like 1 ·
niraj avatar image niraj David Marginian ♦♦ commented ·

Thanks for quick response . As I went trough this I got url as

https://scl.clover.com/v1/orders/{order_id}/pay

while going to pay for already created order.
Does this work with sandbox orders as well as ?

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ niraj commented ·

Tha is a production url. For sandbox use

https://scl-sandbox.dev.clover.com/
1 Like 1 ·
niraj avatar image niraj David Marginian ♦♦ commented ·

Your suggestion was very helpful and all services are set fine except server response.
It must be fixed by clover family. please look into snapshot and suggest what's wrong ?

0 Likes 0 ·
selection-002.png (55.9 KiB)
David Marginian avatar image David Marginian ♦♦ niraj commented ·

Maybe it was just a temporary server problem can you try your request again?

1 Like 1 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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