Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 14, 2024
1 parent c8ef0ae commit 922c3c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/bazar_stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

'secret' => env('STRIPE_SECRET'),

'success_url' => env('STRIPE_SUCCESS_URL', '/'),
'success_url' => env('STRIPE_SUCCESS_URL', '/?session_id={CHECKOUT_SESSION_ID}'),

'failure_url' => env('STRIPE_FAILURE_URL', '/'),
'failure_url' => env('STRIPE_FAILURE_URL', '/?session_id={CHECKOUT_SESSION_ID}'),

];
5 changes: 4 additions & 1 deletion src/StripeDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class StripeDriver extends Driver
*/
public readonly StripeClient $client;

/**
* The Stripe session instance.
*/
protected ?Session $session = null;

/**
Expand Down Expand Up @@ -52,7 +55,7 @@ public function getCaptureUrl(Order $order): string
{
return URL::route('bazar.gateway.capture', [
'driver' => $this->name,
]).'&session_id={CHECKOUT_SESSION_ID}';
]).'?session_id={CHECKOUT_SESSION_ID}';
}

/**
Expand Down

0 comments on commit 922c3c8

Please sign in to comment.