question

freemandev avatar image
freemandev asked ·

Customer Name Unknown after Charge v1

I'm using "Rest Api" for making charge for our website using SandBox Development Environment, the code is working but under "Customers Tab" shows Customer name as "Name Unknown" always.

How can i send customer detail with

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

so i can set customer detail inside "Customers Tab"


REST APICustomers
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.

freemandev avatar image
freemandev answered ·

Your mean to say there is no way to send customer information with "charge" that replace the "Name Unknown".

3 comments Share
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.

Per my answer, card on file is the only way.

0 Likes 0 · ·

If i do card on file than the customer information go with the charge url link. https://scl-sandbox.dev.clover.com/v1/charges directly.

Through this i can store the "Customer Detail" with the "Transactions - Payments" Tab directly ?

0 Likes 0 · ·

The customer will be associated with the order, not the payment.

0 Likes 0 · ·
David Marginian avatar image
David Marginian answered ·

The only way I see to do this is to use a card on file: https://docs.clover.com/docs/ecommerce-saving-card

If you don't want to use a card on file, then you would need to create a customer (via the v3 endpoint - https://docs.clover.com/reference#handlerscreatecustomer) and then create an order referencing that customer (https://docs.clover.com/reference#postorders - { ... , "customer": "uuidOfCustomer", ... } and then pay for the order (https://docs.clover.com/reference#postordersidpay).

Share
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.

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