group(function () { /* |-------------------------------------------------------------------------- | API 7, 8, 9 - ユーザーインフォメーション履歴 |-------------------------------------------------------------------------- | | GET /api/user-information-history - 一覧取得 | GET /api/user-information-history/{id} - 単一取得 | POST /api/user-information-history - 新規追加 | PUT /api/user-information-history/{id} - 更新 | */ Route::get('user-information-history', [UserInformationHistoryController::class, 'index']); Route::get('user-information-history/{id}', [UserInformationHistoryController::class, 'show']) ->where('id', '[0-9]+'); Route::post('user-information-history', [UserInformationHistoryController::class, 'store']); Route::put('user-information-history/{id}', [UserInformationHistoryController::class, 'update']) ->where('id', '[0-9]+'); /* |-------------------------------------------------------------------------- | API 1, 2, 4, 5, 6 - 決済API(API Key認証あり) |-------------------------------------------------------------------------- | | POST /api/newwipe/credit/link - クレジット支払リンク生成 | POST /api/newwipe/credit/subscription/charge - 継続課金請求 | POST /api/newwipe/rem/link - REM支払案内リンク生成 | GET /api/newwipe/status - 決済ステータス取得 | PUT /api/newwipe/update - 決済情報更新 | POST /api/newwipe/refund - 返金 | */ Route::prefix('newwipe')->group(function () { Route::post('credit/link', [CreditPaymentController::class, 'createLink']); Route::post('credit/subscription/charge', [CreditPaymentController::class, 'chargeSubscription']); Route::post('rem/link', [RemPaymentController::class, 'createLink']); Route::get('status', [PaymentStatusController::class, 'show']); Route::match(['put', 'post'], 'update', [PaymentUpdateController::class, 'update']); Route::post('refund', [RefundController::class, 'refund']); }); }); /* |-------------------------------------------------------------------------- | API 3 - 決済結果通知(Callback) |-------------------------------------------------------------------------- | | POST /api/newwipe/callback - Wellnet入金通知受信 | | 認証: IP白名単のみ(API Key不要) | */ Route::middleware(['wellnet.ip'])->group(function () { Route::match(['get', 'post'], 'newwipe/callback', [PaymentCallbackController::class, 'receive']); });