#tamil-selvan_api

1 messages ¡ Page 1 of 1 (latest)

tender juncoBOT
#

👋 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/1270353675616780310

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

calm galleonBOT
#

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.

livid mist
#

Hi, let me help you with this.

turbid fog
#

Here is the request ID:
req_594fEubJ1mKnUk

#

What does it mean? Where I need to have that fund in my stripe to process those payments?

You have insufficient funds in your Stripe account. One likely reason you have insufficient funds is that your funds are automatically being paid out; try enabling manual payouts by going to https://dashboard.stripe.com/account/payouts.

livid mist
#

I see you're using transfer_group to specify the source transaction. It doesn't work exactly like this. transfer_group is just an arbitrary string, that also needs to be present on the source transaction, in your case, this Checkout Session: https://dashboard.stripe.com/logs/req_uoDYmnDxDOErtN

turbid fog
#

public function success(Request $request)
{
Stripe::setApiKey(env('STRIPE_SECRET_KEY'));
$sessuser = Auth::user();
$user = User::find($sessuser->id);
$userid = $sessuser->id;
$ChildId = session('child_id');
$sessionId = $request->get('session_id');
$certificateId = session('certificate_id');

    $session = StripeSession::retrieve($sessionId);

if ($transfer > 0) {
// Create the first transfer
$transfer = Transfer::create([
'amount' => $transfer * 100, // Transfer amount in cents
'currency' => 'usd',
'destination' => env('STRIPE_CONNECTED_ACCOUNTID_1'),
'transfer_group' => $session->id,
]);
}

        if ($transfer2 > 0) {
            $transfer2 = Transfer::create([
                'amount' => $transfer2 * 100, // Transfer amount in cents
                'currency' => 'usd',
                'destination' => env('STRIPE_CONNECTED_ACCOUNTID_2'), // Stripe connected account ID 2
                'transfer_group' => $session->id,
            ]);
        }

Can you help me to implement it here. So that it will really helpful for me

livid mist
#

Please refer to the documentation I shared above. It's essential that you understand the logic behind it yourself, since I can't write the code for you.