承接 mydevpro/upayments 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-31