我想使用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
})