Skip to content

Commit

Permalink
feat: create routes for oneclick mall
Browse files Browse the repository at this point in the history
  • Loading branch information
victormendoza96 committed Aug 22, 2024
1 parent 22ee5d4 commit 15b372b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use App\Http\Controllers\WebpayPlusMallController;
use App\Http\Controllers\WebpayPlusDeferredController;
use App\Http\Controllers\WebpayPlusMallDeferredController;
use App\Http\Controllers\OneclickMallController;
use Illuminate\Support\Facades\Route;


Expand Down Expand Up @@ -33,10 +34,20 @@
Route::post('/refund', [WebpayPlusDeferredController::class, 'refund'])->name("refund");
Route::get('/status', [WebpayPlusDeferredController::class, 'status'])->name("status");
});

Route::prefix('webpay-mall-diferido')->name("webpay-mall-deferred.")->group(function () {
Route::get('/create', [WebpayPlusMallDeferredController::class, 'create'])->name("create");
Route::get('/commit', [WebpayPlusMallDeferredController::class, 'commit'])->name("commit");
Route::post('/capture', [WebpayPlusMallDeferredController::class, 'capture'])->name("capture");
Route::post('/refund', [WebpayPlusMallDeferredController::class, 'refund'])->name("refund");
Route::get('/status', [WebpayPlusMallDeferredController::class, 'status'])->name("status");
});

Route::prefix('oneclick-mall')->name("oneclick-mall.")->group(function () {
Route::get('/start', [OneclickMallController::class, 'startInscription'])->name("start");
Route::get('/finish', [OneclickMallController::class, 'finishInscription'])->name("finish");
Route::get('/authorize', [OneclickMallController::class, 'authorizeMall'])->name("authorize");
Route::get('/delete', [OneclickMallController::class, 'deleteInscription'])->name("delete");
Route::post('/refund', [OneclickMallController::class, 'refund'])->name("refund");
Route::get('/status', [OneclickMallController::class, 'status'])->name("status");
});

0 comments on commit 15b372b

Please sign in to comment.