⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.139
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
taxi.dev-unit.com
/
routes
/
api
/
v1
/
View File Name :
payment.php
<?php /* |-------------------------------------------------------------------------- | User API Routes |-------------------------------------------------------------------------- | | These routes are prefixed with 'api/v1'. | These routes use the root namespace 'App\Http\Controllers\Api\V1'. | */ use App\Base\Constants\Auth\Role; /* * These routes are prefixed with 'api/v1/payment'. * These routes use the root namespace 'App\Http\Controllers\Api\V1\Payment'. * These routes use the middleware group 'auth'. */ Route::prefix('payment')->namespace('Payment')->middleware('auth')->group(function () { /** * These routes use the middleware group 'role'. * These routes are accessible only by a user with the 'user' role. */ Route::middleware(role_middleware(Role::mobileAppRoles()))->group(function () { // Card apis Route::post('card/add', 'PaymentController@addCard'); Route::get('card/list', 'PaymentController@listCards'); Route::post('card/make/default', 'PaymentController@makeDefaultCard'); Route::delete('card/delete/{card}', 'PaymentController@deleteCard'); // Braintree api token get list Route::get('client/token', 'PaymentController@getClientToken'); // Add money to wallet Route::prefix('wallet')->group(function () { Route::post('add/money', 'PaymentController@addMoneyToWallet'); Route::get('history', 'PaymentController@walletHistory'); Route::get('withdrawal-requests','PaymentController@withDrawalRequests'); Route::post('request-for-withdrawal','PaymentController@requestForWithdrawal'); Route::post('transfer-money-from-wallet', 'PaymentController@transferMoneyFromWallet'); }); /** * Braintree Payment Gateway * * */ Route::prefix('braintree')->namespace('Braintree')->group(function(){ Route::get('client/token', 'BraintreeController@getClientToken'); Route::post('add/money', 'BraintreeController@addMoneyToWallet'); }); /** * Stripe Payment Gateway * * */ Route::prefix('stripe')->namespace('Stripe')->group(function(){ Route::post('intent', 'StripeController@createStripeIntent'); Route::post('add/money', 'StripeController@addMoneyToWallet'); Route::post('make-payment-for-ride','StripeController@makePaymentForRide'); }); /** * Razerpay Payment Gateway * * */ Route::prefix('razerpay')->namespace('Razerpay')->group(function(){ Route::post('add-money', 'RazerpayController@addMoneyToWallet'); }); /** * PayMob Payment Gateway * * */ Route::prefix('paymob')->namespace('Paymob')->group(function(){ Route::post('add/money', 'PaymobController@addMoneyToWallet'); }); /** * Paystack Payment Gateway * * */ Route::prefix('paystack')->namespace('Paystack')->group(function(){ Route::post('initialize','PaystackController@initialize'); Route::post('add-money', 'PaystackController@addMoneyToWallet'); Route::post('make-recurring-charge', 'PaystackController@make_recurring_charges'); }); /** * Flutterwave Payment Gateway * * */ /** * Cashfree Payment Gateway * * */ Route::prefix('cashfree')->namespace('Cashfree')->group(function(){ Route::post('generate-cftoken','CashfreePaymentController@generateCftoken'); Route::any('add-money-to-wallet-webhooks', 'CashfreePaymentController@addMoneyToWalletwebHooks'); }); }); }); Route::prefix('payment')->namespace('Payment')->group(function () { Route::prefix('paystack')->namespace('Paystack')->group(function () { Route::any('web-hook', 'PaystackController@webHook'); }); Route::prefix('flutter-wave')->namespace('FlutterWave')->group(function(){ // Route::post('initialize','FlutterWaveController@initialize'); Route::post('add-money', 'FlutterWaveController@addMoneyToWallet'); Route::any('success', 'FlutterWaveController@success'); }); });