A PayPal IPN client for Laravel.

Overview

PayPal IPN for Laravel 4

This package allows for the painless creation of a PayPal IPN listener in the Laravel 4 framework.

Installation

PayPal IPN for Laravel can be found on Packagist. The recommended way is through composer.

Edit composer.json and add:

{
    "require": {
        "logicalgrape/paypal-ipn-laravel": "dev-master"
    }
}

And install dependencies:

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

Usage

Find the providers key in app/config/app.php and register the PayPal IPN Service Provider.

'providers' => array(
    // ...

    'LogicalGrape\PayPalIpnLaravel\PayPalIpnServiceProvider',
)

Find the aliases key in app/config/app.php and register the PayPal IPN Facade.

'aliases' => array(
    // ...

    'IPN' => 'LogicalGrape\PayPalIpnLaravel\Facades\IPN',
)

Migrations

Run the migrations to create the tables to hold IPN data

$ php artisan migrate --package logicalgrape/paypal-ipn-laravel

Configuration

Publish and edit the configuration file

$ php artisan config:publish logicalgrape/paypal-ipn-laravel

Example

Create the controller PayPal will POST to

$ php artisan controller:make IpnController --only=store

Open the newly created controller and add the following to the store action

$order = IPN::getOrder();

Edit app/routes.php and add:

Route::post('ipn', array('uses' => 'IpnController@store', 'as' => 'ipn'));

Resources

To help with IPN testing, PayPal provides the PayPal IPN Simulator.

Support

Please open an issue on GitHub

License

GeocoderLaravel is released under the MIT License. See the bundled LICENSE file for details.

Comments
  • Not working with Laravel 4.1.x

    Not working with Laravel 4.1.x

    I believe the following requirement is causing issues in Laravel 4.1.x:

    "illuminate/support": "4.0.*"

    Should it be changed to ~4.0

    I have not tested it though with the latest version of laravel.

    opened by greatwitenorth 2
  • Won't Install

    Won't Install

    Every time i try to install this using composer i get this. Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

    Problem 1 - Conclusion: remove laravel/framework v4.1.9 - Conclusion: don't install laravel/framework v4.1.9 - Conclusion: don't install laravel/framework v4.1.8 - Conclusion: don't install laravel/framework v4.1.7 - Conclusion: don't install laravel/framework v4.1.6 - Conclusion: don't install laravel/framework v4.1.5 - Conclusion: don't install laravel/framework v4.1.4 - Conclusion: don't install laravel/framework v4.1.3 - Installation request for logicalgrape/paypal-ipn-laravel dev-master -> satisfiable by logicalgrape/paypal-ipn-laravel[d ev-master]. - Conclusion: don't install laravel/framework v4.1.2 - Conclusion: don't install laravel/framework v4.1.1 - logicalgrape/paypal-ipn-laravel dev-master requires illuminate/support 4.0.* -> satisfiable by laravel/framework[v4.0.0 , v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9], illuminate/support[v4.0.0, v4.0.1, v4.0.1 0, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9]. - Can only install one of: laravel/framework[v4.1.0, v4.0.0]. - Can only install one of: laravel/framework[v4.1.0, v4.0.1]. - Can only install one of: laravel/framework[v4.1.0, v4.0.10]. - Can only install one of: laravel/framework[v4.1.0, v4.0.2]. - Can only install one of: laravel/framework[v4.1.0, v4.0.3]. - Can only install one of: laravel/framework[v4.1.0, v4.0.4]. - Can only install one of: laravel/framework[v4.1.0, v4.0.5]. - Can only install one of: laravel/framework[v4.1.0, v4.0.6]. - Can only install one of: laravel/framework[v4.1.0, v4.0.7]. - Can only install one of: laravel/framework[v4.1.0, v4.0.8]. - Can only install one of: laravel/framework[v4.1.0, v4.0.9]. - don't install illuminate/support v4.0.0|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.1|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.10|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.2|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.3|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.4|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.5|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.6|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.7|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.8|don't install laravel/framework v4.1.0 - don't install illuminate/support v4.0.9|don't install laravel/framework v4.1.0 - Installation request for laravel/framework 4.1.* -> satisfiable by laravel/framework[v4.1.0, v4.1.1, v4.1.2, v4.1.3, v4 .1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].

    opened by jnewing 2
  • migration:rollback & migration:refresh error

    migration:rollback & migration:refresh error

    Encounter PHP fatal error when I tried to perform a refresh/rollback after installing this package

    PHP Fatal error: Call to undefined method Illuminate\Database\Schema\MySqlBuilder::dropTable()

    I did some digging and found that dropTable is used for function down() in both CreateIpnOrderItemOptions & CreateIpnOrderItems class.

    Change dropTable to drop seems to have the problem fixed.

    thanks TK Chuah

    opened by tkchuah 1
  • Documentation

    Documentation

    I see this a new project and it looks promising, would it be possible to add some usage documentation?

    Importing the service provider is obviously straightforward but what about setting up the route for the ipn listener and getting notified of a received ipn?

    opened by sooqini 1
  • Setting the listener path in laravel

    Setting the listener path in laravel

    Hi

    How to set the listener path for the package.how the paypal will know which path it has to send response.

    For example in my application

    Controller is paymentcontroller-getipnresponse()

    i have to get the response inside the getipnresponse() function.

    Thanks in advance.... Vasanthan

    opened by vasanthanpv 0
  • Routing for IPN problem

    Routing for IPN problem

    I was trying to implement this package with larave 4.2 but I was getting "no handshake" from IPN sandbox.. Turns out the app is using the wrong SSL version,, should be set to 4

    opened by KSVQ 0
  • Publish migrations instead of just running them

    Publish migrations instead of just running them

    This is just a small annoyance with the readme instructions. If you don't publish the migrations, they won't be included in your application's migrations once you deploy to another server.

    php artisan migrate:publish logicalgrape/paypal-ipn-laravel
    php artisan migrate
    
    opened by drewhammond 0
  • PayPal as responded with INVALID

    PayPal as responded with INVALID

    I have already applied $ request-> forceSSLv3 (FALSE); but now I will throw this error, please help, urgent LogicalGrape \ PayPalIpnLaravel \ Exception \ InvalidIpnException PayPal as responded with INVALID

    Open: /home/extrasistemas/hydro.extrasistemas.com/vendor/logicalgrape/paypal-ipn-laravel/src/LogicalGrape/PayPalIpnLaravel/PayPalIpn.php

        $listener = new PayPalListener($request);
        $listener->setMode($this->getEnvironment());
    
        if ($listener->verifyIpn()) {
            return $this->store($request->getData());
        } else {
           throw new InvalidIpnException("PayPal as responded with INVALID");
        }
    }
    
    opened by linuxcarl 1
Owner
Logical Grape
Logical Grape
Laravel plugin for processing payments through PayPal. Can be used separately.

Laravel PayPal Documentation Usage Support Documentation The documentation for the package can be viewed by clicking the following link: https://srmkl

Raza Mehdi 844 Dec 28, 2022
Enable Standard PayPal for WooCommerce

Enable Standard PayPal for WooCommerce Contributors: vikcheema Donate link: https://paypal.me/SukhwantCheema Tags: woocommerce, payment gateway, paypa

Vik Cheema 2 Sep 9, 2021
StrongShop 是一款免费开源的跨境电商商城网站。基于 PHP Laravel6 框架开发,遵循 BSD-3-Clause 开源协议,免费商用。支持多语言,多货币,多种国际配送方式。PayPal 支付,国际信用卡支付。PC Web 端和移动端自适应。

跨境电商独立站的理想选择之一 StrongShop 简介 StrongShop 是一款免费开源的跨境电商商城网站。 StrongShop 是基于 PHP Laravel 框架开发的一款 Web 商城系统。 开发缘起是公司的一套跨境商城系统,原先公司使用的系统是基于 Ecshop 二次开发的,后来因为

OpenStrong 38 Dec 9, 2022
Paypal module for Thelia ecommerce solution

PayPal I) Install notes II) Configure your PayPal account III) Module options payments I) Installation Composer WARNING : A console access is required

null 8 Nov 22, 2022
Commerce GrappQL Package for Laravel

Sailwork Commerce Package for Laravel Document Please read document in here: Document Installation You can install the package via composer: composer

Sail Work 6 May 10, 2021
A robust session-based shopping bag for Laravel

Shopping Bag A robust session-based shopping bag for Laravel Go to documentation Documentation Documentation for Shopping Bag can be found in the docs

Laraware 30 Dec 13, 2021
Laravel FREE E-Commerce Software

Laravel FREE E-Commerce Software

Jeff Simons Decena 1.7k Dec 24, 2022
Antvel is an ecommerce project written in Laravel 5.* intended for building a friendly eStore either for startups or big companies.

Antvel is an ecommerce project written in Laravel 5.* intended for building a friendly eStore either for startups or big companies.

Antvel - Official 650 Dec 28, 2022
A free open source e-commerce platform for online merchants based on customised version of Laravel.

A free open source e-commerce platform for online merchants based on customised version of Laravel.

Ace Vinayak 58 Oct 19, 2022
A Free and Opensource Laravel eCommerce framework built for all to build and scale your business.

Bagisto is a hand tailored E-Commerce framework built on some of the hottest opensource technologies such as Laravel (a PHP framework) and Vue.js a progressive Javascript framework.

Bagisto 5k Jan 5, 2023
Integrated online shop based on Laravel LTS and the Aimeos e-commerce framework

⭐ Star us on GitHub — it motivates us a lot! ?? Aimeos Laravel ecommerce platform Aimeos is THE professional, full-featured and high performance e-com

Aimeos 3k Jan 5, 2023
Simple E-Comerce build use Laravel 5.6 require php version 5.6 or 7.4

Simple E-Comerce build use Laravel 5.6 require php version 5.6 or 7.4

Rangga Darmajati 3 Oct 7, 2021
Payu payment gateway for bagisto laravel ecommerce open source platform

Bagisto Payu Payment Gateway Payu is a popular payment gateway in india. This package provides a additional strong help for the user to use the payu p

Saju G 3 Dec 14, 2021
E-Commerce Laravel Project

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Mohamed Fadl 2 Dec 10, 2022
A e-commerce website with Laravel, Vue

A eCommerce using Laravel Version: 1.0 Release of the Laravel eCommerce. Technologies and libraries Laravel 7+, PHP 7+. JavaScript & VueJS Framework.

Jackson Zhang 1 Nov 4, 2021
AvoRed an Open Source Laravel Shopping Cart

AvoRed is commin up as a headless graphql version. AvoRed is a free open-source e-commerce platform written in PHP based on Laravel. Its an ingenuous

AvoRed Laravel E commerce 1.4k Dec 30, 2022
Laravel Shopping Cart Package

LaraCart - Laravel Shopping Cart Package (http://laracart.lukepolo.com) Features Coupons Session Based System Cross Device Support Multiple cart insta

Luke Policinski 516 Dec 10, 2022
An E-Commerce package for Laravel with Grafite CMS. Take control of your content and how you sell it! Products, subscriptions, shipping, downloading and more!

Grafite Commerce Grafite has archived this project and no longer supports or develops its code. We recommend using only as a source of ideas for your

Grafite Inc 45 Jun 8, 2021
AvoRed an Open Source Laravel Shopping Cart

AvoRed is commin up as a headless graphql version. AvoRed is a free open-source e-commerce platform written in PHP based on Laravel. Its an ingenuous

AvoRed Laravel E commerce 1.4k Dec 28, 2022