question

freemandev avatar image
freemandev asked freemandev commented

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

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

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

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

2 comments
10 |2000

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 commented ·

Card On File means First i create Customer and then i use the customer id where i want.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ freemandev commented ·

Yes, per the link above, you create the customer then when you make the charge you pass in the customer's uuid as the source.

0 Likes 0 ·
freemandev avatar image
freemandev answered freemandev commented

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

18 comments
10 |2000

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

David Marginian avatar image David Marginian ♦♦ commented ·

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

0 Likes 0 ·
freemandev avatar image freemandev commented ·

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 ·
David Marginian avatar image David Marginian ♦♦ freemandev commented ·

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

0 Likes 0 ·
freemandev avatar image freemandev David Marginian ♦♦ commented ·

If i try to get the Charge immediately after the response get from the below link

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

and get the charge id from the above link response and try to get the single charge using this below link

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

it's give error "Charge with id ************* not found. "

but if i try to get the charge form below link

https://docs.clover.com/reference#getchargescharge

it's provide the response successfully.


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

There is a sync that happens between our auth server (where the charge takes place) and our servers that the get API hits. In production this delay is typically only a few hundred milliseconds but can be longer in exceptional conditions. I have noticed that the delay can be quite a bit longer on sandbox

0 Likes 0 ·
freemandev avatar image freemandev David Marginian ♦♦ commented ·

This delay occurs in a few seconds or minutes.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ freemandev commented ·

Sorry, I was on my phone when I originally responded and didn't look closely enough at the endpoints you posted. The sync isn't the issue. I am sorry, I am confused by your question?

https://scl-sandbox.dev.clover.com/v1/charges/*************
it's give error "Charge with id ************* not found. "


but if i try to get the charge form below link
https://docs.clover.com/reference#getchargescharge
it's provide the response successfully.

These are the same endpoints, so it is either working or not, or your post isn't accurate.

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