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
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-27