We have had a few occurrences where the customer_id is not being added to the square payments, making it difficult for our team send the receipt to our customers.
Looking at the API logs I can see that we are indeed sending the customer_id in the body of the create payments call.
Here are the ones that were provided by my ops team
JeV0MszaeXur3J5NWMJuGKwK5pJZY,
Xhb2jYQym1rISeCe7ia98UcCZXMZY,
x4u3CbWyDMbV3GOmLmIj9k6Ry0cZY,
LDxHPUtcrmMCUVE7rPdLLwimNybZY,
5omQCFa69L2xFd5OBCwGenAu1aVZY,
Dd471LU2RA0jZ1t0xWxCP1KP5PdZY,
RkMz26eu117nKk0CGwjkp4qUKGeZY,
lsDhTUa4BGSQSWqA95Go8SJ1BFWZY,
9eW5FJNvE3qvARlIY9oHyAp5Z1LZY,
7Bi86Kc5MzJhVSy36hm0zCUWN7JZY,
btIgukiuyYj3P5DILcRGC8CbjVGZY,
lyUGUZkX6uYstOTfUqWjEau1Gg7YY,
p6ltoJXrDwUgmMtl89bZcLzOG3eZY,
HFBkyeWCbHDteuFCEDws1zLElAMZY,
TLn9DfTVYW0KmIgx0YFNkdBFQCZZY,
DRCTxBo5ZomwRU7phfrbQOk5YYXZY,
hwmXUTys2pisBZczkz0LIfRkgKdZY,
3jCZPb6e8tTNoxsHAgGmWet6VWDZY,
rDnAI4W9RwfoPDAEthF2V8Qgh4bZY,
jdQxmqqblsY0Ommc9gjOTFLo7hbZY,
F0RSBNpy9VGEXWPvntzpAWF4CzPZY,
1qA4AfPlO8uafO5iCf2hXQx6hWQZY,
n3EDfJrWr9GUb0T05OvlZsmyA5bZY,
BMy2W70W0FNCpXgQIO29yIPqnCUZY,
HpHsPpCgu4lP2fXQizaU5fwKpiSZY
They said they noticed a delay after making payments in the past. Is there usually a delay when making a payment for the customer id to show up? And about how long is that delay?
@reyestia Hi there! I’ve got accounts connected and have figured out how to do a transaction immediately. However, I need our sellers to approve a transaction before it is processed, so either the authorization needs to be held, or I need to somehow save the Card ID from the token. Which is the best approach? And how do you do each? I’m not sure what format the entire card id of a token would be in to save it as data, or if that’s even possible. There is an authorization true/false option in payments but I’m not sure how to call on that later.
How long is the authorization period? If it’s more then 7 days you’ll need to store the card on file then charge it. Currently the longest we can authorize a payment is 7 days.
With respect to saving the card for a later transaction (or two), you’d need to use the supplied token to save a card ID. The steps in rough summary are:
get customer to submit a card token and providing their details (name, phone, address etc)
create a Square customer using Square API CreateCustomer call
save a card using Square API call CreateCard and the token from the customer
when ready, use the saved card token and the API call CreatePayment to charge the card
It might be good to do a pre-auth as well, not sure about the importance of that within your legal constraints, but it does allow you to verify the card more completely and remind the customer that your payment is coming up. It also reserves funds, which may be problematic if it’s a whole week away. Either way my understanding is that you’d need to communicate clearly with the customer as to what was happening (card is being saved, amount, pre-auth if done, emailing them re this as well, email when card charged and potentially before the card charge). This is partly because some places require this, partly to avoid misunderstandings/chargebacks.
Feel free to let me know if I’ve got any of this wrong, not sure where one would go to read what the requirements are in different legal jurisdictions.