grantjbutler/pippin

Laravel Package for handling PayPal IPNs.
117 2
Install
composer require grantjbutler/pippin
Latest Version:0.7
PHP:>=7.1
Laravel:5 · 6 · 7
License:MIT
Last Updated:Feb 1, 2023
Links: GitHub  ·  Packagist
Maintainer: grantjbutler

Pippin

Pippin is a library for handling PayPal IPNs in Laravel.

Usage

  1. Type-hint the request in your route handler to opt-in to IPN verification:
use Pippin\IPNRequest;

class MyController extends Controller {
  
  public function ipn(IPNRequest $request) {
    // Do something.
  }
  
}
  1. Access data about the IPN to validate the notification and process it for your application.
use Pippin\IPNRequest;

class MyController extends Controller {
  
  public function ipn(IPNRequest $request) {
    $ipn = $request->getIPN();
    // $ipn is an instance of Pippin\IPN.
    $payerEmail = $ipn->getPayerEmail();

    $transaction = $ipn->getTransactions()[0];
    $receiverEmail = $transaction->getReceiver();
  }
  
}

Related Packages

logicalgrape/paypal-ipn-laravel

A PayPal IPN client for Laravel.

16,187 34
brunodebarros/paypal-ipn-laravel

A PayPal IPN client for Laravel.

24 1
bodeezy/paypal-ipn-laravel

A PayPal IPN client for Laravel.

20 0
puntodev/paypal

PayPal API Client

7,583 0

Version History

Version Released PHP Laravel License
0.7 >=7.1 >=5.2 MIT
0.6 >=7.0 >=5.2 MIT
0.5 >=5.5.9 ^5.2 MIT
0.4.2 >=5.5.9 5.2.* MIT
0.4.1 >=5.5.9 5.2.* MIT