定制 pickupman/linx-pay 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pickupman/linx-pay

Composer 安装命令:

composer require pickupman/linx-pay

包简介

Payment processing for the Linx payment platform

README 文档

README

PHP client library to make API requests for LinxPAY system.

Installation

    composer require pickupman/linx-pay

Usage

This library will handle the OAuth2 flow for retrieving and maintaing an access token.

Intialize the the class

    $options = [
        'username' => 'Your Username',
        'password' => 'Your Password',
        'client_id' => 'Your API Client ID',
        'client_secret' => 'Your API Client Secret'
    ];

    $linx = new Pickupman\LinxPay($options);

Poll API call

    $poll = $linx->poll();
    var_dump($poll); // JSON response object {'success' : true }

Redemption API call

    $redemption = $linx->redemption([
        'linx_card_number' => '1234567890123456',
        'customer' => [
            'type'      => 'drivers_license',
            'name'      => 'John Smith',
            'id_number' => '1234', // drivers license number
            'state'     => 'Colorado' // drivers license State
        ],
        'product_type' => 'medicinal', // or recreational
        'store_location' => [
            'name' => 'Dispensary Name'
        ],
        'budtender' => [
            'name' => 'David Smith'
        ],
        'amount' => '200.00'
    ]);

    var_dump($redemption); // JSON response object

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固