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(3mo ago)02MITPHPPHP &gt;=7.3

Since Oct 7Pushed 3mo 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 today

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

31

—

LowBetter than 66% of packages

Maintenance81

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

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

100d 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://avatars.githubusercontent.com/u/220895989?v=4)[Worldxgrowth](/maintainers/Worldxgrowth)[@WorldxGrowth](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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