#phantom_code
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/1230748526384906251
đ 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.
- phantom_invoice-payment-intent-description, 3 days ago, 9 messages
hello! which object are you trying to access transfer_data from? Can you share the object id?
the invoice object which is returned after finalizing the invoice
We're using stripe connect and the client wants to update the the description of the Transfers that are shown in Stripe express dashboard
it just shows Payment From {{service name}}
ok, can you share an example Invoice id?
in_1P6tt8Iq1xAQYVNLhQq7DcGb
so in this case, assuming you're accessing the Invoice object, you'll want to retrieve the charge object, expand [0] the transfer on the Charge object. On the Transfer object, you'll have the destination and destination_payment. Then you can update the destination charge on the connected account : https://docs.stripe.com/connect/customize-express-dashboard#destination-charges (remember to include the StripeAccount header for this specific request [1]).
[0] https://stripe.com/docs/api/expanding_objects
[1] https://docs.stripe.com/connect/authentication
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Learn how to add the right information to your API calls so you can make calls for your connected accounts.
can the same be done for checkout sessions?
can you share an example Checkout Session id?
sure, give me a moment
cs_test_a1zlXqw771HydwtNh9qCDdctZVxvX4DteHw4vIKhgFVN7QvObQOgmCjwXF
the core logic is the same, just that your starting point is from the Checkout Session's payment_intent instead. You will expand charge.transfer when retrieving the PaymentIntent. Keep in mind that a PaymentIntent will only be available on the Checkout Session if the customer attempts payment. i.e. you should check that the Checkout Session is complete or listen for the checkout.session.completed event
Hey, I am listening to checkout.session.completed webhook event but when I try to fetch PaymentIntent object in it using the id provided in webhook and expand the charge.transfer on it, I get an error saying This property can't be expanded
ah sorry, it should be latest_charge.transfer
Hey thanks, you can close this thread now. I've followed your steps and it is now working as expected.