african_pg.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. use App\Http\Controllers\AfricanPaymentGatewayController;
  3. use App\Http\Controllers\Payment\FlutterwaveController;
  4. use App\Http\Controllers\Payment\MpesaController;
  5. use App\Http\Controllers\Payment\PayfastController;
  6. Route::controller(AfricanPaymentGatewayController::class)->group(function () {
  7. Route::get('/african/configuration', 'configuration')->name('african.configuration');
  8. Route::get('/african/credentials_index', 'credentials_index')->name('african_credentials.index');
  9. });
  10. //Mpesa
  11. Route::prefix('lnmo')->group(function () {
  12. Route::controller(MpesaController::class)->group(function () {
  13. Route::post('mpesa_pay', 'payment_complete')->name('mpesa.pay');
  14. Route::any('pay', 'mpesa_pay');
  15. Route::any('validate', 'validation');
  16. Route::any('confirm', 'confirmation');
  17. Route::any('results', 'results');
  18. Route::any('register', 'register');
  19. Route::any('timeout', 'timeout');
  20. Route::any('reconcile', 'reconcile');
  21. });
  22. });
  23. //Mpesa End
  24. // RaveController start
  25. Route::get('/rave/callback', [FlutterwaveController::class, 'callback'])->name('flutterwave.callback');
  26. // RaveController end
  27. //Payfast routes <starts>
  28. Route::controller(PayfastController::class)->group(function () {
  29. Route::any('/payfast/checkout/notify', 'checkout_notify')->name('payfast.checkout.notify');
  30. Route::any('/payfast/checkout/return', 'checkout_return')->name('payfast.checkout.return');
  31. Route::any('/payfast/checkout/cancel', 'checkout_cancel')->name('payfast.checkout.cancel');
  32. Route::any('/payfast/wallet/notify', 'wallet_notify')->name('payfast.wallet.notify');
  33. Route::any('/payfast/wallet/return', 'wallet_return')->name('payfast.wallet.return');
  34. Route::any('/payfast/wallet/cancel', 'wallet_cancel')->name('payfast.wallet.cancel');
  35. Route::any('/payfast/seller_package_payment/notify', 'seller_package_notify')->name('payfast.seller_package_payment.notify');
  36. Route::any('/payfast/seller_package_payment/return', 'seller_package_payment_return')->name('payfast.seller_package_payment.return');
  37. Route::any('/payfast/seller_package_payment/cancel', 'seller_package_payment_cancel')->name('payfast.seller_package_payment.cancel');
  38. Route::any('/payfast/customer_package_payment/notify', 'customer_package_notify')->name('payfast.customer_package_payment.notify');
  39. Route::any('/payfast/customer_package_payment/return', 'customer_package_return')->name('payfast.customer_package_payment.return');
  40. Route::any('/payfast/customer_package_payment/cancel', 'customer_package_cancel')->name('payfast.customer_package_payment.cancel');
  41. });
  42. //Payfast routes <ends>