#rups

1 messages · Page 1 of 1 (latest)

granite gazelleBOT
thorn ember
#

👋 how may I help?

summer oasis
#

hi

#

I need to create trail subscription with 3d secure

thorn ember
#

would you mind elaborating more?

summer oasis
#

yes sure

#

My requirement is to create subscription with trial period of 30 days and after 30 days 20pound should deduct

#

this process must ask for 3d secure.

#

hope it clear to you.

thorn ember
#

do you want to collect the payment method at first?

summer oasis
#

yes

thorn ember
#

using Checkout Sessions?

summer oasis
#

not have idea about checkout sessions

#

can you ellaborate more?

thorn ember
summer oasis
#

so it will ask for 3d secure?

#

there is no confirm card payment here

granite gazelleBOT
summer oasis
#

stripe mail me this before some days
As discussed, Strong Customer Authentication (SCA) is a regulation mandate in Europe that requires the use of 3DS for card payments. To lower down the failed payments on your account, you'll have to integrate 3DS, and Stripe will trigger 3D Secure automatically if required by your customer’s bank or a regulatory mandate such as Strong Customer Authentication [0]. Alternatively, you can use Radar rules[1] or the API to manually control when customers are prompted to complete 3D Secure authentication, making a determination for each customer based on the desired parameters.

shadow steppe
#

I'm not understanding what your specific coding/development question is.

summer oasis
#

My requirement is to create subscription with trial period of 30 days and after 30 days 20pound should deduct
this process must ask for 3d secure as stripe send me email as below:

As discussed, Strong Customer Authentication (SCA) is a regulation mandate in Europe that requires the use of 3DS for card payments. To lower down the failed payments on your account, you'll have to integrate 3DS, and Stripe will trigger 3D Secure automatically if required by your customer’s bank or a regulatory mandate such as Strong Customer Authentication [0]. Alternatively, you can use Radar rules[1] or the API to manually control when customers are prompted to complete 3D Secure authentication, making a determination for each customer based on the desired parameters.

shadow steppe
#

what have you tried so far, do you have an existing Stripe integration you've coded?

summer oasis
#

yes already it is working since 3-4 year

#

$subscribe = \Stripe\Subscription::create([
'customer' => $user['stripeCustomerId'],
"items" => [
[
"plan" => $stripePlanId,
],
],
'payment_behavior' => 'default_incomplete',
'expand' => ['latest_invoice.payment_intent', 'pending_setup_intent'],
'payment_settings' => ['save_default_payment_method' => 'on_subscription'],
'trial_period_days' => $days,
]);
$response = [
'stripePlanId' => $stripePlanId,
'subscriptionId' => $subscribe->id,
'clientSecret' => $subscribe->pending_setup_intent->client_secret,
'status' => $subscribe->status
];

#

trail subscription

#

pass with above clientSecret token to below:

stripe.confirmCardSetup(clientSecret, {
//Elements instance that was used to create the Payment Element
payment_method: {
card: cardElement,
billing_details: {
name: customer_name,
},
},
})

#

can you please verify my current code.

#

currently subscription is created properly with no payment deducted.

#

but it doesnt ask for 3d secure.

shadow steppe
#

it's not guranteed to ask for 3D Secure in this case

#

it will if our systems think it's needed or if you have a Radar rule to specifically request it, but otherwise, confirming the SetupIntent can succeed without it

#

if you want to force it to happen(because we told you to), it's more complicated to build

summer oasis
#

oh

#

so after trail end should that amount deducted automatically by stripe even no 3d secure confirm in save card.

shadow steppe
#

when the trial ends we generate an invoice for the amount of the next month, and charge that to saved card. It's up to the bank if that payment requires 3D Secure or not

summer oasis
#

so if 3d didnt done due to trial subscription and at time of trial end & bank gives error on requires 3D Secure

#

right? as our card didnt pass to 3d secure once trial sub created

shadow steppe
#

that can happen yes; you can maybe avoid that by forcing 3DS to happen when saving the card when starting the trial, but that adds friction for the customer signing up.

#

So by default 3DS only happens at that time if our systems think it's needed or if you have a Radar rule to specifically request it, but otherwise, confirming the SetupIntent can succeed without it

summer oasis
#

yes I understand your point

#

but my requirement is to charge customer after trial end

#

and dont want customer to do the same process manually again

shadow steppe
#

well the charge after the trial can fail for any reason and you need to handle that in any case.

#

for example maybe their card expires or they lost it and cancelled it with their bank between starting and ending the trial, so the charge is declined.

summer oasis
#

I dont mind if case will be above one it is genuine one .

#

but I mind if charge declined due to 3d Secure.

shadow steppe
#

so what is your current coding question or where you're stuck?

summer oasis
#

as I started earlier

#

3d secure is not asking on trial subscription.

shadow steppe
#

I think I addressed that : by default 3DS only happens at that time if our systems think it's needed or if you have a Radar rule to specifically request it, but otherwise, confirming the SetupIntent can succeed without it

#

if you want to force it to happen(because we told you to), it's more complicated to build

summer oasis
#

ok got it now. so I have to manually send email to customer for pay again for active 3d secure

#

right?

shadow steppe
#

not sure I understand. When would you send the email?

summer oasis
#

not getting your point.

shadow steppe
#

you said you "have to manually send email to customer for pay again for active 3d secure"

#

when do you imagine sending that email? when the customer is starting the subscription trial, or a month later when the trial ends and they're charged for the first time? or some other time

summer oasis
#

after trail end How I aware client to active 3d secure in his card.

shadow steppe
#

well we have a setting you can turn on that automatically emails the customer so you could use that

summer oasis
#

checking

#

and is it chance if I create paid subscription and server side I update that subscription with free trial?

#

can I update that way?

#

create subscription + 3d secure + once 3d complete

#

update that subscription with free trial.

#

can I do it?

shadow steppe
#

well then it's not a trial since the customer had to pay ?

summer oasis
#

ok got you now.

#

can we have this scenario should have on stripe api?

#

so I can pass this thing to my techy client directly?

shadow steppe
#

I don't know what you're asking.

summer oasis
#

can you pass me stripe link where this scenario listed.

#

"3d secure not ask in trial subscription"

shadow steppe
#

I don't think I can

#

any more technical questions or can I close this thread?

granite gazelleBOT