This commit is contained in:
1day2die 2023-03-01 14:23:15 +01:00
parent d382ca1613
commit a16c76940f
2 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ use PayPalHttp\HttpException;
* @param Request $request * @param Request $request
* @param ShopProduct $shopProduct * @param ShopProduct $shopProduct
*/ */
function PaypalPay(Request $request) function PayPalPayment(Request $request)
{ {
/** @var User $user */ /** @var User $user */
$user = Auth::user(); $user = Auth::user();

View file

@ -5,9 +5,9 @@ use Illuminate\Support\Facades\Route;
include_once(__DIR__ . '/index.php'); include_once(__DIR__ . '/index.php');
Route::middleware(['web', 'auth'])->group(function () { Route::middleware(['web', 'auth'])->group(function () {
Route::get('payment/PayPalPay/{shopProduct}', function () { Route::get('payment/PayPalPayment/{shopProduct}', function () {
PaypalPay(request()); PayPalPayment(request());
})->name('payment.PayPalPay'); })->name('payment.PayPalPayment');
Route::get( Route::get(
'payment/PayPalSuccess', 'payment/PayPalSuccess',