#tayyab_don-Payment Intents
1 messages · Page 1 of 1 (latest)
👋 happy to help
would you mind moving your message to the thread and delete it from the main channel
would you mind deleting it from the main channel
I am using stripe to making payment and a Cron was working using which customer is charged every month via their card.
According to latest requirement I have implemented 3D Secure in my project. When user enters a card it is working absolutely fine and authenticate the card and after successful authentication done from a pop up open , payment get captured. But when Cron job capture payment it gives issue that Customer must complete additional authentication step .
I am making payment Intent like this.
$data = array(
'amount' => 100,
'currency' => 'dkk',
'payment_method' => $payment_method,
'customer' => $customer_id,
"description" => $description,
'metadata' => ['integration_check'=>'accept_a_payment'],
"off_session" => true,
"confirm" => true,
'setup_future_usage' => 'off_session',
"payment_method_options[card][request_three_d_secure]" => "automatic",
)
Sure
Deleted from main channel
@tough kestrel hope you are fine
can you please guide me in this issue
@sturdy furnace Can you share an example pi_xxx?
Please
pi_3LQS4iAKYRacajMi1YZyuNAO
Taking a look
Yeah, standard auth/3DS request. Is this an off-session payment?
You didn't pass off_session: true like your code above suggests: https://dashboard.stripe.com/test/logs/req_t0KCOJDdHKJngj
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
$data = array(
'amount' => 100,
'currency' => 'dkk',
'payment_method' => $payment_method,
'customer' => $customer_id,
"description" => $description,
'metadata' => ['integration_check'=>'accept_a_payment'],
"off_session" => true,
"confirm" => true,
'setup_future_usage' => 'off_session',
"payment_method_options[card][request_three_d_secure]" => "automatic",
)
Yes
What should I change
?
I want recall again that I am using 3D secure
That code doesn't mirror the API request used to make the Payment Intent you shared
Can a cron job capture payment from a card having 3D secure ?
In theory, yes. But there's a chance 3DS will be requested and there's no way to facilitate handling those requirements without bringing the user on-session
If you're doing off-session payments then you need to pass off_session: true. You didn't for pi_3LQS4iAKYRacajMi1YZyuNAO
I have chat with support
Ok?
You don't 'use 3D secure'. You can't opt-in or opt-out of it
If the bank deems auth necessary, then you will need to facilitate the 3DS flow for auth
But if bank deems auth necessary , still a cron capture payment ?
If the payments are off-session then you can optimise the the payment method for that by setting it up correctly, and marking any subsequent payments as off-session (off_session: true)
np!