pkzhilong/laravel-alipay

this is alipay which is base on alipay sdk

1.0 2017-07-12 09:24 UTC

This package is not auto-updated.

Last update: 2021-02-20 09:02:36 UTC


README

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中的参数值必须填写,