wp-pay-gateways/omnikassa-2
Composer 安装命令:
composer require wp-pay-gateways/omnikassa-2
包简介
Rabo Smart Pay driver for the WordPress payment processing library.
README 文档
README
Pronamic Pay → Gateway → Rabo Smart Pay
Rabo Smart Pay driver for the WordPress payment processing library.
Table of contents
Status
WordPress Filters
pronamic_pay_omnikassa_2_request_args
add_filter( 'pronamic_pay_omnikassa_2_request_args', function( $args ) { $args['timeout'] = 3600; return $args; } );
pronamic_pay_omnikassa_2_merchant_return_url
add_filter( 'pronamic_pay_omnikassa_2_merchant_return_url', function( $url ) { $url = 'https://example.com/'; return $url; } );
Errors
| Request | Response Status Code | Code | Property | Message |
|---|---|---|---|---|
gatekeeper/refresh |
HTTP/1.1 401 Unauthorized | 5001 |
errorMessage |
Full authentication is required to access this resource |
order/server/api/order |
HTTP/1.1 403 Forbidden | 5001 |
consumerMessage |
The timestamp of the order announcement is invalid |
order/server/api/order |
HTTP/1.1 422 Unprocessable Entity | 5017 |
consumerMessage |
merchantOrderId is required |
order/server/api/order |
HTTP/1.1 422 Unprocessable Entity | 5017 |
consumerMessage |
merchantReturnURL is required |
order/server/api/order |
HTTP/1.1 422 Unprocessable Entity | 5017 |
consumerMessage |
currency required and should be one of: [AUD, CAD, CHF, DKK, EUR, GBP, JPY, NOK, SEK, USD] |
order/server/api/order |
HTTP/1.1 422 Unprocessable Entity | 5017 |
consumerMessage |
order amount must be greater than zero |
Simulate Requests
Refresh
curl --request GET https://betalen.rabobank.nl/omnikassa-api/gatekeeper/refresh \
--header "Authorization: Bearer __refresh_token__" \
--connect-timeout 5 \
--max-time 5 \
--user-agent "WordPress/4.9.8; https://example.com/" \
--verbose
Order
curl --request POST https://betalen.rabobank.nl/omnikassa-api-sandbox/order/server/api/order \
--header "Authorization: Bearer __refresh_token__" \
--connect-timeout 5 \
--max-time 5 \
--user-agent "WordPress/4.9.8; https://example.com/" \
--verbose
Notification
curl --request POST "https://example.com/wp-json/pronamic-pay/omnikassa-2/v1/webhook" \
--data-binary "@tests/json/notification.json" \
--user-agent "Java/1.8.0" \
--verbose
http POST https://example.com/wp-json/pronamic-pay/omnikassa-2/v1/webhook @tests/json/notification.json User-Agent:Java/1.8.0
Event
curl --request GET https://betalen.rabobank.nl/omnikassa-api-sandbox/order/server/api/events/results/merchant.order.status.changed \
--header "Authorization: Bearer __refresh_token__" \
--connect-timeout 5 \
--max-time 5 \
--user-agent "WordPress/4.9.8; https://example.com/" \
--verbose
curl --request GET https://betalen.rabobank.nl/omnikassa-api/order/server/api/events/results/merchant.order.status.changed \
--header "Authorization: Bearer __refresh_token__" \
--connect-timeout 5 \
--max-time 5 \
--user-agent "WordPress/4.9.8; https://example.com/" \
--verbose
Webhook
The Pronamic Pay OmniKassa 2.0 gateway can handle OmniKassa 2.0 notifications via the WordPress REST API.
Route: /wp-json/pronamic-pay/omnikassa-2/v1/webhook
The WordPress REST API OmniKassa 2.0 webhook can be tested with for example cURL, see for an example the Simulate Requests section.
In principle it is not possible to view this REST API endpoint via your web browser because it is a HTTP POST method only endpoint.
However, the WordPress REST API has the option to override the HTTP method via the _method parameter.
/wp-json/pronamic-pay/omnikassa-2/v1/webhook?_method=POST
License
wp-pay-gateways/omnikassa-2 适用场景与选型建议
wp-pay-gateways/omnikassa-2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30.72k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2017 年 10 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「pay」 「gateway」 「wp」 「smart」 「pronamic」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wp-pay-gateways/omnikassa-2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wp-pay-gateways/omnikassa-2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wp-pay-gateways/omnikassa-2 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
Библиотека для приема платежей через Альфабанк.
Some pre-defined rules for validation in Omnipay payment processing library.
BluePay gateway for the Omnipay payment processing library
支付宝接口扩展包
统计信息
- 总下载量: 30.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 19
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2017-10-30