itcwc / laravel-lianlianpay
laravel连连支付扩展
dev-master
2023-09-20 09:23 UTC
Requires
- php: >=7.0
- ext-json: *
- ext-mbstring: *
- ext-openssl: *
- doctrine/cache: 1.10.*
- guzzlehttp/guzzle: >=7.0
- monolog/monolog: ^1.22 || ^2.0
- pimple/pimple: ^3.0
- symfony/http-foundation: ^4.0 || ^5.0
- symfony/psr-http-message-bridge: ^0.3 || ^1.0 || ^2.0
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)
接口参数具体值请查看相关文档地址,接口中涉及字段timestamp
、oid_partner
统一不要传,oid_partner
采用实例化config中配置参数,timestamp
采用服务器当前时间