coinpay/php-integration 问题修复 & 功能扩展

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

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

coinpay/php-integration

最新稳定版本:v0.2.0

Composer 安装命令:

composer require coinpay/php-integration

包简介

php package for coin payment finance

README 文档

README

Safe, fast and instant payments; Anytime, anywhere with CoinPay

Installation

Install with composer:

composer require coinpay/php-integration

Usage

use Coinpay\Finance\CoinPayGateway;

try {
    $gateway = new CoinPayGateway("###COINPAY_API_KEY###");
    $response = $gateway->request(
        1,                                                              // The amount to be paid (in Dollar - $).
        'https://your-callback.url',                                    // The URL the user will be redirected to after payment.
        'ref123',                                                       // A unique reference ID for tracking the transaction.
        'payer@example.com',                                            // The identity of the payer (email or phone number).
        'Alimo',                                                        // Full name of the payer.
        'Test Payment',                                                 // Description of the payment (e.g. "Payment for order #123").
        '1234567890'                                                    // National identification code of the payer.
    );

    echo "Payment URL: " . $response->url . PHP_EOL;                    //Redirect user to payment gateway url
    echo "Transaction ID: " . $response->transactionId . PHP_EOL;       //Store this Id if you need
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . PHP_EOL;
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固