定制 brunodebarros/paypal-ipn-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

brunodebarros/paypal-ipn-laravel

最新稳定版本:1.1.1

Composer 安装命令:

composer require brunodebarros/paypal-ipn-laravel

包简介

A PayPal IPN client for Laravel.

README 文档

README

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=post

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.

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 25
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-31