Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 13, 2024
1 parent 3d16cb7 commit 4e778ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/MollieServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ public function boot()
}

// Fallback for default mollie url
Route::get('mollie/checkout/process', fn() => redirect(route('checkout.success', request()->query()), 308));
Route::get('mollie/checkout/process', fn () => redirect(route('checkout.success', request()->query()), 308));
// Fallback for legacy mollie url
Route::get('mollie-return/{orderHash}/{paymentToken}', fn ($orderHash, $paymentToken) => redirect(route('checkout.success', ['order_hash' => $orderHash, 'payment_token' => $paymentToken, ...request()->query()]), 308));

Eventy::addFilter('checkout.queries.order.data', function($attributes = []) {
Eventy::addFilter('checkout.queries.order.data', function ($attributes = []) {
$attributes[] = 'mollie_redirect_url';
$attributes[] = 'mollie_payment_token';

return $attributes;
});

Eventy::addFilter('checkout.checksuccess', function($success = true) {
Eventy::addFilter('checkout.checksuccess', function ($success = true) {
return $success && App::call(CheckSuccessfulOrder::class);
});
}
Expand Down

0 comments on commit 4e778ac

Please sign in to comment.