Download the PHP package zhana0/umpay without Composer

On this page you can find all versions of the php package zhana0/umpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package umpay

umpay

联动支付类

test.php 为测试文件 notify.php 为测试异步通知文件

使用前需要在 src/Umpay.php 文件中修改mer_id的值为自己的商户号;将自己的私钥,与平台的证书放入src/api/cert目录中,并修改src/api/config.php文件中privatekey,platcert的值

composer require zhana0/umpay

use Ump\Umpay;

$ump = new Umpay();//构造方法默认参数为req_front_page_pay接口类型

$ump->set_pay_type();//此方法可以设置支付方式,默认参数$pay_type = 'B2CDEBITBANK', $payment_mode = '',此方法在构造方法中已执行一次

$ump->set_order_id(date('Ymd',time()).uniqid());//设置订单号

$ump->set_mer_date(time());//设置订单日期

$ump->set_order_amount(1);//设置订单金额

$ump->set_goods_inf('测试商品');//设置商品名称(扫码支付必填)

header("Location:" . $ump->get_request_url());//生成链接,并跳转


All versions of umpay with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zhana0/umpay contains the following files

Loading the files please wait ....