immera / payment-backend
Immera payments helper for backend
Installs: 2 524
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 2
Requires
- illuminate/support: ~9|~8
- stripe/stripe-php: ^8.1
Requires (Dev)
- orchestra/testbench: ~7
- phpunit/phpunit: ~9.0
README
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
composer require immera/payment-backend
Publish the vendor
php artisan vendor:publish --provider=Immera\PaymentBackend\PaymentServiceProvider
Run migrations
php artisan migrate
Usage
This package is need to be used with frontend package. package-frontend
You need to except routes for cors
just add the following route in the cors.php
config
payment/*
to paths
... 'paths' => [..., 'payment/*'], ...
also make sure you have set your secret key in .env
file
PAYMENT_ROUTE_PREFIX=/api
PAYPAL_URL=https://api-m.sandbox.paypal.com/
PAYPAL_CLIENT_ID=
PAYPAL_CLIENT_SECRET=
STRIPE_SECRET=
STRIPE_WEBHOOK_SECRET=
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email hello@immera.io instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information...