#stephy

1 messages · Page 1 of 1 (latest)

gleaming nimbusBOT
karmic bluff
#

👋 how may I help?

finite tartan
#

ok so i integrate ach checkout section in mywebsite

$session = $stripe->checkout->sessions->create([
'mode' => 'payment',
'customer' => $customer->id,
'payment_method_types' => ['us_bank_account'],
'payment_method_options' => [
'us_bank_account' => [
'financial_connections' => ['permissions' => ['payment_method']],
],
],
'line_items' => [
[
'price_data' => [
'currency' => 'usd',
'unit_amount' => $amount * 100,
'product_data' => ['name' => 'Project'],
],
'quantity' => 1,
],
],
'success_url' => route('payment.success'),
'cancel_url' => route('payment.cancel'),
]);

    return redirect($session->url)->with('session_id', $session->id);

public function success(Request $request)
{
$sessionId = $request->session()->get('session_id');
}

like this..my issue when i pay sometimes i got invalide session id but my payment done and amount is deducted from my accout..so how can i handle this success url what kind of change that i habe to implement?

karmic bluff
#

you shouldn't rely on the success url to fulfill the order

finite tartan
#

i already read this webhooks ..but didint get any idea to implement this

karmic bluff
finite tartan
#

how get services.stripe.webhook_secret ?

karmic bluff
#

when you create a Webhook endpoint on your dashboard you get the secret there

gleaming nimbusBOT
finite tartan
#

what is Endpoint URL means?

oak delta
#

The url of a webhook endpoint you mean ? something like http://www.you_domain.com...

finite tartan
#

is i have to only give my website url?

oak delta
#

Could you share more details about your question please?

finite tartan
#

i want to handle my payment completion in ach payments so that y