<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\TripayController;
use App\Http\Controllers\Api\VoucherApiController;
use App\Http\Controllers\NicknameCheckController;
use App\Http\Controllers\Api\SearchController;



// Tripay Payment Routes
Route::prefix('payment')->group(function () {
    // Get payment channels (public)
    Route::get('/channels', [TripayController::class, 'getChannels']);
    
    // Create payment (no auth needed for guest checkout)
    Route::post('/create', [TripayController::class, 'createPayment']);
    
    // Tripay callback (from Tripay server)
    Route::post('/tripay/callback', [TripayController::class, 'callback']);

Route::post('/voucher/validate', [VoucherApiController::class, 'validate']);

Route::get('/search-games', [SearchController::class, 'searchGames']);


});