# Installation The instructions below will help you to properly installand run the generated package to the lavalite project. ## Location Extract the package contents to the folder `/packages/bixo/payment/` ## Composer Add the below entries in the `composer.json`. ```json ... "repositories": { ... { "type": "path", "url": "packages/bixo/payment" } ... }, ... ``` Then run `composer require bixo/payment` ## Migration and seeds ``` php artisan migrate php artisan db:seed --class=Bixo\\Payment\\Seeders\\PaymentTableSeeder ``` ## Publishing * Configuration ``` php artisan vendor:publish --provider="Bixo\Payment\Providers\PaymentServiceProvider" --tag="config" ``` * Language ``` php artisan vendor:publish --provider="Bixo\Payment\Providers\PaymentServiceProvider" --tag="lang" ``` * Views ``` php artisan vendor:publish --provider="Bixo\Payment\Providers\PaymentServiceProvider" --tag="view" ``` ## URLs and APIs ### Web Urls * Admin ``` http://path-to-route-folder/admin/payment/{modulename} ``` * User ``` http://path-to-route-folder/user/payment/{modulename} ``` * Public ``` http://path-to-route-folder/payments ``` ### API endpoints These endpoints can be used with or without `/api/` And also the user can be varied depend on the type of users, eg user, client, admin etc. #### Resource * List ``` http://path-to-route-folder/api/user/payment/{modulename} METHOD: GET ``` * Create ``` http://path-to-route-folder/api/user/payment/{modulename} METHOD: POST ``` * Edit ``` http://path-to-route-folder/api/user/payment/{modulename}/{id} METHOD: PUT ``` * Delete ``` http://path-to-route-folder/api/user/payment/{modulename}/{id} METHOD: DELETE ``` #### Public * List ``` http://path-to-route-folder/api/payment/{modulename} METHOD: GET ``` * Single Item ``` http://path-to-route-folder/api/payment/{modulename}/{slug} METHOD: GET ``` #### Others * Report ``` http://path-to-route-folder/api/user/payment/{modulename}/report/{report} METHOD: GET ``` * Export/Import ``` http://path-to-route-folder/api/user/payment/{modulename}/exim/{exim} METHOD: POST ``` * Action ``` http://path-to-route-folder/api/user/payment/{modulename}/action/{id}/{action} METHOD: PATCH ``` * Actions ``` http://path-to-route-folder/api/user/payment/{modulename}/actions/{action} METHOD: PATCH ``` * Workflow ``` http://path-to-route-folder/api/user/payment/{modulename}/workflow/{id}/{transition} METHOD: PATCH ```