Skip to content

Commit

Permalink
service.checkout.confirm.after
Browse files Browse the repository at this point in the history
  • Loading branch information
yushine committed Jan 2, 2025
1 parent 425d1d1 commit d6007ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions innopacks/common/src/Services/CheckoutService.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ public function confirm(): mixed
$this->checkout->delete();
CartService::getInstance($this->customerID)->getCartBuilder(['selected' => true])->delete();

$data = [
'checkout_data' => $checkoutData,
'order' => $order,
];
fire_hook_action('service.checkout.confirm.after', $data);

return $order;
} catch (Exception $e) {
DB::rollBack();
Expand Down

0 comments on commit d6007ac

Please sign in to comment.