orvexpay / sdk
Official PHP SDK for the OrvexPay Payment Gateway.
dev-main
2026-03-04 00:52 UTC
Requires
- php: ^7.4 || ^8.0
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2026-05-04 01:12:43 UTC
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.