<?php

use Illuminate\Support\Facades\Route;
use Modules\Payment\Http\Controllers\PaymentController;

Route::middleware('api')->prefix('api')->group(function () {
    Route::get('/checkout/payment-methods', [PaymentController::class, 'methods']);
    Route::post('/orders', [PaymentController::class, 'createOrder']);
    Route::get('/orders/{id}', [PaymentController::class, 'show']);
    Route::post('/orders/{id}/pay', [PaymentController::class, 'pay']);
});
