Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jul 28, 2024
1 parent c0ae881 commit 7de1841
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/StripeDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,18 @@ public function handleCheckout(Request $request, Order $order): Response
*/
public function resolveOrderForCapture(Request $request): Order
{
$this->session = $this->client->checkout->sessions->retrieve(
$request->input('session_id')
);

return $this->resolveOrder($this->session->client_reference_id);
return $this->resolveOrder($request->input('order'));
}

/**
* {@inheritdoc}
*/
public function capture(Request $request, Order $order): Order
{
$this->session = $this->client->checkout->sessions->retrieve(
$request->input('session_id')
);

if (! $order->transactions()->where('bazar_transactions.key', $this->session->payment_intent)->exists()) {
$this->pay($order, null, ['key' => $this->session->payment_intent]);
}
Expand Down

0 comments on commit 7de1841

Please sign in to comment.