PHPackages                             amsify42/paypal-masspayment - 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. amsify42/paypal-masspayment

ActiveLibrary[Payment Processing](/categories/payments)

amsify42/paypal-masspayment
===========================

This is a laravel 5 package for simply executing mass payment of paypal

1.0(7y ago)216.7k2[1 issues](https://github.com/amsify42/paypal-masspayment/issues)MITPHPPHP &gt;=5.4.0

Since Nov 7Pushed 7y ago3 watchersCompare

[ Source](https://github.com/amsify42/paypal-masspayment)[ Packagist](https://packagist.org/packages/amsify42/paypal-masspayment)[ Docs](https://github.com/amsify42/paypal-masspayment.git)[ RSS](/packages/amsify42-paypal-masspayment/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/b59dfad384c79d8879babff2d2ee53402ecb032a3d076acc7139f53b17832abe/68747470733a2f2f706f7365722e707567782e6f72672f616d7369667934322f70617970616c2d6d6173737061796d656e742f762f737461626c65)](https://packagist.org/packages/amsify42/paypal-masspayment)[![Total Downloads](https://camo.githubusercontent.com/42c587619f4a81163edeffbe905ecb294eb65106495643d48719cbc2e3c4f128/68747470733a2f2f706f7365722e707567782e6f72672f616d7369667934322f70617970616c2d6d6173737061796d656e742f646f776e6c6f616473)](https://packagist.org/packages/amsify42/paypal-masspayment)[![Latest Unstable Version](https://camo.githubusercontent.com/81d41224694bf1c96bb74edaaabe30b3876aa274ab77014876279f98be980e66/68747470733a2f2f706f7365722e707567782e6f72672f616d7369667934322f70617970616c2d6d6173737061796d656e742f762f756e737461626c65)](https://packagist.org/packages/amsify42/paypal-masspayment)[![License](https://camo.githubusercontent.com/6e02afaf9a7b138ff76e005f419980765c1b9b5156faf005d9fecca27af26f91/68747470733a2f2f706f7365722e707567782e6f72672f616d7369667934322f70617970616c2d6d6173737061796d656e742f6c6963656e7365)](https://packagist.org/packages/amsify42/paypal-masspayment)

Paypal Mass Payment for Laravel 5
---------------------------------

[](#paypal-mass-payment-for-laravel-5)

### This is a laravel 5 package only for PayPal Mass Payment.

[](#this-is-a-laravel-5-package-only-for-paypal-mass-payment)

Installation:

```
composer require amsify42/paypal-masspayment
```

\[OR\]
Add the PaypalMassPayment package to your `composer.json` file

```
{
    "require": {
        "amsify42/paypal-masspayment": "dev-master"
    }
}
```

### Service Provider

[](#service-provider)

In your app config, add the `PaypalMassPaymentServiceProvider` to the providers array.

```
'providers' => [
    'Amsify42\PaypalMassPayment\PaypalMassPaymentServiceProvider',
    ];
```

### Facade (optional)

[](#facade-optional)

If you want to make use of the facade, add it to the aliases array in your app config.

```
'aliases' => [
    'PaypalMassPayment'	=> 'Amsify42\PaypalMassPayment\PaypalMassPaymentFacade',
    ];
```

### Publish file

[](#publish-file)

```
$ php artisan vendor:publish
```

Now file with name paypalmasspayment.php will be copied in directory Config/ and you can add your settings

#### For what to use in all the options available in this config file go to [Using the Mass Payments API](https://developer.paypal.com/docs/classic/mass-pay/integration-guide/MassPayUsingAPI/)

[](#for-what-to-use-in-all-the-options-available-in-this-config-file-go-to-using-the-mass-payments-api)

### Add this line at the top of any class to use PaypalMassPayment

[](#add-this-line-at-the-top-of-any-class-to-use-paypalmasspayment)

```
use       PaypalMassPayment;
```

### Array of payments looks something like this

[](#array-of-payments-looks-something-like-this)

#### For what parameters to use in payment array [MassPay API Using NVP](https://developer.paypal.com/docs/classic/mass-pay/integration-guide/MassPayUsingAPI/#id101DEJ0100A) [MassPay API Using SOAP](https://developer.paypal.com/docs/classic/mass-pay/integration-guide/MassPayUsingAPI/#id101DEE00EBL)

[](#for-what-parameters-to-use-in-payment-array-masspay-api-using-nvp-masspay-api-using-soap)

```
$receivers = array(
		  0 => array(
		    'ReceiverEmail' => "something@somewhere.com",
		    'Amount'        => "0.01",
		    'UniqueId'      => "id_001",
		    'Note'          => " Test Streammer 1"),
		  1 => array(
		    'ReceiverEmail' => "something@somewhere.com",
		    'Amount'        => "0.01",
		    'UniqueId'      => "id_002",
		    'Note'          => " Test Streammer 2"),
		);

$response = PaypalMassPayment::executeMassPay('Some Subject', $receivers);
```

### or you can directly call PaypalMassPayment without adding it at the top

[](#or-you-can-directly-call-paypalmasspayment-without-adding-it-at-the-top)

```
$response = \PaypalMassPayment::executeMassPay('Some Subject', $receivers);
```

#### For response codes and errors visit [MassPay Error Codes](https://developer.paypal.com/docs/classic/mass-pay/integration-guide/MassPayUsingAPI/#id101DEN0B0E9)

[](#for-response-codes-and-errors-visit-masspay-error-codes)

### Passing custom config at run time for particular object context

[](#passing-custom-config-at-run-time-for-particular-object-context)

```
$config = [
    'authentication'    => 'api_signature',
    'environment'       => 'sandbox',
    'operation_type'    => 'nvp',
    'api_vesion'        => '51.0',
    'receiver_type'     => 'email',
    'currency'          => 'USD',
    'sandbox' => [
		        'api_username'    => 'random-facilitator_api1.gmail.com',
		        'api_password'    => 'FKJHS786JH3454',
		        'api_certificate' => '',
		        'api_signature'   => 'sdfrfsf3rds3435432545df3124dg34tDFG#$sG23rfSD3',
	   ],
    'live' => [
		       'api_username'    => '',
		       'api_password'    => '',
		       'api_certificate' => '',
		       'api_signature'   => '',
		],
];
$payment    = PaypalMassPayment::setConfig($config);
$response   = $payment->executeMassPay('Some Subject', $receivers);
```

### You can also pass just required keys to custom config

[](#you-can-also-pass-just-required-keys-to-custom-config)

```
$config = [
    'environment'       => 'live',
    'live' => [
		       'api_username'    => '',
		       'api_password'    => '',
		       'api_certificate' => '',
		       'api_signature'   => '',
		],
];
$payment    = PaypalMassPayment::setConfig($config);
$response   = $payment->executeMassPay('Some Subject', $receivers);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2796d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7560182?v=4)[Amsify42](/maintainers/amsify42)[@amsify42](https://github.com/amsify42)

---

Top Contributors

[![amsify42](https://avatars.githubusercontent.com/u/7560182?v=4)](https://github.com/amsify42 "amsify42 (26 commits)")

---

Tags

laravelpaymentpaypalmass paymentamsify42

### Embed Badge

![Health badge](/badges/amsify42-paypal-masspayment/health.svg)

```
[![Health](https://phpackages.com/badges/amsify42-paypal-masspayment/health.svg)](https://phpackages.com/packages/amsify42-paypal-masspayment)
```

###  Alternatives

[larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

24754.1k](/packages/larabook-gateway)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
