#rups
1 messages · Page 1 of 1 (latest)
👋 how may I help?
would you mind elaborating more?
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.
do you want to collect the payment method at first?
yes
using Checkout Sessions?
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.
I'm not understanding what your specific coding/development question is.
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.
what have you tried so far, do you have an existing Stripe integration you've coded?
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.
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
oh
so after trail end should that amount deducted automatically by stripe even no 3d secure confirm in save card.
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
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
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
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
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.
I dont mind if case will be above one it is genuine one .
but I mind if charge declined due to 3d Secure.
so what is your current coding question or where you're stuck?
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
ok got it now. so I have to manually send email to customer for pay again for active 3d secure
right?
not sure I understand. When would you send the email?
not getting your point.
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
after trail end How I aware client to active 3d secure in his card.
well we have a setting you can turn on that automatically emails the customer so you could use that
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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?
well then it's not a trial since the customer had to pay ?
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?
I don't know what you're asking.
can you pass me stripe link where this scenario listed.
"3d secure not ask in trial subscription"