Stripe payments 尝试在条带订阅中使用新卡付款时出错

Stripe payments 尝试在条带订阅中使用新卡付款时出错,stripe-payments,laravel-5.8,laravel-cashier,Stripe Payments,Laravel 5.8,Laravel Cashier,我正在使用Laravel出纳,在创建条带订阅时,当我尝试使用失败的测试卡号4000008260003178付款时,它将进入我的catch(),但创建一个付款和发票不完整的订阅是打开的 所以,当我再次尝试在我的前端支付使用正确的卡。我发现下面的Javascript错误。请大家指导如何解决这个错误。我真的被困在这很久了。急切地寻求你的帮助 error: {code: "setup_intent_unexpected_state",…} code: "setup_intent_unexpected_s

我正在使用Laravel出纳,在创建条带订阅时,当我尝试使用失败的测试卡号4000008260003178付款时,它将进入我的
catch()
,但创建一个付款和发票不完整的订阅是打开的

所以,当我再次尝试在我的前端支付使用正确的卡。我发现下面的Javascript错误。请大家指导如何解决这个错误。我真的被困在这很久了。急切地寻求你的帮助

error: {code: "setup_intent_unexpected_state",…}
code: "setup_intent_unexpected_state"
doc_url: "https://stripe.com/docs/error-codes/setup-intent-unexpected-state"
message: "You cannot update this SetupIntent because it has already succeeded."
setup_intent: {id: "seti_1GdZmxIG6uR48z4R5hRjLsFp", object: "setup_intent", cancellation_reason: null,…}
cancellation_reason: null
client_secret: "seti_1GdZmxIG6uR48z4R5hRjLsFp_secret_HBxiiqS1kVmCTmzUMWtdUOmOENsEKEc"
created: 1588243123
description: null
id: "seti_1GdZmxIG6uR48z4R5hRjLsFp"
last_setup_error: null
livemode: false
next_action: null
object: "setup_intent"
payment_method: "pm_1GdZnCIG6uR48z4Ro4OQbcLO"
payment_method_types: ["card"]
status: "succeeded"
usage: "off_session"
type: "invalid_request_error"

听起来您正在创建启用了不完整订阅的订阅。也就是说,您也可以在创建时为不完整的订阅创建订阅。我正在使用laravel出纳,它会自动创建状态为“不完整”的订阅。找不到设置付款行为的选项…听起来您正在创建启用了未完成订阅的订阅。也就是说,您也可以在创建时为不完整的订阅创建订阅。我正在使用laravel出纳,它会自动创建状态为“不完整”的订阅。找不到设置付款行为的选项。。。
error: {code: "setup_intent_unexpected_state",…}
code: "setup_intent_unexpected_state"
doc_url: "https://stripe.com/docs/error-codes/setup-intent-unexpected-state"
message: "You cannot update this SetupIntent because it has already succeeded."
setup_intent: {id: "seti_1GdZmxIG6uR48z4R5hRjLsFp", object: "setup_intent", cancellation_reason: null,…}
cancellation_reason: null
client_secret: "seti_1GdZmxIG6uR48z4R5hRjLsFp_secret_HBxiiqS1kVmCTmzUMWtdUOmOENsEKEc"
created: 1588243123
description: null
id: "seti_1GdZmxIG6uR48z4R5hRjLsFp"
last_setup_error: null
livemode: false
next_action: null
object: "setup_intent"
payment_method: "pm_1GdZnCIG6uR48z4Ro4OQbcLO"
payment_method_types: ["card"]
status: "succeeded"
usage: "off_session"
type: "invalid_request_error"