PHPackages                             worldxgrowth/razcrypto-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. worldxgrowth/razcrypto-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

worldxgrowth/razcrypto-php-sdk
==============================

RazCrypto Payment Gateway PHP SDK

v2.0.0(1mo ago)02MITPHPPHP &gt;=7.3

Since Oct 7Pushed 1mo agoCompare

[ Source](https://github.com/WorldxGrowth/razcrypto-php-sdk)[ Packagist](https://packagist.org/packages/worldxgrowth/razcrypto-php-sdk)[ RSS](/packages/worldxgrowth-razcrypto-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

RazCrypto PHP SDK
=================

[](#razcrypto-php-sdk)

Accept cryptocurrency payments (USDT, USDC, DAI) on BSC and Ethereum chains with ease using the official RazCrypto PHP SDK.

Installation
------------

[](#installation)

Install the SDK via Composer:

```
composer require worldxgrowth/razcrypto-php-sdk
Quick Start
1. Initialize the API
Get your Gateway ID and Secret Key from the RazCrypto Dashboard.

PHP
require 'vendor/autoload.php';
use RazCrypto\Api;

$api = new Api("YOUR_GATEWAY_ID", "YOUR_SECRET_KEY");
2. Create a Payment
Create a payment to get a checkout URL. You can pass your website's Order ID in the custom_data parameter to link the payment.

PHP
try {
    $payment = $api->payment->create([
        "amount" => 10.50,
        "currency" => "USDT",
        "chain" => "BSC",
        "email" => "customer@example.com",
        "callback_url" => "[https://yourwebsite.com/webhook](https://yourwebsite.com/webhook)",
        "custom_data" => [
            "order_id" => "ORD-12345" // Link your website's order
        ]
    ]);

    // Redirect user to the checkout page OR use RazCrypto JS SDK to open in a modal
    $checkoutUrl = $payment['checkout_page'];
    header("Location: " . $checkoutUrl);
    exit;

} catch (\Exception $e) {
    echo "Error: " . $e->getMessage();
}
3. Verify Webhook & Complete Order
When a payment is successful, RazCrypto sends a webhook to your callback_url. Always verify the signature to ensure security.

PHP
use RazCrypto\Webhook;

$payload = file_get_contents('php://input');
$signature = $_SERVER['HTTP_X_RAZCRYPTO_SIGNATURE'] ?? '';
$secretKey = "YOUR_SECRET_KEY";

if (Webhook::verifySignature($payload, $signature, $secretKey)) {
    $data = json_decode($payload, true);

    if ($data['event'] === 'payment.completed') {
        $paymentId = $data['payment_id'];
        $orderId = $data['custom_data']['order_id'] ?? null;

        // TODO: Mark order as "Paid" in your database using $orderId
    }

    http_response_code(200);
    echo json_encode(["status" => "ok"]);
} else {
    http_response_code(401);
    echo json_encode(["error" => "Invalid Signature"]);
}
4. Fetch Payment Status Manually (Optional)
PHP
$status = $api->payment->fetch("payid_xxxxxxxxxx");
echo $status['status']; // Returns: pending, completed, or expired
Features
Non-Custodial: Funds go directly to your wallet.

Multi-Chain: Supports Binance Smart Chain (BSC) and Ethereum (ETH).

Secure: HMAC-SHA256 signature verification built-in.

Developer Friendly: Clean, Razorpay-like syntax.
```

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance98

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~169 days

Total

2

Last Release

44d ago

Major Versions

v1.0.0 → v2.0.02026-03-26

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v2.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/9405b1665db7bf9c7d5a9bb43eaf21fd5766e01696d31085885db62f95ae5b5f?d=identicon)[Worldxgrowth](/maintainers/Worldxgrowth)

---

Top Contributors

[![WorldxGrowth](https://avatars.githubusercontent.com/u/220895989?v=4)](https://github.com/WorldxGrowth "WorldxGrowth (4 commits)")

### Embed Badge

![Health badge](/badges/worldxgrowth-razcrypto-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/worldxgrowth-razcrypto-php-sdk/health.svg)](https://phpackages.com/packages/worldxgrowth-razcrypto-php-sdk)
```

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k8](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
