aactary/inter-galax

Class for integration with GalaxPay API

v0.1.3 2023-07-04 13:52 UTC

This package is auto-updated.

Last update: 2024-11-25 15:54:11 UTC


README

Classe de conexão com API do GalaxPay, faz requisições via GET, POST, PUT e DELETE

Instalação via Composer

composer require aactary/inter-galax

Uso

<?php
    require 'vendor/autoload.php';
    use Aactary\InterGalax\GalaxPay;
  
    $id = "5473";
    $hash = "83Mw5u8988Qj6fZqS4Z8K7LzOo1j28S706R0BeFe";
    $obGalax = new GalaxPay($id, $hash);
  
    //retorna um array de clientes - GET
    $clientes = $obGalax->sendRequest('/customers',[
         "startAt"   =>  0,
         "status"    =>  "active",
         "limit"     =>  50
    ]);
  
    echo '<pre>';print_r($clientes);echo '</pre>';exit;
?>