定制 dominicwatts/sagepay-sdk-php 二次开发

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

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

dominicwatts/sagepay-sdk-php

Composer 安装命令:

composer create-project dominicwatts/sagepay-sdk-php

包简介

Sagepay wrapper and mordernization for SDK that supports server, form and direct payments

README 文档

README

phpcs

PHPCompatibility

PHPStan

Coverage Status

PHPUnit

Coveralls Status

Sage Pay PHP SDK for server, frame and direct integrations based on the official Sage Pay SDK. This is a composer compatible Sage Pay V3 PHP SDK. This is not an official Sage Pay package.

Install Instructions

composer require dominicwatts/sagepay-sdk-php

There is a composer archive at:

https://packagist.org/packages/dominicwatts/sagepay-sdk-php

Usage

require 'vendor/autoload.php';

use Xigen\Library\Sagepay\Payment;
use Xigen\Library\Sagepay\Classes\SagepayCustomer;
use Xigen\Library\Sagepay\Classes\SagepayCustomerDetails;

$config = [
    'vendorName' => 'testing'
];

$payment = new Payment(
    Payment::FORM,
    $config
);

$customer = new SagepayCustomer();
$customerDetails = new SagepayCustomerDetails();
$customerDetails->__set('firstname', 'Dave');
$customerDetails->setLastname('Smith');

$api = $payment->getApi();

$api->setCustomer($customer);
$api->setCustomerDetails($customerDetails);

var_dump($api);

$api->createRequest();

Update

Check ./tests for more comprehensive usage

Copyright

The original SDK belongs to SagePay and is their intellectual property. No license information is available but this is based on their publicly accessible source code.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-08-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固