#tamil-selvan_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/1270767778093072495
đ 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.
- tamil-selvan_api, 1 day ago, 14 messages
- tamil-selvan_api, 1 day ago, 12 messages
- tamil-selvan_api, 1 day ago, 18 messages
- tamil-selvan_api, 6 days ago, 17 messages
I have tried this
$transfer = Transfer::create([
'amount' => $transfer * 100, // Transfer amount in cents
'currency' => 'usd',
'source_transaction' => $chargeId,
'destination' => env('STRIPE_CONNECTED_ACCOUNTID_1'),
'transfer_group' => $paymentintentid,
'metadata' => [
'customer_id' => $user->id,
'customer_email' => $user->email,
'customer_name' => $shipping_address->firstname.' '.$shipping_address->lastname,
'customer_address_line1' => $shipping_address->addressline1,
'customer_address_line2' => $shipping_address->addressline2,
'customer_city' => $city->name,
'customer_state' => $state->name,
'customer_postal_code' => $shipping_address->pincode,
'customer_country' => $country->name,
],
]);
Hello, is this connected account using the express or standard dashboard?
It is Custom and Standard
I am transfering to two connected account once checkout session completed
Hi, stepping in here. Are you asking how you can surface the payment details to the connected account from the Transfers initiated?
Hi, I have integrated one of My connected account vendor using Standard Connected Account. There he is asking customer information, meta data. While doing transfer from API, I can see meta data in my transfer table, But when I open my vendor connected account, customer and meta data fields are empty. Is it possible to show there or any other way to show there? Can you help?
The metadata you set on the platform will not propagate automatically to other objects created such as the Transfer moving money to the connected account.
You would need to update the payment object from the Transfer to the Connected Account with the metadata using the Stripe Account Header.
Can you share me any documentation? I am unable to find it. Also how to get the payment id of the connected account payment and use it in the payment content update API
Sure, we talk about how metadata works with related objects here: https://support.stripe.com/questions/how-metadata-works-with-related-objects
To achieve updating the payment from the transfer, you'd look at the destination_payment property corresponding to the payment on the connected account (py_XXX) from the Transfer object. Then, you'd use the Stripe Account Header, https://docs.stripe.com/connect/authentication to update that charge object, https://docs.stripe.com/api/charges/update
All if these steps are not documented but this is how you would update that object
I highly recommend that you test this using your Test API key
Let me try using chatgpt
$updatedCharge = Charge::update($destinationPaymentId, [
'metadata' => [
'customer_id' => $user->id,
'customer_email' => $user->email,
'customer_name' => $shipping_address->firstname . ' ' . $shipping_address->lastname,
'customer_address_line1' => $shipping_address->addressline1,
'customer_address_line2' => $shipping_address->addressline2,
'customer_city' => $city->name,
'customer_state' => $state->name,
'customer_postal_code' => $shipping_address->pincode,
'customer_country' => $country->name,
],
]);
it is showing charge not found
Did you use the Stripe Account Header, https://docs.stripe.com/connect/authentication when making this request? Can you share the request id for this code please? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_5mbOilypaLfKic
$destinationPaymentId = $transfer->destination_payment;
$connectedAccountId = env('STRIPE_CONNECTED_ACCOUNTID_1');
$updatedPaymentIntent = PaymentIntent::update(
$destinationPaymentId,
[
'metadata' => [
'customer_id' => $user->id,
'customer_email' => $user->email,
'customer_name' => $shipping_address->firstname . ' ' . $shipping_address->lastname,
'customer_address_line1' => $shipping_address->addressline1,
'customer_address_line2' => $shipping_address->addressline2,
'customer_city' => $city->name,
'customer_state' => $state->name,
'customer_postal_code' => $shipping_address->pincode,
'customer_country' => $country->name,
],
],
['stripe_account' => $connectedAccountId] // Set the connected account header
);
This is the id req_5mbOilypaLfKic
Can you try using the Charges API, https://docs.stripe.com/api/charges/update?
Thank you great. You made my day. Thank you so much
Sure, happy to help!