question

santiago avatar image
santiago asked santiago published

How can I add additional costs with the hosted checkout payment method?

I want to charge an additional cost, in my case I want to charge a cost for shipping, in the total amount of the payment to be made I want to add this amount, how can I achieve this?


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"

}

}

Payments
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