#swe_api

1 messages ยท Page 1 of 1 (latest)

hard fernBOT
#

๐Ÿ‘‹ 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/1234954079785058326

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

worldly sail
#

Can you provide more details about the behavior you're seeing?

north hedge
#

I am not getting data array inside charges key in payment intent response.
{
"id": "xxx",
"object": "payment_intent",
"amount": 100,
"amount_capturable": 0,
"amount_details": {"tip": {}},
"amount_received": 0,
"amount_subtotal": 100,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": 123,
"cancellation_reason": null,
"capture_method": "manual",
"charges": {
"object": "list",
"data": [{
"id": "xxx",
"object": "charge",
"amount": 100,
"amount_captured": 0,
"amount_refunded": 100,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": null,
"billing_details": {
"address": {
...}

#

The above response is expected in payment intent cancellation API. But, intermittently, we are not getting data inside charges.

#

This issue is happening for the past 2 hours only.

worldly sail
#

Can you share the PaymentIntent IDs for the ones where you're not seeing charges>?

north hedge
#

Payment intent - pi_3PBLK5B9RHKhUbMK0PdieLpQ

worldly sail
#

Just to be on the same page, are you not seeing this data in a webhook event or when you make an API call?

If so, which event/API exactly?

north hedge
#

We are making /payment_intents/*/cancel call and expecting the response with charges.data[0]. But, charges.data doesn't have any data intermittently.

worldly sail
#

thanks, I'm checking with a colleague

#

It seems like a bug on our end, investigating..

north hedge
#

Will wait here for your response. May we know if this was because of some recent change at Stripe end?

#

Also, is the bug restricted only to sandbox or might affect live merchants as well?

worldly sail
#

It only affects test mode. We've rolled the change back, can you run a quick test and see if you're seeing charges now when you cancel a PaymentIntent?

north hedge
#

Yes, we are seeing success now. Thank you so much for the quick resolution.

worldly sail
#

NP! ๐Ÿ™‚ Happy to help