#khadim-yaseen_api

1 messages ¡ Page 1 of 1 (latest)

lethal sapphireBOT
#

👋 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/1291652879135936594

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

oak loom
#

Can you share with me the ID of paymentIntent that was declined due to reasons rather than insufficient funds?

violet zealot
#

Yes Sure

#

pi_3Q5lgrED5xkfDv2c06oSwFRc

#

The above intent if from the payment request button flow

#

And this is from the payment element flow:
pi_3Q52bUED5xkfDv2c1bI77GPF

oak loom
#

https://dashboard.stripe.com/events/evt_3Q5lgrED5xkfDv2c0MDT10L0
https://dashboard.stripe.com/events/evt_3Q52bUED5xkfDv2c1ed0Hc2n
You can listen to charge.failed events, and check the charge's outcome.seller_message to understand more about the payment failure.

#

I don't think there's a problem with your integration. Card declines are normal and you just need to handle them properly.

violet zealot
#

I understand card decline can be normal.
But I happen to have more failure rates.
I need to confirm If this is totally from the bank side or the issue could be on my end that's why the card is getting declined for most of my subscriptions?

oak loom
#

Both these two declined are issuer_declined, meaning they were both declined by the issuer.

violet zealot
#

ON the documentation
Even though This error says issuer_declined
But its in the Invalid API section

#

And for this intent I have the same error:
pi_3Q52bUED5xkfDv2c1bI77GPF

#

Is it possible that the issue could be on my end that's why bank is declining the payments more times than usual?

oak loom
#

We don't have insights on what makes an issuer decide to decline a payment.

#

And sometimes the issuer could return a totally unrelated decline reason to mitigate card testing

violet zealot
#

Okay can you PLEASE have a look at flow of events if the flow of events is correct for these two customers?

Payment Element Flow:
cus_Qvnoyk6ErFmHCT

Payment Request Button:
cus_QwYPDgkXzrVPzn

oak loom
#

You should share with me the PaymentIntent ID

violet zealot
oak loom
#

So I checked the logs. You created a customer, and used a setupIntent collect a payment method. After that you create a subscription, followed by a subscription schedule to manage it.

#

I don't see problems with this flow

lethal sapphireBOT
violet zealot
long hawk
#

well you're using the "PaymentMethod attach" API which I'd generally never recommend doing, PaymentMethods should be attached by confirming an Intent instead.

violet zealot
#

Can this be the reason for higher payment failures I get?

long hawk
#

I don't know, possibly

violet zealot
long hawk
#

you're not required. When you have the ev.paymentMethod you can call stripe.confirmCardPayment on the PaymentIntent from the first Invoice of the Subscription.