#angelica
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Hi ๐
I don't really understand the use-case would you mind elaborating please?
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
Hey! Taking over for my colleague. Let me catch up.
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
...
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_AHNxxrCJ43BmGx
no, please, wait a moment, this is wrong
this one is correct: req_bCdSNDl179vbOq
thanks for sharing, let me check
The card isn't authenticated. If you need to save PaymentMehtod and attach it to your customer, I invite you to use SetupIntent by following this full guide:
https://stripe.com/docs/payments/save-and-reuse?platform=web
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
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)
It exists a way to get support without having to refactor the whole app every time?
What guide were you following for your existing integration ?
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?
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
"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.
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.
Creating the test card it's not even an option?
I feel it should be the first one of the list
Even when you get the test card, in order to fix it you need to update your implementation in order to handle this case
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 ๐
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.