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

自闭症网瘾萝莉.ら 提交于 2020-01-04 05:37:41

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/33218867/why-would-a-subscription-have-no-payment-method-token-and-how-can-i-map-it-to-a

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!