定制 fena/php-payment-sdk 二次开发

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

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

fena/php-payment-sdk

最新稳定版本:v1.0.4

Composer 安装命令:

composer require fena/php-payment-sdk

包简介

SDK for working with Fena payment APIs.

README 文档

README

SDK for working with Fena payment APIs.

Documentation

Full documentation can be found at: https://docs.fena.co

Requirements

PHP 7.0.0 and later.

Installation

You can install the bindings via Composer. Run the following command:

composer require fena/php-payment-sdk

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Dependencies

Getting Started

Simple new payment looks like:

use Fena\PaymentSDK\Connection;
use Fena\PaymentSDK\Payment;

$connection = Connection::createConnection(
    $integrationId = '8afa74ae9fe8be53db50',
    $integrationSecret = '55d7d5ed-be22-4321-bb3f-aec8524d8be2'
);

$payment = Payment::createPayment(
    $connection,
    $amount = '10.00'
    $reference = 'AA-11', 
);
 
$payment->process();

Optional: Set User or Pre Selected Provider For New Payment

use Fena\PaymentSDK\Connection;
use Fena\PaymentSDK\Payment;
use Fena\PaymentSDK\Provider;
use Fena\PaymentSDK\User;

$connection = Connection::createConnection($terminalId, $terminalSecret);
$payment = Payment::createPayment(
    $connection,
    $amount = '10.00',
    $reference = 'AA-11', 
);

$user = User::createUser(
    $email = 'john.doe@test.com',
    $firstName = 'John',
    $lastName = 'Doe',
    $contactNumber = '07000845953'
);
$payment->setUser($user);

$provider = Provider::createProvider(
    $providerId = 'lloyds-bank',
    $sortCode = '123456',
    $accountNumber = '12345678'
);
$payment->setProvider($provider);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-21