#DianaSamkova-3DS

1 messages · Page 1 of 1 (latest)

hollow barn
#

Could be an issue with the particular 3DS card. Can you give a PaymentIntent Id? pi_xxx

silver canopy
hollow barn
#

i got two
webhook events
payment_ intent.requires action and
immediately invoice.payment_failed
It's expected since this PI requires a 3DS confirmation, and then the Invoice failed to automatically collect the fund. After that if the customer authorize, the PI and Invoice should be updated back to normal.

#

But for this particular PI I see the customer didn't authorize it

#

status is "cancelled"

silver canopy
hollow barn
#

You clicked on "authorize"? Maybe it's an account problem. Let me see

silver canopy
silver canopy
hollow barn
#

Could be, let me look at your account setting again.

silver canopy
hollow barn
#

Maybe it's your country and 3DS coverage. Can you write into Support and they would be able to check your account

#

I see your account setup as MT

silver canopy
#

can't it happen because of subscription? as i subscribe on regular payments and maybe 3ds can be only with one-time payments ?

hollow barn
#

No 3DS should be working with subscription too

#

We have an entire article about it

#

You tested it in 2 different accounts setup with different countries?

silver canopy
hollow barn
#

Then it's because the country of your account

#

Your account is registered in one specific country

silver canopy
#

Ok, i get it
so is it the only reason can be?

#

and what should i do? write to support to ask them to ckeck what?

silver canopy
hollow barn
#

I think PI is okay, but just your Stripe account is not

#

Yes please write into Support ask them to check 3DS capibility on your account

#

specifically asking about if it's about country

silver canopy
hollow barn
#

I think your code works fine. But anw you would want to have your account enabled first to be able to debug

silver canopy
hollow barn
#

Can you tell me the email you have used?

silver canopy
hollow barn
#

Okie, are you live-chatting with them?

silver canopy
#

yes

hollow barn
#

Okie... I am checking pi_3L0QOMFXfqRuJOyR22m8qHJe again and it seems like the authorized action is never recorded within Stripe

#

could you give an example screen record of the test card you were using? (3220)

hollow barn
#

Well that looks perfectly fine... What is the PaymentIntent Id for that screen recording?

silver canopy
#

pi_3L0hwjFXfqRuJOyR0kVHUnDu

hollow barn
#

Or are you using any 3rd plugin?

silver canopy
# hollow barn https://dashboard.stripe.com/test/logs/req_guvCFdmeAfNMJW is the request to crea...

Yes, I don't use session , we built the same way as https://github.com/stripe-samples/subscription-use-cases/tree/master/fixed-price-subscriptions
And we don't use any 3rd plugin

GitHub

Create subscriptions with fixed prices or usage based billing. - subscription-use-cases/fixed-price-subscriptions at master · stripe-samples/subscription-use-cases

silver canopy
#

maybe is it a problem?

hollow barn
#

👋 I am getting my colleague here who could have ideas about this.

gloomy verge
#

hi I'm taking over for @hollow barn could you please give me a moment to catch up?

silver canopy
gloomy verge
#

the video seems to be a checkout session, whereas the implementation you had was more related to a Subscription created manually and using its latest_invoice.payment_intent to pay it

#

am I right?

silver canopy
#

yes

gloomy verge
#

are you using webhooks to update that PaymentIntent to set the setup_future_usage to off_session?

silver canopy
#

yes

gloomy verge
#

there you go! here's the actual problem

#

first you don't have to setup_future_usage when you have a subscription

#

The PM will automatically be linked to the subscription once it gets confirmed

#

By updating the PI your manually changing its status from requires_action to requires_confirmation

#

which means you'll have to go back and confirm it so it gets to requires_action but that will trigger the webhook and you'll end up with an infinite loop

#

could you please try to remove that part of the code in your webhook and look whether this solves the issue?

silver canopy
gloomy verge
#

are you using the Customer Billing Portal?

silver canopy