hestec/omnipay-sisow
Composer 安装命令:
composer require hestec/omnipay-sisow
包简介
Sisow driver for the Omnipay payment processing library
README 文档
README
Sisow gateway for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Sisow support for Omnipay.
Installation
Omnipay is installed via Composer. To install, simply add it
to your composer.json file:
{
"require": {
"fruitcakestudio/omnipay-sisow": "~2.0"
}
}
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Basic Usage
The following gateways are provided by this package:
- Sisow
For general usage instructions, please see the main Omnipay repository. See also the Sisow REST Documentation
Example
$gateway = \Omnipay\Omnipay::create('Sisow');
$gateway->initialize(array(
'shopId' => '',
'merchantId' => '0123456',
'merchantKey' => 'b36d8259346eaddb3c03236b37ad3a1d7a67cec6',
'testMode' => true,
));
// Start the purchase
if(!isset($_GET['trxid'])){
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$response = $gateway->purchase(array(
'amount' => "6.84",
'description' => "Testorder #1234",
'issuer' => 99, // Get the id from the issuers list, 99 = test issuer
//'paymentMethod' => 'overboeking', // For 'overboeking', extra parameters are required:
'card' => array(
'email' => 'barry@fruitcakestudio.nl',
'firstName' => 'Barry',
'lastName' => 'vd. Heuvel',
'company' => 'Fruitcake Studio',
),
'transactionId' => 1234,
'returnUrl' => $url,
'notifyUrl' => $url,
))->send();
if ($response->isRedirect()) {
// redirect to offsite payment gateway
$response->redirect();
} elseif ($response->isPending()) {
// Process started (for example, 'overboeking')
return "Pending, Reference: ". $response->getTransactionReference();
} else {
// payment failed: display message to customer
return "Error " .$response->getCode() . ': ' . $response->getMessage();
}
}else{
// Check the status
$response = $gateway->completePurchase()->send();
if($response->isSuccessful()){
$reference = $response->getTransactionReference(); // TODO; Check the reference/id with your database
return "Transaction '" . $response->getTransactionId() . "' succeeded!";
}else{
return "Error " .$response->getCode() . ': ' . $response->getMessage();
}
}
Note, transactionReference is only available in the PurchaseResponse when an issuer is set. Use the fetchIssuers response to see the available issuers, or use the Javascript script to fill the issuers
$response = Omnipay::fetchIssuers()->send();
if($response->isSuccessful()){
print_r($response->getIssuers());
}
The billing/shipping data are set with the card parameter, with an array or CreditCard object.
Other parameters that can be entered with 'overboeking' are:
including(true/false to include a link to pay with idealdays(number of days before a reminder is sent)
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.
hestec/omnipay-sisow 适用场景与选型建议
hestec/omnipay-sisow 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 32 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 06 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「omnipay」 「sisow」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hestec/omnipay-sisow 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hestec/omnipay-sisow 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hestec/omnipay-sisow 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Sisow gateway for the Omnipay payment processing library
Sisow API client library for PHP
Payyo Gateway for the Omnipay payment processing library
PHP client to integrate Sisow payment methods
Yandex.Kassa driver for Omnipay payment processing library
[DEPRECATED] Sisow - iDEAL Basic driver for the WordPress payment processing library.
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-06-30


