immera/payment-backend

Immera payments helper for backend

1.0.5 2024-01-18 08:42 UTC

This package is auto-updated.

Last update: 2024-10-18 10:11:30 UTC


README

Latest Version on Packagist Total Downloads

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...