Feat add payment with gateway of montify

This commit is contained in:
mahmood
2026-07-24 16:50:21 +03:30
parent eacf5181a9
commit 572815a6a9
13 changed files with 1710 additions and 14 deletions
+12
View File
@@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Single\BankAccountController;
use \App\Http\Controllers\Customer\FundController;
use \App\Http\Controllers\pay\paypingController;
use App\Http\Controllers\pay\WalletPaymentController;
use \App\Http\Controllers\Single\SingleOrderController;
use App\Http\Controllers\Admin\ProductController as AdminProductController;
use App\Http\Controllers\Customer\ProductController;
@@ -27,6 +28,13 @@ Route::get('/TCharchee ', [paypingController::class, 'TCharchee']);
Route::post('/charge_account_verify', [paypingController::class, 'verifyTransation']);
Route::post('/charge_account_verify/{id}', [paypingController::class, 'verifyTransationByID']);
//----------wallet online payment — return/webhook per provider (public)
Route::get('/wallet/payment/return/{provider}', [WalletPaymentController::class, 'returnFromGateway']);
Route::post('/wallet/payment/webhook/{provider}', [WalletPaymentController::class, 'webhook']);
// سازگاری با URLهای قبلی Montify
Route::get('/wallet/external-payment/return', [WalletPaymentController::class, 'returnLegacy']);
Route::post('/wallet/external-payment/webhook', [WalletPaymentController::class, 'webhookLegacy']);
$isStore = app(ConfigService::class)->isStore();
Route::middleware('validation')->group(function () {
@@ -74,6 +82,10 @@ Route::middleware(['auth:customer', 'customer.active'])->group(function () use (
//-----gateway
Route::post('/charge_account ', [paypingController::class, 'startTransation']);
Route::get('/wallet/payment/options', [WalletPaymentController::class, 'options']);
Route::post('/wallet/payment/initiate', [WalletPaymentController::class, 'initiate']);
// سازگاری قدیمی
Route::post('/wallet/external-payment/initiate', [WalletPaymentController::class, 'initiate']);
//--------------Customer