定制 eventix/omnipay-first-atlantic-commerce 二次开发

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

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

eventix/omnipay-first-atlantic-commerce

Composer 安装命令:

composer require eventix/omnipay-first-atlantic-commerce

包简介

First Atlantic Commerce V3 driver for the Omnipay PHP payment processing library

README 文档

README

#omnipay-first-atlantic-commerce V3 Only used in combination with hostedPaymentSolution

$gateway = Omnipay::create('FAC');
$gateway->setMerchantId('xxxxx');
$gateway->setMerchantPassword('xxxxx');
$gateway->setAquirerId('xxxx');
$gateway->setTestMode(true);

$orderId = '5d096925-9795-47d0-aade-9d8ed584eb9f';

if(isset($_GET['ID'])){
    $options = array(
        'orderNumber' => $orderId,
    );

    $response = $gateway->fetchTransaction($options)->send();
    $error = $response->getMessage();
    $isPaid = $response->isPaid();
}


$options = array(
    'orderNumber' => $orderId,
    'amount' => '10.00',
    'currency' => 'USD',
    'returnUrl' => 'http://someurl.com/',
    'pageSet' => 'PageSet',
    'pageName' => 'PageName',
    'transactionCode' => '213'
);

$response = $gateway->purchase($options)->send();
$singeUseToken = $transactionId = $response->getTransactionReference();
header('Location: '. $response->getRedirectUrl());
exit;

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-27