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 ShopProduct $shopProduct
*/
function PaypalPay(Request $request)
function PayPalPayment(Request $request)
{
/** @var User $user */
$user = Auth::user();

View file

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