2017 © Pedro Peláez
 

library alipay

The Hht alipay package.

image

haiaouang/alipay

The Hht alipay package.

  • Monday, March 19, 2018
  • by haiaouang
  • Repository
  • 1 Watchers
  • 0 Stars
  • 33 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 18 % Grown

The README.md

alipay

Latest Stable Version License, (*1)

laravel支付包手机支付包, (*2)

安装

在你的终端运行以下命令, (*3)

composer require haiaouang/alipay, (*4)

或者在composer.json中添加, (*5)

"haiaouang/alipay": "1.0.*", (*6)

然后在你的终端运行以下命令, (*7)

composer update, (*8)

安装依赖包 haiaouang/support, (*9)

安装依赖包 haiaouang/payer, (*10)

在配置文件中添加 config/app.php, (*11)

    'providers' => [
        /**
         * 添加供应商
         */
        Hht\Payer\PayerServiceProvider::class,
        /**
         * 添加供应商
         */
        Hht\Support\ServiceProvider::class,
    ],

生成配置文件, (*12)

php artisan vendor:publish, (*13)

设置推送信息的参数 config/payers.php, (*14)

调用

修改config/payrs.php对应的配置, (*15)

<?php

return [

    'default' => 'alipay',

    'launchers' => [

        'alipay' => [
            'driver' => 'alipay',

            //合作身份者ID,签约账号,以2088开头由16位纯数字组成的字符串
            'partner' => '',

            //收款支付宝账号,以2088开头由16位纯数字组成的字符串,一般情况下收款账号就是签约账号
            'seller_id' => '',

            //商户的私钥,此处填写原始私钥去头去尾
            'private_key' => '',

            //支付宝的公钥
            'alipay_public_key' => '',

            //签名方式
            'sign_type' => 'RSA',

            //字符编码格式 目前支持 gbk 或 utf-8
            'input_charset' => 'utf-8',

            // 支付类型 ,无需修改
            'payment_type' => '1',

            // 产品类型,无需修改
            'service' => 'create_direct_pay_by_user',

            // 产品类型,无需修改
            'sdk_service' => 'mobile.securitypay.pay',

            // 支付超时时间
            'payment_time' => '30m',

        ],

    ],

];

依赖包

  • haiaouang/support : https://github.com/haiaouang/support
  • haiaouang/payer : https://github.com/haiaouang/payer

The Versions

19/03 2018

dev-master

9999999-dev https://github.com/haiaouang/alipay

The Hht alipay package.

  Sources   Download

MIT

The Requires

 

by haitaohuang

laravel pay

19/03 2018

1.0.3

1.0.3.0 https://github.com/haiaouang/alipay

The Hht alipay package.

  Sources   Download

MIT

The Requires

 

by haitaohuang

laravel pay

19/10 2017

1.0.2

1.0.2.0 https://github.com/haiaouang/alipay

The Hht alipay package.

  Sources   Download

MIT

The Requires

 

by haitaohuang

laravel pay