为什么订阅没有付款方式令牌,如何将其映射到客户? [英] Why would a Subscription have no Payment Method Token, and how can I map it to a Customer?

查看:55
本文介绍了为什么订阅没有付款方式令牌,如何将其映射到客户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检索通过其 payment_method_token 创建订阅的客户,如

docs 没有提供建议,表明该字段可以永远是空的.是什么原因导致这种情况发生,以及如何确定此订阅与哪个客户相关?

解决方案

完整披露:我在Braintree工作.如有其他疑问,请随时与支持联系.

如果删除了付款方式,并且该订阅已与它,那么订阅将被取消,令牌将与订阅解除关联,您将在控制面板中看到它.

如果存在与订阅相关的交易,则可以获得客户信息来自交易对象.在这种情况下,订阅似乎在删除之前从未创建过交易,因此很遗憾,您将无法追溯到客户.

I'm trying to retrieve the customer who created a subscription via its payment_method_token, as described by Braintree developer agf. However, one of my subscriptions has no Payment Method Token. The field comes back as null from the API, and shows up as a blank space in the dashboard:

The docs offer no suggestion that this field could ever be empty. What can cause this to occur, and how can I find out which customer this subscription is associated with?

解决方案

Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.

If a payment method is deleted and it has subscriptions connected to it, then the subscription will be canceled, the token will be disassociated from the subscription and you will see this in the control panel.

If there are transactions associated with the subscription, you can get customer information from the transaction objects. In this case, it seems like the subscription never created a transaction before it was deleted so unfortunately you won't be able to trace that back to a customer.

这篇关于为什么订阅没有付款方式令牌,如何将其映射到客户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆