Laravel 收银员 3D Secure/SCA 问题条纹
Laravel Cashier 3D Secure/SCA issue stripe
在我们的网站上使用laravel收银台集成条纹系统后,我用测试卡进行了测试,成功的很少,不成功的也很少。我试图适应 3D secure/SCA。所以事情是,
4000003800000446、4000002500003155 和 4000000000003055 成功
4000000000003220和4000002760003184是卡中的故障,returns不完整状态。我的系统用于杂志的年度订阅。在我确认后,我确实收到了提示我确认身份验证的弹出窗口,如图 confirmation popup screenshot 所示,它重定向到我创建订阅的代码
$payement_intent = $request->get('intent');
$plan_key = 'plan_*******';
try{
$payement_info = $subscriber->newSubscription('yearly', $plan_key)->create($payement_intent, [
'email'=>$subscriber->email
]);
}catch(IncompletePayment $e){
dd($e);
Session::flash('message', 'Payment is incomplete. Extra verification is needed. You will receive an email with further payment confirmation instructions.');
return redirect()->to(route('acc_success'));
}
因为我放弃了未完成的付款,所以异常的屏幕截图是 enter image description here。我很困惑,因为我在弹出窗口上单击了完整的身份验证,难道它不应该验证 3D 身份验证并使付款成功,或者我是否遗漏了一些关于收银员不完整状态的信息,如 stripe doc 所说 "Subscriptions enter the incomplete status only when the first charge is attempted and either fails or requires SCA."
您使用的两张卡是 3DS2
卡,需要身份验证才能进行交易。 incomplete
状态要求您要求您的客户完成 3DS 流程以授权交易。您可以按照 https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-1-handling-sca 进行操作。
基本上,如果订阅处于incomplete
状态,您将需要检查subscription.latest_invoice.payment_intent
状态。
它将在 require_action
中为这些卡需要身份验证,特别是为测试这些场景而设计的这两个测试卡。
在这种情况下,您只需将 subscription.latest_invoice.payment_intent.client_secret
传递给前端并调用 handleCardPayment
以显示 3DS 模态供您的客户完成授权。
在我们的网站上使用laravel收银台集成条纹系统后,我用测试卡进行了测试,成功的很少,不成功的也很少。我试图适应 3D secure/SCA。所以事情是, 4000003800000446、4000002500003155 和 4000000000003055 成功 4000000000003220和4000002760003184是卡中的故障,returns不完整状态。我的系统用于杂志的年度订阅。在我确认后,我确实收到了提示我确认身份验证的弹出窗口,如图 confirmation popup screenshot 所示,它重定向到我创建订阅的代码
$payement_intent = $request->get('intent');
$plan_key = 'plan_*******';
try{
$payement_info = $subscriber->newSubscription('yearly', $plan_key)->create($payement_intent, [
'email'=>$subscriber->email
]);
}catch(IncompletePayment $e){
dd($e);
Session::flash('message', 'Payment is incomplete. Extra verification is needed. You will receive an email with further payment confirmation instructions.');
return redirect()->to(route('acc_success'));
}
因为我放弃了未完成的付款,所以异常的屏幕截图是 enter image description here。我很困惑,因为我在弹出窗口上单击了完整的身份验证,难道它不应该验证 3D 身份验证并使付款成功,或者我是否遗漏了一些关于收银员不完整状态的信息,如 stripe doc 所说 "Subscriptions enter the incomplete status only when the first charge is attempted and either fails or requires SCA."
您使用的两张卡是 3DS2
卡,需要身份验证才能进行交易。 incomplete
状态要求您要求您的客户完成 3DS 流程以授权交易。您可以按照 https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-1-handling-sca 进行操作。
基本上,如果订阅处于incomplete
状态,您将需要检查subscription.latest_invoice.payment_intent
状态。
它将在 require_action
中为这些卡需要身份验证,特别是为测试这些场景而设计的这两个测试卡。
在这种情况下,您只需将 subscription.latest_invoice.payment_intent.client_secret
传递给前端并调用 handleCardPayment
以显示 3DS 模态供您的客户完成授权。