question

ezpays avatar image
ezpays asked ·

what is a difference between charge api and pay api?

https://scl-sandbox.dev.clover.com/v1/charges

This is charge API.

https://scl-sandbox.dev.clover.com/v1/orders/{orderId}/pay

That is pay api for order


My question is what the difference is between charge and pay api?

At charge API, what does it means? For example, I charge amount to my card?
At pay API, what does it means? For example, what money do I use?

PaymentsDeveloper Pay API
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.

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered ·

A charge is for making a payment that is not associated with a Clover order. The v1/orders/{orderId}/pay endpoint is for paying for a Clover order.

This is described in our documentation, which I have previously linked to you - https://docs.clover.com/docs/ecommerce-accepting-payments:

If there is no order associated with a payment, simply create a charge by sending a POST request to the /v1/charges endpoint. This is useful for scenarios such as recurring subscriptions.


4 comments
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.

I can not see your documentation.

screen-shot-2021-03-11-at-80707-pm.png

0 Likes 0 ·

Sorry, I accidentally had the semicolon in the link. It is fixed now.

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

I already read it. But I am not sure what charge means. From where to where?

From other credit card to my clover sandbox or clover production?

Because I saw "purchase" API at other payment website.


I want to know "From where to where".

0 Likes 0 ·
Show more comments

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