apanicker/omnipay-psn 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

apanicker/omnipay-psn

Composer 安装命令:

composer require apanicker/omnipay-psn

包简介

PSN driver for the Omnipay payment processing library

README 文档

README

PSN driver for the Omnipay PHP payment processing library

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Dummy support for Omnipay.

Installation

Omnipay is installed via Composer. To install, simply require league/omnipay and apanicker/omnipay-psn with Composer:

composer require league/omnipay apanicker/omnipay-psn

Basic Usage

The following gateways are provided by this package:

  • PaymentServiceNetwork

In order to use this driver, you need to acquire the test accountId from PSN. You can set the testMode parameter to true if you want to run the driver in sandbox mode.

use Omnipay\Omnipay;

$gateway = Omnipay::create('PaymentServiceNetwork');

$gateway->initialize([
    'accountId' => 'RXXXXXX',
    'testMode' => false
]);

$formData = [
    'PayerName' => 'John Doe',
    'Address' => '2310  Elliot Avenue',
    'City' => 'Seattle',
    'State' => 'WA',
    'Zip' => '98115',
    'Email' => 'john@testing.com',
    'Payment_Amount' => '150.00',
    'Customer_Number' => 'C12112'
];

$response = $gateway->purchase($formData)->send();

if($response->isRedirect()) {
    $response->redirect();
}

For general usage instructions, please see the main Omnipay repository.

Support

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固