承接 sq-dev/wallex-sdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sq-dev/wallex-sdk

最新稳定版本:v2.1.0

Composer 安装命令:

composer require sq-dev/wallex-sdk

包简介

Wallex.online integration sdk

README 文档

README

Project Overview

The Wallex SDK is a software development kit that provides a set of tools and utilities for integrating with the Wallex payment gateway.

Table of Contents

Getting Started

This section provides instructions on how to get started with the Wallex SDK.

Installation

composer require sq-dev/wallex-sdk

Features

This section describes the main features and capabilities of the Wallex SDK.

Feature 1: Create payment widget

use Wallex\Widget;

$widget = new Widget(1, 'secret_key');

$url = $widget->cretePayment(
  'client@mail.ru',
  'Xiaomi 9T',
  1000,
  1,
  'Hello thanks for order',
  'Xiaomi 9T',
  'USDT',
  'rub',
  'ru'
); // Returns payment url

More information about the parameters can be found in the documentation.

Feature 2: Verify payment

use Wallex\Webhook;

$payment = new Webhook($_POST);
if ($payment->isVerified('secret_key') && $payment->isSuccess()) {
    // Payment success logic
    //F.e:
    $client = $payment->getClient(); // Get client email
    User::where('email', $client)
        ->update(['balance' => $payment->getAmount()]);
}

Feature 3: Payouts

use Wallex\Payout;

$payout = new Payout($merchantId, $secretKey);

$payout->cryptoPay($address, $amount, $currency);

More information about the parameters can be found in the documentation.

Contributing

We welcome contributions from the developer community to improve the Wallex SDK. If you are interested in contributing to the Wallex SDK, please follow the steps below:

  1. Fork the repository on GitHub.
  2. Create a new branch for your feature or bug fix.
  3. Make the necessary changes in your branch.
  4. Write tests to ensure the changes are working as expected.
  5. Submit a pull request with your changes.

License

The Wallex SDK is licensed under the MIT License.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-21