reelpay/sdk-php

1.0.1 2024-01-02 13:13 UTC

This package is auto-updated.

Last update: 2025-07-24 09:47:53 UTC


README

ReelPay SDK-PHP


ReelPay is committed to helping users quickly transition from Web 2.0 to Web 3.0, attract new users, and collect mainstream currency protocol gateways like BTC, ETH, BSC, SOL, and TRX. Moreover, it aims to help safeguard payment security and provide services such as contract receiving, notifications for address receiving, QR Code receiving, and social promotion.

Documentation is at https://docs.reelpay.com/.

Requirements

php: >=7.0.0 ext-json: * ext-openssl: * At least reelpay sdk-php version 1.0.0 is required for all components to work properly.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require reelpay/sdk-php:"~1.0.0"

or add

"reelpay/sdk-php": "~1.0.0"

to the require section of your composer.json.

Configuration

To use this extension, you have to configure the Connection class in your application configuration:

require_once('vendor/autoload.php');

use Reelpay\Reelpay;

$transaction = Reelpay::Transaction(
    'eqrbntqbi5uqvkpr',
    'XhAlbICW10VJnWGruPL0NSnvb6946JDQ'
);
$res = $transaction->EntrustPay(
    "out_trade_no", 
    "USD", 
    "1.2", 
    "Product name", 
    "https://reelpay.com/product.jpg"
);
var_dump($res);
// Todo: $payUrl = $res['data']['url'];

Where can I get Appid and Appkey?

Register and open a merchant account, go to application management after login background, and create and apply for an application to get the corresponding Appied and Appkey.