Laravel Package for handling PayPal IPNs.
116
1
3
Package Data
Maintainer Username: grantjbutler
Package Create Date: 2016-03-23
Package Last Update: 2023-02-01
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:07:21
Package Statistics
Total Downloads: 116
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 1
Total Open Issues: 6

Pippin

Pippin is a library for handling PayPal IPNs in Laravel.

Usage

  1. Register PayPalIPNServiceProvider in app/config.php:
'providers' => [
    // Other providers.
    
    Pippin\PayPalIPNServerProvider::class,
],
  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();
  }
  
}