#tamil-selvan_api

1 messages ¡ Page 1 of 1 (latest)

fickle havenBOT
#

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

summer spadeBOT
#

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.

dense verge
#

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,
],
]);

barren remnant
#

Hello, is this connected account using the express or standard dashboard?

dense verge
#

It is Custom and Standard

#

I am transfering to two connected account once checkout session completed

fickle havenBOT
manic coral
#

Hi, stepping in here. Are you asking how you can surface the payment details to the connected account from the Transfers initiated?

dense verge
#

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?

manic coral
#

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.

dense verge
#

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

manic coral
#

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

dense verge
#

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

manic coral
dense verge
#

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

manic coral
dense verge
#

Thank you great. You made my day. Thank you so much

manic coral
#

Sure, happy to help!