question

tabebee avatar image
tabebee asked domainesia answered

Hosted Checkout payload and receipts

Is there a way to implement sending a receipt to the merchant in Hosted Checkout after a payment has been made? I only see an option on the actual payment screen which is the field where our customer inputs their email address to send them their receipt.

Also, is there any example payload for the hosted checkout api webhook url available?

Is there also a way to enable credit card fees? I do not have the option to enable it via the Additional Fees --> Credit Surcharge. If not, is there a way to enable a percentage fee that is set by us?

e-commerce 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.

hector-m avatar image
hector-m answered

If I'm understanding correctly you can use clovers print api endpoint https://docs.clover.com/dev/docs/printing-orders-rest-api# to make the merchant device print a receipt for the order. You do need to retrieve the order id first using the payment id which you can receive from the hosted checkout webhook.

10 |2000

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

domainesia avatar image
domainesia answered

For Hosted Checkout, sending a receipt to the merchant typically requires integrating a webhook that captures payment confirmation and then triggers an email to the merchant. You can use a service like Zapier or a custom API to automate this.

For the webhook payload, check the official API docs, but a typical payload includes transaction ID, amount, status, and customer details. If an official example isn’t available, try a test transaction to inspect the payload.

Regarding credit card fees, some platforms restrict surcharge settings due to regulations. If you can’t enable it via Additional Fees → Credit Surcharge, check with your payment provider if surcharges are allowed or if you need to manually adjust pricing by adding a processing fee to the total transaction amount.

10 |2000

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

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