Download the PHP package ipasspay/sdk-cn without Composer

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

要使用时请先将src/IpasspayChannel/config目录下的 IpasspayConfig-dist.php复制为IpasspayConfig.php(cp IpasspayConfig-dist.php IpasspayConfig.php),并按实际场景配置正确的商户方参数 composer update ipasspay/sdk-cn时,不会改变IpasspayConfig.php文件

使用sdk将只需按照文档创建请求数据,根据需要按Demo里简单调用即可与ipasspay进行通信 使用sdk无需考虑时间戳(timestamp)参数和签名参数(signature),以及整个签名过程,验签也只需简单调用方法进行判断 使用sdk会将返回数据进行相关处理,可以通过相应方法直接获得数组形式的返回数据 使用sdk在发起请求前会进行参数预判断,减少无效的服务器网络开销,也便于对接开发时发现错误

建议有条件使用sdk包的商户尽量使用sdk包,本sdk包支持php5.6至php8.1

Demo中

directPay.php : 支付网关(直连) directPayWithoutCard.php : 无信用卡信息支付网关(比如数字货币支付网关) redirectPay.php : 支付网关(跳转) ipasspayNotify.php : 异步通知 ipasspayReturn.php : 同步通知

refund.php : 退款接口 cancelRefund.php : 取消退款接口 queryOrder.php : 订单查询接口 queryOrderList.php : 订单列表查询接口 uploadExpress.php : 物流上传接口

中文版api文档地址 : https://www.apihome.dev/ipasspay.biz/zh-cn/

如果要使用Airsecurecard服务,则可以参考Demo中Airsecurecard目录下样例 相应配置文件在src/AirsecurecardChannel/config目录下 中文版api文档地址 : https://www.apihome.dev/airsecurecard.com/zh-cn/

2022-12-26 新增 无信用卡信息支付网关(比如数字货币支付网关) 相关样例和改动 注意IpasspayConfig-dist.php中新增了without_card_pay_url


All versions of sdk-cn with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
ext-json Version *
ext-curl Version *
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 ipasspay/sdk-cn contains the following files

Loading the files please wait ....