#tayyab_don-Payment Intents

1 messages · Page 1 of 1 (latest)

tough kestrel
#

👋 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

sturdy furnace
#

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

dreamy mango
#

@sturdy furnace Can you share an example pi_xxx?

sturdy furnace
#

should I share payment intent id

#

?>

#

?

dreamy mango
#

Please

sturdy furnace
#

pi_3LQS4iAKYRacajMi1YZyuNAO

dreamy mango
#

Taking a look

#

Yeah, standard auth/3DS request. Is this an off-session payment?

sturdy furnace
#

$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

dreamy mango
#

That code doesn't mirror the API request used to make the Payment Intent you shared

sturdy furnace
#

Can a cron job capture payment from a card having 3D secure ?

dreamy mango
#

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

sturdy furnace
#

I have chat with support

dreamy mango
#

Ok?

sturdy furnace
#

they were saying this

#

Okay first thing I have to make off session true

dreamy mango
#

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

sturdy furnace
#

But if bank deems auth necessary , still a cron capture payment ?

dreamy mango
#

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)

sturdy furnace
#

okay let me see this

#

thanks

dreamy mango
#

np!