question

lenab avatar image
lenab asked ·

Refund parameters

Hi

Can you please clarify how do I know paymentId and orderId required for refund? Can it be added to receipt?

SandboxPrintRefund
1594301433440.png (243.2 KiB)
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.

David Marginian avatar image
David Marginian answered ·

Added to receipt? How is that going to help you? You will be limiting your POS to only allow receipts if the customer has a hard copy of the receipt. If you would like to do that see https://docs.clover.com/docs/smart-receipts.

When you execute a payment you will receive a response for that payment (onSaleResponse, etc.). The response will contain a payment and the payment will have both the payment and order id. You will need to grab those and store them with your POSs payment record. Then when the customer asks for a refund you will look up your POSs payment record and you will have the payment/order id.

I suggest that you thoroughly read/review our best practices - https://docs.clover.com/docs/remote-pay-sdk-best-practices.

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.

lenab avatar image
lenab answered ·

Hi

if both values are on receipt I would not have to store it or look it up. It is right there

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

And if they don't have the receipt? We are not going to be adding those properties to the receipt. Best practice mandates that your POS has some stored connection to the Clover payment.

0 Likes 0 · ·
lenab avatar image lenab David Marginian ♦♦ ·

asking for a refund without a receipt? I want to see that. And don't you need receipt to look up payment record anyway?

ok. thanks

0 Likes 0 · ·

That is very common practice in the US especially at major stores. If you would like to add those values to the receipt - https://docs.clover.com/docs/smart-receipts, but I don't know why you would want to limit your POS to requiring a physical receipt for refunds.

0 Likes 0 · ·
Show more comments

Welcome to the
Clover Developer Community