#deadend_api
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/1334817235075858543
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- deadend_api, 21 minutes ago, 5 messages
Backend code
$account_session = $this->stripeClient->accountSessions->create([
'account' => $connectedAccountId,
'components' => [
'payment_details' => [
'enabled' => true,
'features' => [
'refund_management' => false,
'dispute_management' => true,
'destination_on_behalf_of_charge_management' => true,
'capture_payments' => false,
],
],
],
]);
What is the payment ID that doesn't show in the embedded component?
Taking a look
But I want to create an embedded component to view the payment details for the connected account
THanks
What is the connectedAccountId value in this context?
acct_1PDgkL4EZVGMfX0x
Is thais the right ID? req_dl2e3Mw9JOjOYV. It 404s here
When I try opening it from the payments embedded component its working fine
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
OK, it's because I think you're using the wrong ID:
For destination charges and separate charges and transfers, the PaymentIntent doesn’t exist on the connected account. Instead, pass the associated charge ID that belongs to the connected account.
I am doing that on the frontend.
I am passing in pi_3QkkYTKksUCRFF3L1dRFR0Wn
Yeah but in this context the component is initialised on the connected account – that ID doesn't exist there (it's a destination charge, so it's on the platform)
There'll be a py_xxx object you need to use, hang on
oh okay.
The embedded component needs to be initialized with the connected account id right?
So in the backend I am initializing with the connected account.
Try with py_1QkkYW4EZVGMfX0xijIWhTiO
Yes, your code is right – it's just you're using the wrong ID in this context
Is this covered anywhere in the doc.
I am just lost between using pi_ and ch_
Yep, the funds flow is outlined here
Essentially the pi_xxx exists on the platform. As you're authenticated as the connected account, when you create the Account Session and init the component, it (correctly) 404s
In your setup, you need that py_xxx ID on the far right of that diagram for this component
Got it Thanks.
How you get that py_xxx ID programmatically is tricky – you will want to expand the transfer field on the pi_xxx and then you can use destination_payment in that hash: https://docs.stripe.com/api/transfers/object#transfer_object-destination_payment
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks alot. This helps.
of course np