forked from luanpm88/acelle-cashier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.php
47 lines (39 loc) · 2.48 KB
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::group(['middleware' => ['web'], 'namespace' => 'Acelle\Cashier\Controllers'], function () {
// direct
Route::match(['get', 'post'], '/cashier/offline/settings', 'OfflineController@settings');
Route::get('/cashier/offline/checkout/{invoice_uid}', 'OfflineController@checkout');
Route::post('/cashier/offline/{invoice_uid}/claim', 'OfflineController@claim');
// Stripe
Route::match(['get', 'post'], '/cashier/stripe/settings', 'StripeController@settings');
Route::match(['get', 'post'], '/cashier/stripe/checkout/{invoice_uid}', 'StripeController@checkout');
Route::match(['get', 'post'], '/cashier/stripe/auto-billing-update', 'StripeController@autoBillingDataUpdate');
// Braintree
Route::match(['get', 'post'], '/cashier/braintree/settings', 'BraintreeController@settings');
Route::match(['get', 'post'], '/cashier/braintree/checkout/{invoice_uid}', 'BraintreeController@checkout');
Route::match(['get', 'post'], '/cashier/braintree/auto-billing-update', 'BraintreeController@autoBillingDataUpdate');
// coinpayments
Route::match(['get', 'post'], '/cashier/coinpayments/settings', 'CoinpaymentsController@settings');
Route::match(['get', 'post'], '/cashier/coinpayments/{invoice_uid}', 'CoinpaymentsController@checkout');
// Paystack
Route::match(['get', 'post'], '/cashier/paystack/settings', 'PaystackController@settings');
Route::match(['get', 'post'], '/cashier/paystack/checkout/{invoice_uid}', 'PaystackController@checkout');
Route::match(['get', 'post'], '/cashier/paystack/auto-billing-update', 'PaystackController@autoBillingDataUpdate');
Route::post('/cashier/paystack/{invoice_uid}/charge', 'PaystackController@charge');
// Paypal
Route::match(['get', 'post'], '/cashier/paypal/settings', 'PaypalController@settings');
Route::match(['get', 'post'], '/cashier/paypal/{invoice_uid}', 'PaypalController@checkout');
// Razorpay
Route::match(['get', 'post'], '/cashier/razorpay/settings', 'RazorpayController@settings');
Route::match(['get', 'post'], '/cashier/razorpay/{invoice_uid}', 'RazorpayController@checkout');
});