Official PHP SDK for the OrvexPay Payment Gateway.

Maintainers

Package info

github.com/OrvexPay/OrvexPay-Php-SDK

pkg:composer/orvexpay/sdk

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-03-04 00:52 UTC

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.