#niceone

1 messages · Page 1 of 1 (latest)

south forgeBOT
fiery lagoon
#

Not exactly, but you could probably try: 4000002760003184

#

The card always requires 3DS/auth so your customer can auth the initial payment as they'll be on-session but subsequent payments will fail as they'll be off-session and require auth

jade nebula
#

yes but I don't want 3d secure

#

or taking it from other side, I would like to now what exectly will be returned by Stripe in CardException for the card that's not valid

#

for 3d secure I know that it is: subscription_payment_intent_requires_action

#

but want to now for other cases

fiery lagoon
#

Then there's no one card to do that. You'd need to update the PM for the Subscription to a card that will fail after the initial payment

jade nebula
#

and which card I can use for that update?

fiery lagoon
#

There's a whole selection depending on what decline code you want: https://stripe.com/docs/testing#declined-payments

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

jade nebula
#

hm strange, I saw that you are returning subscription_payment_intent_requires_action but I don't see it in documentation

fiery lagoon
#

Returning where?

jade nebula
#

(not sure if it is returned as code or decline code)

#

you are returning it in CardException

#

I assume if there is CardException with :subscription_payment_intent_requires_action it means 3d secure authentication is needed, but not sure if it's right assumption?

fiery lagoon