Giter Site home page Giter Site logo

lian2pay's Introduction

连连支付

[toc]

如何使用

安装

$ composer require yoka/lianlianpay:dev-master 

使用:

$config = [
    'debug' => true, // 开启调试

    'oid_partner' => '2020042200284052', // 商户号
    'private_key' => file_get_contents('merchant_rsa_private_key.pem'), // 商户私钥 地址自行配置,绝对路径
    'public_key' => file_get_contents('merchant_rsa_public_key.pem'), // 商户公钥
    'll_public_key' => file_get_contents('llpay_public_key.pem'), // 连连支付公钥
    'production' => env('APP_ENV') == 'pro', // 是否生产环境 根据.env文件值判断
    // 日志
    'log' => [
        'level' => 'debug',
        'permission' => 0777,
        'file' => storage_path('logs/lianlianpay-' . date('Y-m-d') . '.log'), // 日志文件, 你可以自定义
    ],
];

$llp = new \Yoka\LianLianPay\LianLianPay($config);

$result = $llp->account->phoneVerifyCodeApply('s1', '13250840721'); // 绑定手机验证码申请

SDK

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

接口参数具体值请查看相关文档地址

接口中涉及字段timestampoid_partner统一不要传,oid_partner采用实例化config中配置参数,timestamp采用服务器当前时间


模块 方法 接口名 文档地址
account phoneVerifyCodeApply 绑定手机验证码申请 地址
account phoneVerifyCodeVerify 绑定手机验证码验证 地址
account personOpenAcctApply 个人用户开户申请 地址
account personOpenAcctVerify 个人用户开户验证 地址
account enterpriseOpenAcctApply 企业用户开户申请 地址
account enterpriseOpenAcctVerify 企业用户开户验证 地址
account upload 文件上传 地址
account uploadPhotos 上传照片 地址
account openAcctApply 用户开户申请(页面接入) 地址
account modifyPersonUserInfo 个人用户信息修改 地址
account modifyEnterpriseUserInfo 企业用户信息修改 地址
common getRandom 获取随机因子 地址
common verifyNotifySignature 回调通知数据验签 地址
common validationSms 交易二次短信验证 地址
payment create 支付统一创单 地址
payment gateway 网关类支付 地址
payment bankCard 银行卡快捷支付 地址
payment close 支付单关单 地址
payment query 支付结果查询 地址
secured confirm 担保交易确认 地址
secured query 担保交易信息查询 地址
refund apply 退款申请 地址
refund query 退款查询 地址
withdrawal apply 提现申请 地址
withdrawal confirm 提现确认 地址
withdrawal query 提现结果查询 地址
password reset 重置密码 地址
password find 找回密码申请 地址
password verify 找回密码验证 地址
password validate 支付密码校验 地址
accManage personBindCardApply 个人用户新增绑卡 地址
accManage personBindCardVerify 个人用户绑卡验证 地址
accManage unbindCardApply 个人用户解绑银行卡 地址
accManage enterpriseChangeCardApply 企业用户更换绑定账号申请 地址
accManage enterpriseChangeCardVerify 企业用户更换绑定账号验证 地址
accManage changeRegPhoneApply 修改绑定手机申请 地址
accManage changeRegPhoneVerify 修改绑定手机验证 地址
accManage changeLinkedPhoneApply 修改预留手机号申请 地址
accManage changeLinkedPhoneVerify 修改预留手机号验证 地址
accManage queryLinkedAcct 绑卡信息查询 地址
accManage queryUserInfo 用户信息查询 地址
accManage queryAcctInfo 账户信息查询 地址
accManage queryAcctSerial 资金流水列表查询 地址
accManage queryAcctSerialDetail 资金流水详情查询 地址
accManage queryTxn 交易流水结果查询 地址

lian2pay's People

Contributors

yuuhao avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.