I have a Recurly token and am trying to start a subscription using it. I am following the example code snippets, such as the one in the right panel here.
subscription = recurly.Subscription(
plan_code = 'bazooka_monthly',
account = recurly.Account(
account_code = 'john_rambo',
billing_info = recurly.BillingInfo(token_id = 'TOKEN_ID')
)
)
subscription.save
However whenever I try to just pass a token_id to BillingInfo, it complains "subscription.account.billing_info.number is required".
How can I create the BillingInfo with only a token_id without getting this ValidationError?