emperorjm/omnipay-first-atlantic-commerce
Composer 安装命令:
composer require emperorjm/omnipay-first-atlantic-commerce
包简介
First Atlantic Commerce driver for the Omnipay PHP payment processing library
README 文档
README
First Atlantic Commerce 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 First Atlantic Commerce support for Omnipay.
Installation
Omnipay is installed via Composer. To install, simply add it
to your composer.json file and update or install directly with composer require:
$ composer require emperorjm/omnipay-first-atlantic-commerce
This package strives to use Semantic Versioning as explained here.
Basic Usage
The following gateways are provided by this package:
- FirstAtlanticCommerce
This package implements the following methods:
authorize($options)– authorize an amount on the customer’s card.capture($options)– capture an amount you have previously authorized.purchase($options)– authorize and immediately capture an amount on the customer’s card.refund($options)– refund an already processed (settled) transaction.void($options)– reverse a previously authorized (unsettled) transaction.status($options)– check the status of a previous transaction.createCard($options)– create a stored card and return the reference token for future transactions.updateCard($options)– update a stored card's expiry or customer reference.
For general usage instructions, please see the Omnipay documentation. For information on the parameters needed for each request, see the class documentation for that request in the Message folder.
Basic Example
use Omnipay\Omnipay; // Setup payment gateway $gateway = Omnipay::create('FirstAtlanticCommerce'); $gateway->setMerchantId('123456789'); $gateway->setMerchantPassword('abc123'); // Example form data $formData = [ 'number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123' ]; // Send purchase request $response = $gateway->purchase([ 'amount' => '10.00', 'currency' => 'USD', 'transactionId' => '1234', 'card' => $formData ])->send(); // Process response if ( $response->isSuccessful() ) { // Payment was successful print_r($response); } else { // Payment failed echo $response->getMessage(); }
Support
If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.
If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.
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.
emperorjm/omnipay-first-atlantic-commerce 适用场景与选型建议
emperorjm/omnipay-first-atlantic-commerce 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 66 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 05 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「gateway」 「payment processing」 「omnipay」 「first atlantic commerce」 「fac」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 emperorjm/omnipay-first-atlantic-commerce 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 emperorjm/omnipay-first-atlantic-commerce 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 emperorjm/omnipay-first-atlantic-commerce 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
paywant api php client
Convert and operate with FIPS codes for states, counties, etc.
Image processing for PHP 5.3
PHP client for the PAYMENNT api
统计信息
- 总下载量: 66
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-02