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
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
其他信息
- 授权协议: Unknown
- 更新时间: 2020-08-03