|
@@ -3,17 +3,18 @@
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
include_once(__DIR__ . '/index.php');
|
|
|
+Route::middleware(['web', 'auth'])->group(function () {
|
|
|
+ Route::get('payment/StripePay/{shopProduct}', function () {
|
|
|
+ StripePay(request());
|
|
|
+ })->name('payment.StripePay');
|
|
|
|
|
|
-Route::get('payment/StripePay/{shopProduct}', function () {
|
|
|
- StripePay(request());
|
|
|
-})->name('payment.StripePay');
|
|
|
-
|
|
|
-Route::get(
|
|
|
- 'payment/StripeSuccess',
|
|
|
- function () {
|
|
|
- StripeSuccess(request());
|
|
|
- }
|
|
|
-)->name('payment.StripeSuccess');
|
|
|
+ Route::get(
|
|
|
+ 'payment/StripeSuccess',
|
|
|
+ function () {
|
|
|
+ StripeSuccess(request());
|
|
|
+ }
|
|
|
+ )->name('payment.StripeSuccess');
|
|
|
+});
|
|
|
|
|
|
|
|
|
// Stripe WebhookRoute -> validation in Route Handler
|