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
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-20