Debug Refunds for Custom Payment Gateway

I’m implementing a custom payment gateway, but I have problems with the refund.

When creating a payment at Snipcart, I submit a {links: {refunds: ‘https://domain.com/myendpoint/myid’}} object. But when I request a refund in the Snipcart dashboard, I get an “We encountered an error while processing the last request, do you want to try again ?” error message.

I’m in TEST mode and my submitted endpoint accepts GET requests.

I couldn’t find any information in the webhooks or developer logs. How will I find out what went wrong?

Hi there,

After taking a look at our logs, it seems that your refund link is called but there’s a timeout on the link’s side. Can you please take a look and be sure that your link gives a response ?

Thank you !

Thank you for the reply, Chuck.

I don’t think there was a timeout, because it took only a second for Snipcart to return the error message.

But now I found out, that I was using the request validation from the Snipcart API, instead of the validation for payment gateways. It seems to work now.