aactary/inter-galax

用于与GalaxPay API集成的类

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

This package is auto-updated.

Last update: 2024-09-25 15:29:32 UTC


README

与GalaxPay API连接的类,支持通过GET、POST、PUT和DELETE进行请求

通过Composer安装

composer require aactary/inter-galax

使用方法

<?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;
?>