feat: Implement VNPAY callback redirection to frontend and add UUID/public code to transactions.
This commit is contained in:
+3
-2
@@ -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']);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user