Ich habe ein Recurly-Token und versuche, ein Abonnement damit zu starten. Ich verfolge die Beispiel-Code-Snippets wie the one in the right panel here.Erstellen von Recurly BillingInfo mit nur einer Token-ID
subscription = recurly.Subscription(
plan_code = 'bazooka_monthly',
account = recurly.Account(
account_code = 'john_rambo',
billing_info = recurly.BillingInfo(token_id = 'TOKEN_ID')
)
)
subscription.save
Allerdings, wenn ich versuche, nur eine token_id zu BillingInfo passieren, klagt sie „subscription.account.billing_info.number ist erforderlich“.
Wie kann ich die BillingInfo nur mit einer Token_ID erstellen, ohne diesen ValidationError zu bekommen?