question

jtg763 avatar image
jtg763 asked jtg763 edited

How to send metadata with Hosted Checkout API

I'm looking for details on how to send metadata that can be retrieved by the webhook after a successful payment.

I'm looking for the equivalent to Stripe's metadata field on their hosted checkout.


The POST body for https://sandbox.dev.clover.com/invoicingcheckoutservice/v1/checkouts

is in this format:

{
"customer": {
"email": "johndoe@gmail.com",
"firstName": "John",
"lastName": "Doe"
},
"shoppingCart": {
"lineItems": []
},
"redirectUrls": {
"success": "https://example.com/payment-success",
"failure": "https://example.com/payment-failure",
"cancel": "https://example.com/payment-canceled"
}
}
  
                 


Is there somewhere in this body or another way I can send metadata/additional info about the purchase?


Thanks!

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.

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