dystcz / lunar-api-paypal-adapter
This is my package lunar-api-paypal-adapter
dev-main
2023-09-27 03:25 UTC
Requires
- php: ^8.2
- dystcz/lunar-api: ^0.6
- dystcz/lunar-paypal: ^0.6
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel-json-api/testing: ^2.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-12-05 00:39:41 UTC
README
TODO: Write description
Installation
You can install the package via composer:
composer require dystcz/lunar-api-paypal-adapter
You can publish the config file with:
php artisan vendor:publish --tag="lunar-api-paypal-adapter-config"
This is the contents of the published config file:
return [ 'driver' => 'paypal', 'type' => 'card', ];
Usage
// Create a payment intent App::make(PaypalPaymentAdapter::class)->createIntent($cart) // Handle a webhook (validate and authorize payment) App::make(PaypalPaymentAdapter::class)->handleWebhook($request)
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.