itinerisltd/wc-worldpay
Composer 安装命令:
composer require itinerisltd/wc-worldpay
包简介
WorldPay integration for WooCommerce.
README 文档
README
WorldPay integration for WooCommerce.
- Minimum Requirements
- Installation
- Setup
- Security Concerns about WorldPay HTML API
- Not Issue
- Features
- Not Supported / Not Implemented
- Best Practices
- Test Sandbox
- FAQ
- Coding
- Feedback
- Security
- Change log
- Credits
- License
Minimum Requirements
- PHP v7.2
- php-curl
- WordPress v4.9.8
- WooCommerce v3.4.5
Installation
$ composer require itinerisltd/wc-worldpay
Setup
Payment response(redirection) and Enhancing security with MD5 are mandatory.
On WorldPay's integration setup page:
- Enable Enable the Shopper Response
- Enter
<wpdisplay item=MC_callback>as Payment Response URL - Enable Payment Response enabled?
- Enter a 25-char random passphrase as Payment Response password
- Enter a 30-char random passphrase as MD5 secret for transactions
- Enter
instId:amount:currency:cartIdas SignatureFields
Then, fill in the same information on WP admin dashboard - WooCommerce > Settings > Payments > WordPay.
Note that WorldPay truncate long Payment Response password without notices!
Security Concerns about WorldPay HTML API
- Leaking MD5 secret for transactions
- Allow evil hackers to set up fake checkout pages, pretending to be the merchant
- WorldPay would accept these checkouts and charges the credit cards
- Leaking Payment Response password
- Allow evil hackers to pretending to be WorldPay
- WordPress would accept evil hackers' payment callbacks and changes order payment statuses
Not Issue
If Payment Response password(also known ascallbackPW) is incorrect, InvalidResponseException is throw to stop the world.
Credit card holders see white screen of death in such case.
Features
Not Supported / Not Implemented
- Shipping address
- Reject according to fraud check results
- Token payment
- Recurring payment
- Refund
- Void
Best Practices
HTTPS Everywhere
Although WorldPay accepts insecure HTTP sites, you should always use HTTPS to protect all communication.
Payment Status
Always double check payment status on worldpay.com.
Test Sandbox
Use this test credit card.
FAQ
Is support.worldpay.com secure?
No! support.worldpay.com does not support HTTPS.
This is unacceptable. Please encourage them to use HTTPS everywhere.
Will you add support for older PHP versions?
Never! This plugin will only works on actively supported PHP versions.
Don't use it on end of life or security fixes only PHP versions.
It looks awesome. Where can I find some more goodies like this?
- Articles on Itineris' blog
- More projects on Itineris' GitHub profile
- Follow @itineris_ltd and @TangRufus on Twitter
- Hire Itineris to build your next awesome site
This plugin isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?
Thanks! Glad you like it. It's important to make my boss know somebody is using this project. Instead of giving reviews on wp.org, consider:
- tweet something good with mentioning @itineris_ltd
- star this Github repo
- watch this Github repo
- write blog posts
- submit pull requests
- hire Itineris
Coding
Required Reading List
Read the followings before developing:
- WorldPay HTML API
- Omnipay: WorldPay
- thephpleague/omnipay#255 (comment)
Omnipay\WorldPay\Message\PurchaseRequest::getData()
Testing
$ composer test
$ composer check-style
Pull requests without tests will not be accepted!
Feedback
Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.
Security
If you discover any security related issues, please email hello@itineris.co.uk instead of using the issue tracker.
Change log
Please see CHANGELOG for more information on what has changed recently.
Credits
wc-worldpay is a Itineris Limited project created by Tang Rufus.
Full list of contributors can be found here.
License
wc-worldpay is licensed under the GPLv2 (or later) from the Free Software Foundation. Please see License File for more information.
itinerisltd/wc-worldpay 适用场景与选型建议
itinerisltd/wc-worldpay 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 814 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 09 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「wordpress」 「gateway」 「wp」 「worldpay」 「woocommerce」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 itinerisltd/wc-worldpay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 itinerisltd/wc-worldpay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 itinerisltd/wc-worldpay 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
Client library to send SMS using Comilio SMS Gateway API (https://www.comilio.it)
Must-use plugin integrating WordPress with the Upsun platform: environment awareness, router-cache friendliness, safe preview clones, deploy migrations, Site Health checks, and a wp upsun CLI command.
GovPayNet driver for the Omnipay payment processing library
BlueSnap driver for the Omnipay payment processing library
统计信息
- 总下载量: 814
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2018-09-18