sellgate/php-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sellgate/php-sdk

最新稳定版本:v1.0.1

Composer 安装命令:

composer require sellgate/php-sdk

包简介

PHP SDK for Sellgate API

README 文档

README

This is the Sellgate PHP SDK. It is a simple SDK to use the Sellgate API.

Sellgate provides an API service that allows sellers and developers to easily integrate crypto payments into their applications or payment flows. Using our service has several benefits:

  • Low transaction fees, just 1%.
  • No authentication required for any usage: No API keys, no accounts.
  • Examples for quick implementation on our docs.
  • Support for bug fixes, extra features and integration assistance.

For further documentation, please refer to the Sellgate docs

Installation

composer require sellgate/php-sdk

Usage

<?php

require_once __DIR__ . "vendor/autoload.php";

use \Sellgate\Sellgate;

$sellgate = new Sellgate();

$checkoutData = [
    "title" => "Premium Subscription",
    "description" => "1-year access to all premium features",
    "currency" => "USD",
    "price" => "99.99",
    "crypto" => [
        [
            "network" => "ETH",
            "coin" => "ETH",
            "address" => "0xB1DA646D1cD015d205a99198e809724D5C78109d"
        ]
    ],
    "webhook" => "https://example.com/webhook",
    "return" => "https://example.com/thank-you"
];

$checkoutResult = $sellgate->createCheckout($checkoutData);
print_r($checkoutResult);

$addressData = [
    "crypto" => [
        "network" => "ETH",
        "coin" => "ETH",
        "address" => "0xB1DA646D1cD015d205a99198e809724D5C78109d"
    ],
    "webhook" => "https://example.com/webhook"
];

$addressResult = $sellgate->createAddress($addressData);
print_r($addressResult);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-04