ehabtalaat/upayment
最新稳定版本:v1.0.0
Composer 安装命令:
composer require ehabtalaat/upayment
包简介
This is a payment gateway package for integrating UPayment
README 文档
README
A simple and lightweight package to integrate with the UPayment payment gateway in PHP (Laravel compatible).
✅ Created for learning and experimenting with package development — feel free to use and contribute.
🚀 Installation
composer require ehabtalaat/upayment
📖 Usage
use Ehabtalaat\Upayment\UPaymentGateway; use Ehabtalaat\Upayment\PaymentService; $config = [ "token" => "YOUR_TOKEN", "url" => "https://secure.upayment.io/payment-request", "currency" => "KWD", // or any supported currency ]; $gateway = new UPaymentGateway($config); $paymentService = new PaymentService($gateway); $payload = [ "name" => "Company XYZ", // Example company name "email" => "contact@companyxyz.com", // Example company email "mobile" => "50000000", // Example phone number "description" => "payment description", // Payment description "orderId" => "123456789", // Example order ID "amount" => 1000.00, // Example tender bond amount "returnUrl" => "https://yourdomain.com/payment/success", // Replace with your actual success URL "cancelUrl" => "https://yourdomain.com/payment/fail", // Replace with your actual fail URL "notificationUrl"=> "https://yourdomain.com/payment/notify", // Replace with your actual notification URL ]; $response = $paymentService->charge($payload);
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-14