2017 © Pedro Peláez
 

library linx-pay

Payment processing for the Linx payment platform

image

pickupman/linx-pay

Payment processing for the Linx payment platform

  • Sunday, March 12, 2017
  • by pickupman
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

LinxPAY

PHP client library to make API requests for LinxPAY system., (*1)

Installation

    composer require pickupman/linx-pay

Usage

This library will handle the OAuth2 flow for retrieving and maintaing an access token., (*2)

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

The Versions

12/03 2017

dev-master

9999999-dev

Payment processing for the Linx payment platform

  Sources   Download

MIT

The Requires

 

by Joe McFrederick

12/03 2017

1.0.0

1.0.0.0

Payment processing for the Linx payment platform

  Sources   Download

MIT

The Requires

 

by Joe McFrederick