question

roman avatar image
roman asked roman answered

Customer Credit Card payments using Web API

The case is pretty simple.

E-Commerce web app allowing users to pay for items(do orders) remotely using a credit card.
I have a ruby server that talks to Clover Web Api.

My flow is:
1. Create a user for a merchant
POST /v3/merchants/{mId}/customers
2. Add credit card to that Customer
POST /v3/merchants/{mId}/customers/{customerId}/cards
3. Create an Order
4. Update Order with items that Customer selected
5. Pay for that Order -> no how do I do that?

obviously there's this:
https://docs.clover.com/faq/how-do-i-use-the-web-a...

The questions to that:
1. Is this even relevant to Web Apps and is still supported? Why nothing is in V3?
*Clear examples on "Tenders" if that's the way to go -> could be really useful
2. What is the point of adding credit card to a Customer then if I literally need to pass that credit card info again with that RSA added with that V2 endpoint?
3. How to actually use customer's credit card for orders? Any examples?

And a bit off top question, but really need confirmation on that -> Refunds -> are they available through web API for credit cards?

Thanks in advance. Roman
OrdersPayments
10 |2000

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

Mark Mullan avatar image
Mark Mullan Deactivated answered
Hi @Roman

You're looking for our Developer Pay API, which is our e-commerce API that actually transacts credit cards. We have example usage in Ruby here.

If you're interested in our e-commerce refund API, please message us directly at dev@clover.com and we'll help you out there.

Thanks,
Mark
10 |2000

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

roman avatar image
roman answered
Thanks @Mark Mullan!
That should help. Will message you guys for refunds and related questions.
Thanks.
10 |2000

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