nztforum/lzt-invoices-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nztforum/lzt-invoices-php

Composer 安装命令:

composer require nztforum/lzt-invoices-php

包简介

PHP library for the Lolzteam Market Invoices

README 文档

README

PHP library for the Lolzteam Market Invoices

Requirements

PHP 8.3.0 and later.

Composer

You can install the bindings via Composer. Run the following command:

composer require nztforum/lzt-invoices-php

To use the bindings, use Composer's autoload:

require_once 'vendor/autoload.php';

Getting Started

Simple usage looks like (creating invoice):

try {
$api = new LZT\Api('YOUR_API_KEY');
$payUrl = $api->invoice([
	'currency' => 'rub',
	'amount' => 500,
	'payment_id' => random_int(100, 100000),
	'comment' => 'Test invoice',
	'url_success' => 'https://lolz.live/',
	'url_callback' => 'https://example.com/callback',
	'merchant_id' => 1,
	'lifetime' => 3600,
]);
} catch (\LZT\Exception $e) { // handle errors
	$errors = $e->getErrors();
}

// Get info by payment_id / invoice_id

$info = $api->info(paymentId: 10000);

// or

$info = $api->info(invoiceId: 500);

Webhook verify

$webhook = new LZT\Webhook('YOUR_MERCHANT_SECRET');
if ($webhook->verify()) {
	echo 'Webhook verified';
} else {
	echo 'Webhook verification failed';
}

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-08