orvexpay/sdk
Composer 安装命令:
composer require orvexpay/sdk
包简介
Official PHP SDK for the OrvexPay Payment Gateway.
README 文档
README
Official PHP SDK for the OrvexPay Payment Gateway.
Installation
Install via Composer:
composer require orvexpay/sdk
Usage
Initialize the Client
use OrvexPay\Sdk\OrvexClient; $client = new OrvexClient('your-api-key');
Create an Invoice
try { $invoice = $client->createInvoice([ 'priceAmount' => '100.00', 'priceCurrency' => 'USD', 'payCurrency' => 'USDT', 'successUrl' => 'https://your-site.com/success', 'cancelUrl' => 'https://your-site.com/cancel', 'orderId' => 'Order-123', 'orderDescription' => 'Test Payment' ]); echo "Invoice Created: " . $invoice['id']; } catch (\OrvexPay\Sdk\Exceptions\OrvexException $e) { echo $e->getMessage(); }
Get Invoice Details
$invoice = $client->getInvoice('invoice-id'); echo "Status: " . $invoice['status'];
Change Invoice Currency
$updatedInvoice = $client->updateInvoiceCurrency('invoice-id', 'BTC');
Features
- Simple and modern PHP implementation.
- PSR-4 autoloading compliant.
- Built-in exception handling.
- Guzzle powered for reliable HTTP communication.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-04