承接 jimmlog/payssion 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jimmlog/payssion

最新稳定版本:1.3.1

Composer 安装命令:

composer require jimmlog/payssion

包简介

Payssion PHP library

README 文档

README

This library contains payssion php client with composer installation support. Forked and updated from originally library https://github.com/payssion/payssion-php

Latest Stable Version Total Downloads Latest Unstable Version License

Integration

How to integrate your website with payssion see https://payssion.com/en/docs/#integration

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist jimmlog/payssion

or add

"jimmlog/payssion": "@stable"

to the require section of your composer.json.

How To Use

Example of use:

$payssion = new PayssionClient('your api key', 'your secretkey');
//please uncomment the following if you use sandbox api_key
//$payssion = new PayssionClient('your api key', 'your secretkey', false);

$response = null;
try {
	$response = $payssion->create(array(
			'amount' => 1,
			'currency' => 'USD',
			'pm_id' => 'alipay_cn',
			'order_id' => 'your order id',      //your order id
			'return_url' => 'your return url'   //optional, the return url after payments (for both of paid and non-paid)
	));
} catch (Exception $e) {
	//handle exception
	echo "Exception: " . $e->getMessage();
}

if ($payssion->isSuccess()) {
	//handle success
} else {
	//handle failed
}

License

The MIT License (MIT). See LICENSE file.

统计信息

  • 总下载量: 5.8k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-28