pickupman / linx-pay
Payment processing for the Linx payment platform
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/pickupman/linx-pay
Requires
This package is not auto-updated.
Last update: 2025-09-28 09:45:23 UTC
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