feat: Implement VNPAY callback redirection to frontend and add UUID/public code to transactions.

This commit is contained in:
pbao9
2026-02-19 17:01:49 +07:00
parent c7215ababc
commit c720e62bda
8 changed files with 118 additions and 74 deletions
+3 -2
View File
@@ -60,13 +60,14 @@ Route::prefix('v1')->as('api.')->group(function () {
Route::get('get-list', 'getTransactions')->name('getList');
Route::post('pay', 'handle')->name('pay');
Route::get('verify', 'verifyPayment')->name('verify');
Route::get('return', 'returnCallback')->name('return');
Route::get('{transaction:slug}', 'getDetailTransaction')->name('detail');
Route::get('detail-by-code', 'getByPublicCode')->name('detailByCode');
});
});
});
Route::get('v1/payment/vnpay/return', [TransactionController::class, 'returnCallback']);