为什么订阅没有支付方式令牌,我如何将其映射到客户?

Why would a Subscription have no Payment Method Token, and how can I map it to a Customer?

我正在尝试检索通过 payment_method_token 创建订阅的客户,如 described by Braintree developer agf。但是,我的一个订阅没有支付方式令牌。该字段从 API 返回为 null,并在仪表板中显示为空白 space:

docs 没有提出此字段可能为空的建议。是什么导致了这种情况的发生,我如何找出该订阅与哪个客户相关联?

完全披露:我在 Braintree 工作。如果您有任何其他问题,请随时联系 support.

如果 payment method is deleted 并且它连接了订阅,那么订阅将被取消,令牌将与订阅解除关联,您将在控制面板中看到这一点。

如果有transactions associated with the subscription, you can get customer information from the transaction objects。在这种情况下,似乎订阅在被删除之前从未创建过交易,因此很遗憾,您将无法将其追溯到客户。