-1
例のコードスニペットthe one in the right panel hereに従っています。だから私はRecurlyトークンを持っていて、それを使ってサブスクリプションを開始しようとしています。繰り返しのAPIが500エラーを返す
subscription = Subscription()
subscription.plan_code = 'monthly'
subscription.currency = 'USD'
account = Account(account_code='1a')
account.email = '[email protected]'
account.first_name = 'mark'
account.last_name = 'lname'
billing_info = BillingInfo()
billing_info.number = '4111-1111-1111-1111'
billing_info.month = 1
billing_info.year = 2019
account.billing_info = billing_info
subscription.account = account
subscription.save()
上記のコードを実行するとエラー500が発生します。私がsubscription.save()
をコメントアウトすると、ログはParseError: mismatched tag: line 6, col 2
と表示されます。これはXML解析エラーのようです。私は間違いなく(もちろん、私はサブスクリプションが保存されていないと推測します)。このエラーは何度もテストした結果である可能性がありますか?何が問題になるか?サンドボックスを使用しています。