#arielapaula_api

1 messages ¡ Page 1 of 1 (latest)

obtuse jackalBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1275817218084442142

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

willow bridge
sacred elm
#

I used that card, here's the payload:

willow bridge
#

are you calling the API directly or are you using Stripe Elements to submit the card details?

#

Ah I think for this specific card, the CVC is validated on confirmation. Not when the card is tokenized.

sacred elm
#

but I had the same issue on production today. The user added a wrong CVC

#

and the card was added

#

I'm using CardNumberElement, CardExpiryElement and CardCvcElement

obtuse jackalBOT
sacred elm
#

and then calling to createPaymentMethod

manic light
#

Hello, do you have the ID of that card from production?

sacred elm
#

I have the payment intent id: pi_3PqCZCJn1cC6kOJB0BRU5s3E

#

it failed only once the user tried to pay

#

the POST payment_methods didn't fail

manic light
#

Yep, this is what my colleague was talking about. The post payment methods endpoint doesn't reach out to the bank at all. We check that the card number could be valid but there isn't any conversation with the bank until the confirm.

#

And on the confirm the issuer declined the card. If the cardholder thinks they put in the right CVC, it would be best for them to reach out to their bank. Banks sometimes send decline codes that aren't literally true. For example (and I am not saying this is necessarily what happened here), sometimes a bank will send a CVC fail instead of a fraud related decline code so that a potential fraudster won't know that the bank is on to them.

sacred elm
#

Is there another endpoint to use to reach to the bank before confirmation?

manic light
#

If you are just trying to take a payment here, you are making the right API calls. Unfortunately there isn't a way to know if a bank approve or decline a specific charge until you ask them to. Is there something specific you are trying to do here?

sacred elm
#

I see. We are trying to save the payment method to our API. That's being made after the POST payment_methods

#

The other issue I saw is that the 2nd time the user tried to pay with that saved card he saw this issue:

#

Shouldn't the CVC error appear instead of that one?

manic light
#

That error message is expected behavior. PaymentMethod objects can only be used once if they aren't attached to a Customer. The PM will be attached to the customer once the payment intent succeeds, but if the first attempt to pay with that payment method gets a decline, the expected next steps would be to create a new PaymentMethod and try with that.

sacred elm
#

The payment intent succeeds only if stripe was able to collect the payment, right?

#

For example if the user doesn't have founds: the payment method will be attached to the user?

manic light
manic light