#lukun_error
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/1311949679117733930
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there, can you share the request id [0]? it'd look like req_xxx
[0] https://support.stripe.com/questions/finding-the-id-for-an-api-request
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.
The object i receive :
"id": "pi_XXXXX",
"object": "payment_intent",
"amount": 58590,
"amount_capturable": 0,
"amount_details": {
"tip": []
},
"amount_received": 58590,
"application": "ca_XXXXX",
"application_fee_amount": 700,
"capture_method": "automatic_async",
"client_secret": "pi_XXXXX_secret_XXXXX",
"confirmation_method": "automatic",
"created": 1732863304,
"currency": "eur",
"latest_charge": "ch_XXXXX",
"livemode": false,
"metadata": {
"booking_id": "20"
},
"payment_method": "pm_XXXXX",
"payment_method_options": {
"card": {
"request_three_d_secure": "automatic"
}
},
"payment_method_types": ["card"],
"status": "succeeded"
}```
i understand, can you share the request id?
you can always create the same request again
and then log the header : https://docs.stripe.com/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'll do it, thanks
req_1O5EA6TuKWqdsh
Its probably not showing in my logs because its a request on a connected account i guess
looking at the request, I'm not seeing any expand parameter being included
Thats weird
$eventData['object']['id'],
[
'expand' => ['latest_charge'],
'stripe_account' => 'acct_1QOPtSFkjQ2NaRnO'
]
);```
There is the parameter in my request
it's not showing up in the request though. It's a bit silly, but you're sure you saved your code and/or are looking at the right section? Maybe it's running the code to retrieve the details in another section
I think i can't miss it as i surrounded the request with 2 other "uniques" words
so i think you should be able to view this request from this link : https://dashboard.stripe.com/test/logs/req_1O5EA6TuKWqdsh
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
try and let me know. If you are able to access it, you can see there's no request body at all
yep, that's what i was trying to say
the code looks correct from a quick glance, so you might want to use the debugger to step through to see what's going on in your application
I will try to debug the Stripe lib to see which request is sent maybe
I finally successfully retrieved the stripe fees but with
$balanceTransactions = \Stripe\BalanceTransaction::all(
[
'type' => 'charge',
'source' => $paymentIntent->latest_charge,
'limit' => 1
],
['stripe_account' => 'acct_xxxxx']
);
I dont know why the first method wasnt working, maybe a problem in the stripe-php lib ? Because i tried everything and i can't find out where the probleme was