#stephy
1 messages · Page 1 of 1 (latest)
👋 how may I help?
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?
you shouldn't rely on the success url to fulfill the order
i already read this webhooks ..but didint get any idea to implement this
you can use this quickstart https://stripe.com/docs/webhooks/quickstart
how get services.stripe.webhook_secret ?
when you create a Webhook endpoint on your dashboard you get the secret there
what is Endpoint URL means?
The url of a webhook endpoint you mean ? something like http://www.you_domain.com...
is i have to only give my website url?
Could you share more details about your question please?
yes .. so if my website name is www.example.com then when i create a webhook my Endpoint URL is www.example.com right?
i want to handle my payment completion in ach payments so that y