question

hergy80 avatar image
hergy80 asked ·

Sandbox REST Pay API Down?

Geting a service unavailable in the sandbox trying to do a REST payment. Everything else (calling for the key, creating an order, etc) is working, but it says gateway unavailable when we send off the payment information to /v2/merchant/mid/pay/key.
REST APISandbox
1 comment
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.

Anyone else with this issue? It's currently stalling our development...
0 Likes 0 · ·
hergy80 avatar image
hergy80 answered ·
We determined the problem was we were passing a 0 (ie: $0) for the amount to charge. Instead of returning a usable error message that the data wasn't within parameters, it just failed and said the gateway was unavailable. Hopefully this will save someone a headache in the future.
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.

Frank Faustino avatar image
Frank Faustino answered ·
Hi, @hergy80.

Are you still experiencing this issue? Are you able to successfully make a payment using cURL or Postman? We are not currently seeing any issues with our Developer Pay API servers.

Can you please share a code snippet of how you're making payments and the exact error message. One thing to note: to make a payment, make sure it's a POST request to /v2/merchant/mID/pay with the proper JSON payload as outlined here in our documentation.
4 comments 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.

We are making a POST to the server. It was working then suddenly we started getting a HTTP/1.1 503 Service Unavailable header with a message "Error Connecting to Payment Gateway" returned. We are using https://sandbox.dev.clover.com/v2/merchant/{mid}/p... Since it was a 503 error, I figured it was an issue on the server end and not a bad request or anything like that.
0 Likes 0 · ·

Ah, that clarifies things. Since the Payment Gateway is a separate entity from Clover and is not owned by Clover, we cannot guarantee its reliability. It's recommended to retry the request if you get an "Error connecting to Payment gateway" error message.

0 Likes 0 · ·
hergy80 avatar image hergy80 Frank Faustino ♦♦ ·

So how are we supposed to develop for this (this is all in the sandbox)? I've been trying it for 3 days now and it still isn't connecting.

0 Likes 0 · ·
Show more comments

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