【问题标题】:Payment method token is invalid when I create subscription in Braintree当我在 Braintree 中创建订阅时,付款方式令牌无效
【发布时间】:2015-06-05 20:53:43
【问题描述】:

我想使用 Python 和 JS 使用 Braintree 创建订阅。 但我得到一个错误:

'errors': <braintree.errors.Errors object at 0xb0d157cc>, 'transaction': None, 'subscription': None, 'message': 'Payment method token is invalid.', 'credit_card_verification': None, 'merchant_account': None

我创建令牌和订阅的方式

    token = braintree.ClientToken.generate({
        "customer_id": self.braintree_customer.id
    })

    create_subscriptions = braintree.Subscription.create({
        "payment_method_token": token,
        "plan_id": self.plan_id
    })

【问题讨论】:

    标签: python payment-gateway braintree


    【解决方案1】:
    猜你喜欢
    • 2015-05-30
    • 2011-08-23
    • 2018-05-07
    • 2019-04-15
    • 2018-08-10
    • 1970-01-01
    • 1970-01-01
    • 2018-05-14
    • 2018-03-05
    相关资源
    最近更新 更多