itcwc/laravel-lianlianpay

laravel连连支付扩展

dev-master 2023-09-20 09:23 UTC

This package is auto-updated.

Last update: 2024-09-20 11:33:29 UTC


README

原作者:yuuhao-原项目地址

如何使用

  • 安装

    $ composer require itcwc/laravel-lianlianpay:dev-master 
  • 在项目的config/app.php文件中的providers项中添加laravel使用

    Itcwc\LianLianPay\LLPayServiceProvider::class

    然后使用php artisan vendor:publish发布配置文件

  • 在方法中使用

    use Itcwc\LianLianPay\LianLianPay;
    
    ...
    
    $llp = new LianLianPay(config('lianlianpay'));  
    $result = $llp->payment->phoneVerifyCodeApply('s1', '13250840721');
        

SDK

【后续调用不再更新md,可进入项目文件夹查看或自增】

  • 调用示例:
$llp->account->phoneVerifyCodeApply($userId, $regPhone, $timestamp = null)

接口参数具体值请查看相关文档地址,接口中涉及字段timestampoid_partner统一不要传,oid_partner采用实例化config中配置参数,timestamp采用服务器当前时间