/lunar-api-paypal-adapter

Paypal payment adapter for Lunar API layer.

Primary LanguagePHPMIT LicenseMIT

Lunar API Paypal Adapter

Latest Version on Packagist GitHub Actions GitHub Code Style Action Status Total Downloads

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.