PHPackages                             aamroni/paypal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. aamroni/paypal

ActiveLibrary[Payment Processing](/categories/payments)

aamroni/paypal
==============

PayPal API Payment in Laravel

1.0.0(2y ago)12MITPHPPHP &gt;=8.2

Since Apr 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/md-aamroni/PayPal)[ Packagist](https://packagist.org/packages/aamroni/paypal)[ RSS](/packages/aamroni-paypal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![Laravel Logo](./logo.svg)](https://qubenext.com)

### Install

[](#install)

```
composer require aamroni/paypal
```

### Config Example

[](#config-example)

Collect your public and secret keys, and configure as necessary in config/payment.php

```
'paypal' => [
    'client'        => env('PAYPAL_CLIENT_KEY'),
    'secret'        => env('PAYPAL_SECRET_KEY'),
    'redirect'      => [
        'success'   => sprintf('%s/paypal/success', env('APP_URL')),
        'cancel'    => sprintf('%s/paypal/cancel', env('APP_URL')),
    ],
    'currency'      => 'USD',
    'tax_rate'      => 0,
    'insurance'     => 0,
    'additional'    => 0,
    'shipping'      => [
        'discount'  => 0,
        'netPrice'  => 0
    ]
],
```

### Checkout Example

[](#checkout-example)

```
