【发布时间】:2021-10-11 22:08:50
【问题描述】:
我正在尝试实施 Stripe PaymentIntent。当我创建 PaymentIntent 对象时,我将它 request_three_d_secure 传递给 payment_method_options 但创建的 PaymentIntent 未在确认时请求 3d 安全付款。下面是我创建 PaymentIntent 对象的方式。
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => 1099,
'currency' => 'usd',
'customer' => 'cus_XXXXXXXXXXXXX',
'payment_method_types' => ['card'],
'payment_method_options' => '[card][request_three_d_secure][any]',
'payment_method' => 'card_XXXXXXXXXXXXXXXXXXXXX',
]);
$paymentIntent = $stripe->paymentIntents->confirm(
$paymentIntent->id,
['payment_method' => 'pm_card_visa']
);
我是否正确地创建了 PaymentIntent 对象?有其他人遇到过与此相关的任何问题吗?
【问题讨论】:
标签: php laravel stripe-payments payment-gateway