Download the PHP package dedemao/dcat-admin-payjs without Composer

On this page you can find all versions of the php package dedemao/dcat-admin-payjs. 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 dcat-admin-payjs

适用于dcat admin的payjs支付插件

前提

已安装好laravel及dcat-admin 2.*

安装文档:http://www.dcatadmin.com/docs/2.x/installation.html

安装

  1. 下载插件压缩包:https://github.com/dedemao/dcat-admin-payjs/archive/v1.0.3.zip

  2. 登录后台,在菜单中选择开发工具-->扩展,点击本地安装,在弹窗中选择上面下载的压缩包文件,点击提交按钮。

  3. 启用并设置插件

  4. 发布插件所需要的资源

    这一步将自动创建数据库表、生成路由、生成后台菜单等。

卸载

  1. 登录后台,在菜单中选择开发工具-->扩展,点击卸载按钮。
  2. 删除数据库表及后台菜单:

`

使用

如何支付

指定订单金额: http://yourname/pay/index?total_fee=0.01

指定订单号: http://yourname/pay/index?total_fee=0.01&out_trade_no=123456

指定订单标题: http://yourname/pay/index?total_fee=0.01&subject=测试

指定支付通道: http://yourname/pay/index?total_fee=0.01&pay_channel=weixin

指定使用JSAPI支付 http://yourname/pay/index?total_fee=0.01&pay_mode=jsapi

指定使用收银台支付 http://yourname/pay/index?total_fee=0.01&pay_mode=cashier

全都指定: http://yourname/pay/index?out_trade_no=123456&total_fee=0.01&subject=测试&pay_channel=weixin

异步通知

异步通知在pay/notify中

退款

退款请参考OrderService中的refund方法


All versions of dcat-admin-payjs with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
dcat/laravel-admin Version 2.*
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 dedemao/dcat-admin-payjs contains the following files

Loading the files please wait ....