我无法在Laravel项目中设置Stripe 3D安全付款。
我可以按照Stripes API文档中的非3D安全付款测试卡付款,但是我无法获取需要进行第二次确认的网址。令牌只会返回令牌本身,而费用会返回错误消息:“此卡使用3D安全”
$key = env('STRIPE_SECRET');
\Stripe\Stripe::setApiKey($key);
$token = $_POST['stripeToken'];
$charge = \Stripe\Charge::create([
'amount' => '99',
'currency' => 'gbp',
'description' => 'ref',
'source' => $token,
'capture' => false,
]);
// I haven't captured the payment yet but it will go around here.