从 Square Customer 检索卡详细信息
Retrieving Card details from Square Customer
我正尝试在 Square 上创建定期付款,ala Stripe 订阅。但是,我无法检索客户的卡信息(特别是 customer_card_id
)以传递到 Charge。
我们的流程是这样的:
- 客户访问我们的商店并订阅会员资格,我们通过销售点应用程序处理。
- 我们不断轮询 Square 以检索付款信息,并适当地创建会员记录。
- 当用户的会员期到期时,向他们收取下个月的会员费。
在研究RetrieveCustomer的时候,发现Customer
下有一个cards
属性,但是遍历了我们账号下所有的Customers
,他们都有 cards = None
尽管我们已经通过销售点应用程序进行了信用卡支付。
此外,正在查看 ListTransactions, there doesn't seem to be anything that might be customer_card_id
. The IDs I see there are tender ID, location ID, and transaction ID. The card_fingerprint
also looks promising but that doesn't seem right either, since a card can have both an ID and a fingerprint。
我错过了什么吗?我在哪里可以找到 customer_card_id
?
编辑
看来我很笨,我们应用程序的本地实例刚刚与来自 Square 的交易过时。自上次更新以来我们处理过的客户更新了我的数据后,现在显示非 None
card
属性 的客户。
你们如何处理首笔费用?您需要在文件中明确添加该卡,默认情况下不会在处理客户交易时添加该卡。参见:https://squareup.com/help/us/en/article/5770-use-card-on-file-with-the-square-point-of-sale-app
我正尝试在 Square 上创建定期付款,ala Stripe 订阅。但是,我无法检索客户的卡信息(特别是 customer_card_id
)以传递到 Charge。
我们的流程是这样的:
- 客户访问我们的商店并订阅会员资格,我们通过销售点应用程序处理。
- 我们不断轮询 Square 以检索付款信息,并适当地创建会员记录。
- 当用户的会员期到期时,向他们收取下个月的会员费。
在研究RetrieveCustomer的时候,发现Customer
下有一个cards
属性,但是遍历了我们账号下所有的Customers
,他们都有 cards = None
尽管我们已经通过销售点应用程序进行了信用卡支付。
此外,正在查看 ListTransactions, there doesn't seem to be anything that might be customer_card_id
. The IDs I see there are tender ID, location ID, and transaction ID. The card_fingerprint
also looks promising but that doesn't seem right either, since a card can have both an ID and a fingerprint。
我错过了什么吗?我在哪里可以找到 customer_card_id
?
编辑
看来我很笨,我们应用程序的本地实例刚刚与来自 Square 的交易过时。自上次更新以来我们处理过的客户更新了我的数据后,现在显示非 None
card
属性 的客户。
你们如何处理首笔费用?您需要在文件中明确添加该卡,默认情况下不会在处理客户交易时添加该卡。参见:https://squareup.com/help/us/en/article/5770-use-card-on-file-with-the-square-point-of-sale-app