Download the PHP package jitepay/jitepay-sdk-php without Composer

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

jitepay-sdk-php项目

概览

功能介绍

  1. 实现吉特支付jsapi下单功能
  2. 实现吉特支付退款功能
  3. 敏感信息加解密
  4. 回调通知的验签和解密
  5. 付款到银行卡功能

安装

推荐使用PHP包管理工具Composer安装SDK:

开始

私钥:$private_key 公钥:$public_key 商户API证书序列号:$serial_no AES key:$aes_key

文档

Jsapi下单

订单查询

退款订单

退款订单查询

转账

转账查询

敏感信息加/解密

为了保证通信过程中的敏感信息字段(如用户的真实姓名,银行卡号)

下面以提现到银行卡为例,演示如何进行敏感信息加解密:

签名

你可以使用AopClient::getSign()调起支付是所需的参数签名

回调通知验证及解密

回调通知受限于开发者/商户数所使用的WebServer有很大差异,这里只给开发指导步骤,以供开发实现.

  1. 从请求头部Header,拿到Pay-Signature、Pay-Nonce、Pay-Timestamp、Pay-Serial,商户侧Web解决方案可能有差异,请求头可能大小写不敏感,请根据自身应用来决定;
  2. 获取请求body体的JSON纯文本;
  3. 验证Pay-signature签名是否正确;需要用到验签密钥$public_key;
  4. 消息体$body解密,需要用到aesKey($api_key); 样例代码如下:

All versions of jitepay-sdk-php with dependencies

PHP Build Version
Package Version
Requires ext-openssl Version *
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 jitepay/jitepay-sdk-php contains the following files

Loading the files please wait ....