TODO: Write description
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',
];
// Create a payment intent
App::make(PaypalPaymentAdapter::class)->createIntent($cart)
// Handle a webhook (validate and authorize payment)
App::make(PaypalPaymentAdapter::class)->handleWebhook($request)
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.