This commit is contained in:
1day2die 2023-03-01 14:24:59 +01:00
parent a16c76940f
commit 869bd1e0ef
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 PayPalPayment(Request $request)
function PaypalPay(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/PayPalPayment/{shopProduct}', function () {
PayPalPayment(request());
})->name('payment.PayPalPayment');
Route::get('payment/PaypalPay/{shopProduct}', function () {
PaypalPay(request());
})->name('payment.PaypalPay');
Route::get(
'payment/PayPalSuccess',