定制 cloudipsp/php-sdk-v2 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cloudipsp/php-sdk-v2

最新稳定版本:1.0.9.1

Composer 安装命令:

composer require cloudipsp/php-sdk-v2

包简介

Cloudipsp php sdk v2

README 文档

README

Payment service provider

A payment service provider (PSP) offers shops online services for accepting electronic payments by a variety of payment methods including credit card, bank-based payments such as direct debit, bank transfer, and real-time bank transfer based on online banking. Typically, they use a software as a service model and form a single payment gateway for their clients (merchants) to multiple payment methods. read more

Installation

This SDK uses composer.

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

For more information on how to use/install composer, please visit https://github.com/composer/composer

Composer installation

composer require cloudipsp/php-sdk-v2

Manual installation

git clone -b master https://github.com/cloudipsp/php-sdk-v2.git
<?php
require '/path-to-sdk/autoload.php';

Simple Start

require 'vendor/autoload.php';
\Cloudipsp\Configuration::setMerchantId(1396424);
\Cloudipsp\Configuration::setSecretKey('test');

$checkoutData = [
    'currency' => 'USD',
    'amount' => 1000
];
$data = \Cloudipsp\Checkout::url($data);
$url = $data->getUrl();
//$data->toCheckout() - redirect to checkout

Api

See php-docs

Examples

To check it you can use build-in php server

cd ~/php-sdk-v2
php -S localhost:8000

Checkout examples

Author

D.M.

统计信息

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

GitHub 信息

  • Stars: 19
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-12