#lukun_error

1 messages ¡ Page 1 of 1 (latest)

hallow ploverBOT
#

👋 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.

zinc nacelle
woven sequoia
#

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"
}```
zinc nacelle
#

i understand, can you share the request id?

woven sequoia
#

Yes, i try to find it back

#

I dont find it in my logs

zinc nacelle
#

you can always create the same request again

woven sequoia
#

I'll do it, thanks

#

req_1O5EA6TuKWqdsh

#

Its probably not showing in my logs because its a request on a connected account i guess

zinc nacelle
#

looking at the request, I'm not seeing any expand parameter being included

woven sequoia
#

Thats weird

#
                        $eventData['object']['id'],
                        [
                            'expand' => ['latest_charge'],
                            'stripe_account' => 'acct_1QOPtSFkjQ2NaRnO'
                        ]
                    );```
#

There is the parameter in my request

zinc nacelle
#

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

woven sequoia
#

I think i can't miss it as i surrounded the request with 2 other "uniques" words

zinc nacelle
#

try and let me know. If you are able to access it, you can see there's no request body at all

woven sequoia
#

There is nothing

zinc nacelle
#

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

woven sequoia
#

I will try to debug the Stripe lib to see which request is sent maybe

woven sequoia
#

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