@@ -5,31 +5,31 @@ |
||
| 5 | 5 | |
| 6 | 6 | class Endpoint |
| 7 | 7 | { |
| 8 | - const INIT_TRANSACTION = "/transaction/initialize"; |
|
| 9 | - const VERIFY_TRANSACTION = "/transaction/verify/"; |
|
| 10 | - const EXPORT_TRANSACTION = "/transaction/export"; |
|
| 11 | - const TRANSACTIONS = "/transaction"; |
|
| 12 | - const PLANS = "/plan"; |
|
| 13 | - const CREATE_PLAN = "/plan"; |
|
| 14 | - const FETCH_PLAN = "/plan/"; |
|
| 15 | - const UPDATE_PLAN = "/plan/"; |
|
| 16 | - const CUSTOMERS = "/customer"; |
|
| 17 | - const CREATE_CUSTOMER = "/customer"; |
|
| 18 | - const FETCH_CUSTOMER = "/customer/"; |
|
| 19 | - const UPDATE_CUSTOMER = "/customer/"; |
|
| 20 | - const GET_ALL_SUBSCRIPTIONS = "/subscription"; |
|
| 21 | - const CREATE_SUBSCRIPTION = "/subscription"; |
|
| 22 | - const GET_CUSTOMER_SUBSCRIPTION = "/subscription?customer="; |
|
| 23 | - const GET_PLAN_SUBSCRIPTION = "/subscription?plan="; |
|
| 24 | - const ENABLE_SUBSCRIPTION = "/subscription/enable"; |
|
| 25 | - const DISABLE_SUBSCRIPTION = "/subscription/disable"; |
|
| 26 | - const FETCH_SUBSCRIPTION = "/subscription/"; |
|
| 27 | - const CREATE_PAGE = "/page"; |
|
| 28 | - const GET_ALL_PAGES = "/page"; |
|
| 29 | - const FETCH_PAGE = "/page/"; |
|
| 30 | - const UPDATE_PAGE = "/page/"; |
|
| 31 | - const CREATE_SUB_ACCOUNT = "/subaccount"; |
|
| 32 | - const FETCH_SUB_ACCOUNT = "/subaccount/"; |
|
| 33 | - const LIST_SUB_ACCOUNT = "/subaccount/?perPage="; |
|
| 34 | - const UPDATE_SUB_ACCOUNT = "/subaccount/?perPage="; |
|
| 8 | + const INIT_TRANSACTION = "/transaction/initialize"; |
|
| 9 | + const VERIFY_TRANSACTION = "/transaction/verify/"; |
|
| 10 | + const EXPORT_TRANSACTION = "/transaction/export"; |
|
| 11 | + const TRANSACTIONS = "/transaction"; |
|
| 12 | + const PLANS = "/plan"; |
|
| 13 | + const CREATE_PLAN = "/plan"; |
|
| 14 | + const FETCH_PLAN = "/plan/"; |
|
| 15 | + const UPDATE_PLAN = "/plan/"; |
|
| 16 | + const CUSTOMERS = "/customer"; |
|
| 17 | + const CREATE_CUSTOMER = "/customer"; |
|
| 18 | + const FETCH_CUSTOMER = "/customer/"; |
|
| 19 | + const UPDATE_CUSTOMER = "/customer/"; |
|
| 20 | + const GET_ALL_SUBSCRIPTIONS = "/subscription"; |
|
| 21 | + const CREATE_SUBSCRIPTION = "/subscription"; |
|
| 22 | + const GET_CUSTOMER_SUBSCRIPTION = "/subscription?customer="; |
|
| 23 | + const GET_PLAN_SUBSCRIPTION = "/subscription?plan="; |
|
| 24 | + const ENABLE_SUBSCRIPTION = "/subscription/enable"; |
|
| 25 | + const DISABLE_SUBSCRIPTION = "/subscription/disable"; |
|
| 26 | + const FETCH_SUBSCRIPTION = "/subscription/"; |
|
| 27 | + const CREATE_PAGE = "/page"; |
|
| 28 | + const GET_ALL_PAGES = "/page"; |
|
| 29 | + const FETCH_PAGE = "/page/"; |
|
| 30 | + const UPDATE_PAGE = "/page/"; |
|
| 31 | + const CREATE_SUB_ACCOUNT = "/subaccount"; |
|
| 32 | + const FETCH_SUB_ACCOUNT = "/subaccount/"; |
|
| 33 | + const LIST_SUB_ACCOUNT = "/subaccount/?perPage="; |
|
| 34 | + const UPDATE_SUB_ACCOUNT = "/subaccount/?perPage="; |
|
| 35 | 35 | } |
| 36 | 36 | \ No newline at end of file |
@@ -30,8 +30,8 @@ discard block |
||
| 30 | 30 | protected $defer = false; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * Publishes all the config file this package needs to function |
|
| 34 | - */ |
|
| 33 | + * Publishes all the config file this package needs to function |
|
| 34 | + */ |
|
| 35 | 35 | public function boot() |
| 36 | 36 | { |
| 37 | 37 | $this->setupConfig(); |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * Register the application services. |
|
| 60 | - */ |
|
| 59 | + * Register the application services. |
|
| 60 | + */ |
|
| 61 | 61 | public function register() |
| 62 | 62 | { |
| 63 | 63 | $this->app->bind('laravel-paystack', function () { |
@@ -125,9 +125,9 @@ discard block |
||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | - * Get the services provided by the provider |
|
| 129 | - * @return array |
|
| 130 | - */ |
|
| 128 | + * Get the services provided by the provider |
|
| 129 | + * @return array |
|
| 130 | + */ |
|
| 131 | 131 | public function provides() |
| 132 | 132 | { |
| 133 | 133 | return [ |