Looking to hire Laravel developers? Try LaraJobs

laravel-alipay maintained by pkzhilong

Description
this is alipay which is base on alipay sdk
Author
Last update
2017/07/19 01:15 (dev-master)
License
Links
Downloads
16

Comments
comments powered by Disqus

laravel基于支付宝官方sdk整合到laravel的支付插件

Installation

执行如下命令

    composer require pkzhilong/laravel-alipay

注册服务提供者

      \Laravel\AliPay\AliPayServeProvider::class,

使用

1. 设置对应参数
     $return_url =  isset($this->ownType) ? 'team_alipay_success_redirect' : 'alipay_success_redirect'; //回调地址
     $notify_url =  isset($this->ownType) ? 'team_alipay_notify' : 'alipay_notify'; //异步通知地址
     $this->aliPay->bootstrapAliPay()->buildOrder([
         'total_amount' => $taskStage->cost, //交易额
         'subject' => '大宅世家资金托管', //交易描述
         'body'      => '大宅世家资金托管-1', //交易标题 
     ])->pagePay($reutrn_url, $notify_url);
  

注意: 以上buildOrder中的参数值必须填写,