payu/magento24-payment-gateway 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

payu/magento24-payment-gateway

Composer 安装命令:

composer require payu/magento24-payment-gateway

包简介

Official PayU integration plugin for Magento 2.4

README 文档

README

Wersja polska

PayU module for Magento 2 version 2.4

BREAKING CHANGES

Due to changes described in CHANGELOG after updating plugin from version 1.X to 2.X, you must reconfigure plugin.

If you have any questions or if you want to report an error, please contact our support at the address: tech@payu.pl.

Table of contents

  1. Properties
  2. Requirements
  3. Installation
  4. Configuration
  5. Information about properties

Properties

PayU payment module adds a PayU payment option to Magento 2. The module works together with Magento 2 version 2.4

The following operations are possible:

  • Creation of payment in the PayU system
  • Automatic receipt of notifications and change of order status
  • Receipt or rejection of payment (in case of switched off automatic receipt)
  • Display of payment method and selection of the method on the order summary page
  • Payment by card directly on the order summary page
  • Remembering of cards and payment with the remembered card
  • Repeat payment
  • Creation of online refund (full or partial)
  • Promoting credit payments using credit widget on different subpages of the store (e.g. on the product page, in the cart)

The module adds these payment methods:

  • PayU payment - selection of payment method and redirection a bank or card form
  • Card payment - entry of the card number directly on the store's website and payment by card
  • PayU - Google Pay - Google Pay payment directly on checkout (without redirecting the customer outside the store)
  • PayU Installments - installment payments with a redirect to the PayU installment form.
  • PayU Klarna - deferred Klarna payments with a redirect to the Klarna form in PayU.
  • PayU PayPo - deferred PayPo payments with a redirect to the PayPo form in PayU.
  • PayU PragmaPay - deferred PragmaPay payments with a redirect to the PragmaPay form in PayU.
  • PayU Twisto - deferred Twisto payments with a redirect to the Twisto form in PayU.
  • PayU Twisto Pay in 3 - deferred Twisto Pay in 3 payments with a redirect to the Twisto Pay in 3 form in PayU

methods

Requirements

Important: The module works only with the REST API (Checkout) POS, if you don't have an account in the PayU system yet, register yourself in the production system or in the sandbox system

  • PHP compliant with the requirements of the installed version of Magento 2
  • PHP extension: cURL and hash.

Installation

Using Composer

composer require payu/magento24-payment-gateway

After installation from the console's level, run:

  • php bin/magento module:enable PayU_PaymentGateway
  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento setup:static-content:deploy

Configuration

  1. Go to the administration page of your Magento 2 store [http://adres-sklepu/admin_xxx].
  2. Go to Stores > Configuration.
  3. On the Configuration page in the menu on the left-hand side, in the section Sales choose Payment Methods.
  4. On the list of available payment methods choose one of the PayU methods to configure the plugin's parameters.
  5. After changing the parameters click Save config.

API Parameters

Parameter Description
Test mode (Sandbox) Yes - transactions are processed by the PayU Sandbox system.
No - transactions are processed by the PayU production system.

Point of sale (POS) parameters

Parameter Descripction
POS IdD POS ID from PayU system
Second MD5 key Second MD5 key from PayU system
OAuth - client_id client_id for OAuth protocol from PayU system
OAuth - client_secret client_secret for OAuth from PayU system

POS parameters - Test mode (Sandbox)

Available when the parameter Test Mode (Sandbox) is set for Yes.

Parameter Description
POS ID POS ID from PayU system
Second MD5 key Second MD5 key from PayU system
OAuth - client_id client_id for OAuth protocol from PayU system
OAuth - client_secret client_secret for OAuth from PayU system

"PayU Credit widget" plugin parameters

Parameter Description
Enable widget for product view Value Yes|No. Displays the widget on product pages.
Enable widget for catalog view Value Yes|No. Displays the widget on pages with product lists (e.g., categories).
Enable widget for catalog widgets eg. hot, new Value Yes|No. Displays the widget on pages with product list widgets (e.g., bestseller, new).
Experimental feature
Enable widget for checkout Value Yes|No. Displays the widget on the cart page.
Enable widget for minicart Value Yes|No. Displays the widget in the cart summary dropdown.
Enable widget for cart summary Value Yes|No. Displays the widget on the cart summary page with the payment method selection.
Excluded payTypes Comma-separated list of payment methods to omit during widget display.
It is recommended to leave this list empty

"PayU Payment" parameters

Parameter Description
Activate the plugin? Determines whether the payment method will be available in the store on the list of payments.
Order of payment methods Determines the order of the payment methods being displayed more information.
Activate repeat payment? more information
Sort Order Position of the payment method in the list of payment methods.

"PayU - Cards" parameters

Parameter Description
Activate the plugin? Determines whether the payment method will be available in the store on the list of payments.
Activate repeat payment? more information
Activate remembering of cards? more information
Sort Order Position of the payment method in the list of payment methods.

"PayU - Google Pay" parameters

Parameter Description
Activate the plugin? Determines whether the payment method will be available in the store on the list of payments.
Activate repeat payment? more information
Sort Order Position of the payment method in the list of payment methods.
Google Pay Merchant ID Merchant identifier in Google. You need to verify your shop in Google, following the instructions.
Google Merchant Name Merchant name displayed in Google Pay (should match your Google Pay profile).

"PayU - Installments", "PayU - Klarna", "PayU - PayPo", "PayU - PragmaPay", "PayU - Twisto", "PayU - Twisto Pay in 3" payment parameters

Parameter Description
Activate the plugin? Determines whether the payment method will be available in the store on the list of payments.
Activate repeat payment? more information
Sort Order Position of the payment method in the list of payment methods.

Information about properties

Order of payment methods

To determine the order of display of payment method icons indicate the payment method symbols, separating them with a comma. List of payment methods.

Repeat payment

To use this option the POS should be properly configured in PayU and automatic receipt of payments should be disabled (auto-receipt is on by default). To do that log in to the PayU panel, go to the tab "Electronic payments", then click "My stores" and POS in the given store. The "Automatic payment receipt" option can be found at the bottom under the list of payment methods.

Repeat payment makes it possible to activate multiple payments in PayU to a single order in Magento. The plugin will automatically take receipt of the first successful payment while the other ones will be cancelled. Repeat payment from the buyer's point of view is also possible through the list of orders in Magento (a link "Pay again" will appear there). The buyer will also automatically receive an e-mail with such link. Thus, the buyer is able to successfully pay for his order even if the first payment was unsuccessful (for instance, no funds on the card, problems logging in to the bank, etc.).

Saving cards

Saving card allows logged in users to remember the card for future payments. Each such remembered card is "tokenized", however, Magento does not process the card's full details in any way (they are entered using an embedded widget hosted by PayU) and does not save card tokens in its database (before use, current tokens for the given user are always downloaded from PayU).

To ensure proper functioning of the service additional configuration in PayU, consisting in creating and receiving tokens, is required. Additionally, the principles of authenticating payments with the remembered card can also be determined (by default every payment with a saved card requires providing a CVV code and being authenticated by 3DS but, for instance, an amount limit up to which this will not be necessary can be defined).

The buyer may save the card while making a payment, using the option "Use and save" on PayU widget while entering the card's details. Each card being remembered is subject to strong authentication during first payment (CVV and 3DS). A saved card will appear after choosing to pay with a card through PayU for the order and is visible in the user's account (tab "My saved cards"), where an option to delete it is also available.

Credit widget

To inform customers about credit payment options for a specific product, we recommend placing the credit widget next to products in product lists, in the description (details) of the selected product, in the cart, and at checkout (before payment). The configuration parameters described in the section "PayU Credit widget" plugin parameters allow flexible management of where the credit widget is displayed.

Example presentation of the credit widget

widget

payu/magento24-payment-gateway 适用场景与选型建议

payu/magento24-payment-gateway 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 431.06k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2020 年 08 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「payment processing」 「payu」 「payment module」 「payu magento 2.4 module」 「payu magento 2.4」 「blik payment」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 payu/magento24-payment-gateway 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 payu/magento24-payment-gateway 我们能提供哪些服务?
定制开发 / 二次开发

基于 payu/magento24-payment-gateway 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 431.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 26
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 6
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: apache-2.0
  • 更新时间: 2020-08-20