towoju5/stpmex-php
最新稳定版本:v0.1.0
Composer 安装命令:
composer require towoju5/stpmex-php
包简介
README 文档
README
Installation
composer require towoju5/stpmex-php
Usage
Client
Example:
<?php use Towoju5\STP\Client; $account = '646180123400000001'; $key = file_get_contents('key.pem'); $passphrase = '12345678'; $live = false; $client = new Client($account, $key, $passphrase, $live);
Account Service
Example:
<?php use Towoju5\STP\Client; $client = new Client(...); $client->account()->balance();
Catalogue Service
Example:
<?php use Towoju5\STP\Client; $client = new Client(...); $client->catalogue()->get();
Order Service
Example:
<?php use Towoju5\STP\Client; use Towoju5\STP\Catalogue\{ AccountTypeCatalogue, FinancialInstitutionCatalogue }; $client = new Client(...); $client->order()->create([ 'claveRastreo' => '123456789000000000000000003', 'conceptoPago' => 'Towoju5 Payment', 'emailBeneficiario' => 'john.doe@example.com', 'cuentaBeneficiario' => '012345678987654321', 'empresa' => 'KINEDU', 'institucionContraparte' => FinancialInstitutionCatalogue::BANORTE_IXE, 'institucionOperante' => FinancialInstitutionCatalogue::STP, 'iva' => 16.00, 'monto' => 1200.00, 'nombreBeneficiario' => 'John Doe', 'nombreOrdenante' => 'Towoju5 SAPI de CV', 'prioridad' => 1, 'referenciaNumerica' => '1234567', 'tipoCuentaBeneficiario' => AccountTypeCatalogue::CLABE, 'tipoPago' => PaymentTypeCatalogue::THIRD_PARTIES, 'medioEntrega' => 3, ]);
License
The STP Mexico PHP library is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-09