#dejmon_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1303314665475932213
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Be with you shortly ๐
Hmm, not sure! My understanding is with delayed PMs like BACS that the Charge should not be created until the payment settles
So the question is, why it is usually created?
Yeah we're looking into this
most of our BACS payments have on this stage charge object created and charge.pending event emited
Honestly, I'm not sure why there's a difference here. Are you reliant on a Charge existing? My recommendation would be too not rely on that
I always take a payment_method_details from the charge on that step, so that the client is notified about the payment has started using specific account number etc. (like last 4 digits etc.)
regardless it's a BACS or card payment
Got it. In that case I'd recommend writing in to our team (via https://support.stripe.com/contact/email?topic=api_integration) and we can take a deeper look at this with the BACS team to understand what is expected here
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ok, thanks for the advice. On the other hand, could you propose, from where can I get as well information about payment method details? I mean if it's any different way than from the charge?
As far I remember my initial thought was that If I use charge object, which contains payment_method_details, I won't need to do additional request for payment_method
But it looks like I will have to do that additional request to the Stripe everytime
becuase payment_method is attached to the even object only as a string, not an object
On the other hand, could you propose, from where can I get as well information about payment method details? I mean if it's any different way than from the charge?
payment_method_detailson the Charge is one option, or you can expand thepayment_methodfield on the Payment Intent
Ok, but there is no any other solution than send the request for retreiving the payment method? Isn't there any option like expand for the events?
Not with events I'm afraid no, you'd need to send the API request to expand the field
Ok, thanks for your help ๐
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
Can I have one more question?
yes sure
to retrieve paymen method details, can I always rely on the payment_method instead of latest_charge object (and from there payment_method_details)?
yes
so let's say payment failed because insuficcient funds, customer changed the payment method -> payment_method property will be always up to date in the payment_intent?
yes but if there's a payment error you'll be looking on the last_payment_error object instead no? https://docs.stripe.com/api/payment_intents/object#payment_intent_object-last_payment_error
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, I see. so once payment failed, payment_method is detached from the payment_intent and I should look into last_payment_error.payment_method