mydevpro/upayments
最新稳定版本:v1.0.0
Composer 安装命令:
composer require mydevpro/upayments
包简介
UPayments integration for laravel 8
README 文档
README
laravel Upayments is a php package written by MY-Dev | Mohamed Youssef with laravel to handle Upayments functionality by making it's api more easy .
Features
- Authorize payment
- Check that payment is success or not
- Refund invoice
Installation Guide
Composer installation
composer require mydevpro/upayments
Configuration
Add this line on your config/app.php file providers list
Mydevpro\Upayments\PaymentServiceProvider::class,
To publish config run
php artisan vendor:publish --provider="Mydevpro\Upayments\PaymentServiceProvider" --tag="upayments-config"
and modify the config file with your own information. File is located in /config/upayments.php
Get Your Credentials From Upayments
- Go to Upayments
- You will get API KEY
- Go to your .env file and paste your credentials to be like this and be sure that you added this value only on APP_ENV=productoin
UPAYMENTS_APIKEY=apikey
UPayments will check your application environment if Your APP_ENV="local" in .env file will use "Sandbox mode" and on APP_ENV="production" will use "Live payment account"
You are now ready to use the package
At the controller
use Mydevpro\Upayments\Facades\Upayments;
Upayments::authorize(Amount, ISO 3-Letter Currency Code, Order ID);
Check payment status
Upayments::getPaymentStatus(order_id);
Refund payment
Upayments::refund(order_id , amount);
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-31