Download the PHP package paopao7/alipay_webpay_with_laravel without Composer

On this page you can find all versions of the php package paopao7/alipay_webpay_with_laravel. 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 alipay_webpay_with_laravel

alipay_webpay_with_laravel

Laravel框架下集成支付宝电脑网站支付

说明

因本人最近学习了Lavavel框架,所以打算将支付宝的电脑网址支付功能进行集成。当然其他功能也可以集成,这边先以电脑网址支付为例。因之前编写的类不适合Laravel框架,特做以下修改

修改说明:

1.修改文件名"alipay.trade.page.pay-PHP-UTF-8" 为 "alipay_webpay_with_laravel"

2.删除readme.txt、idnex.php、notify_url.php、return_url.php

3.新增dataHandle.php文件,该文件为自定义文件用于调用支付宝下单及回调验签功能

4.修改aop/AopEncrypt.php、aop/AopClient.php、lotusphp_runtime/Cookie/Cookie.php三个文件下的“encrypt”、“decrypt”方法,分别替换为“alipayEncrypt”、“alipayDecrypt”。当然具体修改名称也可以自定义,只需要不给系统方法冲突就行。具体可参考该链接:http://www.itinfor.cn/archives/1762

5.修改aop\AopClient.php 文件下第 413 行 each方法,将其修改为“foreach ($para_temp as $key => $val) {”即可,具体可参考该链接:http://www.itinfor.cn/archives/1753

使用说明:

  1. 请先前配置根目录下config.php文件
  1. 使用composer进行安装,具体命令如下 composer require paopao7/alipay_webpay_with_laravel

  2. 在需要使用的文件顶部,先use一下,具体代码如下:use paopao7\alipay_webpay_with_laravel;

  3. 在需要调用获取支付参数的地方,先实例化 alipay_webpay_with_laravel 类 然后再调用 go_pay 方法,传入需要支付的金额和订单号 即可 具体代码如下: $alipay_webpay_with_laravel = new composer_test\alipay_webpay_with_laravel(); $result = $alipay_webpay_with_laravel->test(0.01,"20180913094216");

    return $result;

使用说明:

具体使用请参考该链接:

联系方式:(添加请注明技术咨询)

本人QQ:980569038 TP集成支付宝群:594955172


All versions of alipay_webpay_with_laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
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 paopao7/alipay_webpay_with_laravel contains the following files

Loading the files please wait ....