oxid-professional-services/paypalplus-module
最新稳定版本:v3.0.12
Composer 安装命令:
composer require oxid-professional-services/paypalplus-module
包简介
PayPal Plus payments module for OXID eShop
README 文档
README
PayPal Plus module for OXID eShop.
Installation
Use Composer to add the module to your project
composer require oxid-professional-services/paypalplus-module
- Activate PayPal Plus module in administration back end: under Extensions -> Modules -> PayPal Plus, tab Overview press Activate button
- Enter PayPal API Client ID and Secret key and adjust other settings in Extensions -> Modules -> PayPal Plus, tab Settings
- Optionally configure eShop shipping methods and shipping cost rules
Versions
- Module v3.0.*
- PayPal-PHP-SDK v1.13.0
Supported OXID eShop version
- 6.0.*
- 6.1.*
- 6.2.*
For developers
- PayPal plus payment acts as payment container. See
views/blocks/oxpspaypalplus_payment_select_payment.tpl. At the moment we exclude even "empty/free" payment. - It is very important to validate html elements/hooks on template. Otherwise payment fails to render.
Validation is done on
out/src/js/oxpspaypalpluswall.js:validateDomElements. Some tags must be parent to the other. - Error variable placeholder
%sis meant for use in both, PHP and JS. - There are multiple validations on order, JS, payment levels. As a result some errors are logged, some are meant for display and some are both logged and displayed on the front end.
- PayPalPlus payment handler validates phone number to meet E.123 standard. See
\oxpsPayPalPlusPaymentHandler::validateUserData(). And it is active when attempting to pay by PayPal Plus methods. - JS payment validation extracts labels and description from html, because this is only way to take changes made by other modules.
- Payments not registered on PayPal Plus should be visible on payment step. Because there are payments developed by partners.
- After developing run PHP and JS test. See
modules/oxps/paypalplus/tests/unitandmodules/oxps/paypalplus/tests/functional/README.md. - It is better to have PayPal test accounts (private and business) registered in Germany. E.g. accounts with currency USD ends up "pending" payments on admin panel. As a result refund functionality can not be used.
- Credit cards for testing purposes
https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.html
Link
Extend
- language_main -- save
- order_list -- render -- _prepareWhereQuery -- _buildSelectString -- _prepareOrderByQuery
- basket -- render
- order -- init
- payment -- render -- validatePayment -- getPaymentErrorText
- oxviewconfig
- oxAddress -- save
- oxBasket -- afterUpdate -- getPaymentCost -- getTotalDiscountSum -- getTsProductId
- oxOrder -- save -- delete
- oxPaymentGateway -- executePayment
- oxUser -- save
- thankyou -- init -- render
统计信息
- 总下载量: 12.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2020-03-24