问题
I've noticed that in nearly all cases that after receiving a webhook notification and retrieving the payment and correlating transaction, that the tender(s) on the transaction are missing the customer_id.
On rare occasions it is populated. At some point in the future it seems that this is being added, as old transactions have the field set.
Is this a bug? Can someone explain/document the expected behavior? Are there any plans for this to be set in real-time?
Thanks
回答1:
We'll improve the documentation around that feature. The customer_id field is optionally added by the merchant in the event that the merchant wants to track customers, and is only included in the response when the merchant has added it. However, the field is required in the event that the customer_card_id parameter mentioned here https://docs.connect.squareup.com/api/connect/v2/#endpoint-charge is provided.
来源:https://stackoverflow.com/questions/37308423/customer-id-is-not-populated-on-transaction-tender