#angelica

1 messages ยท Page 1 of 1 (latest)

zealous heartBOT
tight moss
#

๐Ÿ‘‹ happy to help

faint tiger
#

Hi ๐Ÿ™‚

tight moss
#

I don't really understand the use-case would you mind elaborating please?

faint tiger
#

Yes, of course.

#

One of our user is trying to add a payment method. The backend should create a payment method and attach it to the customer.

#

(no payment is involved here)

#

But we got an error from stripe: authentication_required

#

I think the error comes from the paymentMethods.attach method

crimson kiln
#

Hey! Taking over for my colleague. Let me catch up.

faint tiger
#

My backend collegue is confirming that the error is raised on:
paymentMethods.attach(paymentMethodId, { customer }) and one of the PM we're experiencing this is: pm_1MRAPlFxDRRbzUUjMGvgWLB

#

Hello?

#

@zealous heart

#

...

crimson kiln
faint tiger
#

req_AHNxxrCJ43BmGx

#

no, please, wait a moment, this is wrong

#

this one is correct: req_bCdSNDl179vbOq

crimson kiln
#

thanks for sharing, let me check

faint tiger
#

The process is working 99,9% of time

#

So I think this is a particular case of a particular card, right?

#

if I try ANY of the test card, I can't reproduce this error.

#

So I'm here asking a test card that reproduce this

#

4000 0025 0000 3155 is working

#

4000 0027 6000 3184 is working

crimson kiln
#

That occurs on a. particular card, not sure if there is a test card that reproduces the exact same behavior but You should use setup_intent in order to cover most of the edge cases (e.g. the error you are facing actually)

faint tiger
#

It exists a way to get support without having to refactor the whole app every time?

crimson kiln
#

What guide were you following for your existing integration ?

faint tiger
#

We have Stripe since YEARS. I don't know which guide my collegues have followed to develop our site. But, as I told: is working 99% of the time, I just need a TEST CARD, that must be provided by stripe, that will behave as the client card.

#

Can you just provide me the test card I need?

crimson kiln
#

All test cards are available here:
https://stripe.com/docs/testing
but not sure if there is a test card that reproduce the exact same behavior on test mode.
I understand your inquiry, but the recommended why is to authenticate the card suing SetupIntent and then use it for future charges

faint tiger
#

"not sure if there is a test card that reproduce the exact same behavior on test mode"
I'm sure there isn't, as I said, nbecause I've tried each card on that page.

#

So, which is the correct way to ask Stripe to add the MISSING test card?

#

To test the not documented case?

#

The answer from my CTO: "we can't rewrite all for a single case, moreover without a way to testing it"

#

Pretty reasonable.

crimson kiln
#

I understand your inquiry. For that edge case, there isn't a Test card actually available. To cover that use case, you can ask your customer to use another card, or you implement the card authentication using SetupIntent according the guide I shared above.

faint tiger
#

Creating the test card it's not even an option?

#

I feel it should be the first one of the list

crimson kiln
#

Even when you get the test card, in order to fix it you need to update your implementation in order to handle this case

faint tiger
#

Clear, but every dev in the world when starts to fix somthing, the first thing he have to do is to reproduce the problem.

#

Anyway, as usual the support isn't useful at all. Next time I will use these wasted hours to ask for a platform switch since we have to rewrite all in any case ๐Ÿ™‚

crimson kiln
#

Anyway, as usual the support isn't useful at all.
Sorry to hear that, but we try to do our best to help answering your questions and try to give solution on how to solve it. Don't hesitate to come back if you have any follow up questions.