Skip to content

Commit

Permalink
Separate Klarna and PayPo (#327)
Browse files Browse the repository at this point in the history
* Separate Klarna and PayPo

* Fixed a problem with the payment method list

* SVG logos

* Update Klarna SVG

---------

Co-authored-by: Wojciech Przybylski <wojciech.przybylski@payu.com>
  • Loading branch information
wprzybylski and Wojciech Przybylski authored Mar 22, 2024
1 parent 5a2b634 commit 1a0e67d
Show file tree
Hide file tree
Showing 16 changed files with 266 additions and 24 deletions.
40 changes: 22 additions & 18 deletions README.EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,25 @@ The PayU payments Prestashop plugin adds the PayU payment option and enables you

Plugin version 3.x supports PrestaShop versions 1.6 and 1.7

| Feature | PrestaShop 1.6 | PrestaShop 1.7 |
|-----------------------------------------------------------------|:-------------------:|:--------------------:|
| Creating a payment order (with discounts included) | :white_check_mark: | :white_check_mark: |
| Capturing a payment order (when auto-capture is disabled) | :white_check_mark: | :white_check_mark: |
| Conducting a refund operation (whole or partial) | :white_check_mark: | :white_check_mark: |
| Displaying payment methods on Presta checkout summary page | :white_check_mark: | :white_check_mark: |
| Card payment as separate method | :white_check_mark: | :white_check_mark: |
| Card payment via widget on summary page | :white_check_mark: | :white_check_mark: |
| Payment retry for cancelled payments | :white_check_mark: | :white_check_mark: |
| Repayment | :white_check_mark: | :white_check_mark: |
| Multi-currency support | :white_check_mark: | :white_check_mark: |
| Payment method order | :white_check_mark: | :white_check_mark: |
| Promoting [PayU Installments][ext10] and [PayU Later][ext9] | :white_check_mark: | :white_check_mark: |
| Twisto payment as separate method | :white_check_mark: | :white_check_mark: |
| Present installment estimated value on product and listing page | :white_check_mark: | :white_check_mark: |
| Present installment estimated value in checkout view | :white_check_mark: | :white_check_mark: |
| Present installment estimated value in cart view | :x: | :white_check_mark: |
| Feature | PrestaShop 1.6 | PrestaShop 1.7 |
|-----------------------------------------------------------------|:------------------:|:------------------:|
| Creating a payment order (with discounts included) | :white_check_mark: | :white_check_mark: |
| Capturing a payment order (when auto-capture is disabled) | :white_check_mark: | :white_check_mark: |
| Conducting a refund operation (whole or partial) | :white_check_mark: | :white_check_mark: |
| Displaying payment methods on Presta checkout summary page | :white_check_mark: | :white_check_mark: |
| Card payment as separate method | :white_check_mark: | :white_check_mark: |
| Card payment via widget on summary page | :white_check_mark: | :white_check_mark: |
| Payment retry for cancelled payments | :white_check_mark: | :white_check_mark: |
| Repayment | :white_check_mark: | :white_check_mark: |
| Multi-currency support | :white_check_mark: | :white_check_mark: |
| Payment method order | :white_check_mark: | :white_check_mark: |
| Promoting [PayU Installments][ext10] and [PayU Later][ext9] | :white_check_mark: | :white_check_mark: |
| Klarna payment as separate method | :white_check_mark: | :white_check_mark: |
| PayPo payment as separate method | :white_check_mark: | :white_check_mark: |
| Twisto payment as separate method | :white_check_mark: | :white_check_mark: |
| Present installment estimated value on product and listing page | :white_check_mark: | :white_check_mark: |
| Present installment estimated value in checkout view | :white_check_mark: | :white_check_mark: |
| Present installment estimated value in cart view | :x: | :white_check_mark: |

More information on the features can be found in the [More on features](#more-on-features) section

Expand Down Expand Up @@ -171,7 +173,7 @@ Plugin version 3.0.10 introduced functionality of promoting [credit payment meth
Functionality is enabled by default. It can be deactivated using "Promote credit" switch in admin panel.
Support for given functionalities has been described in [Features](#features) section.
> Presenting credit widgets is dependent on gateways availability for given point of sale (POS).
Plugin automatically checks whether "ai" or "dpt" gateways are enabled.
Plugin automatically checks whether "ai", "dpt", "dpp" or "dpkl" gateways are enabled.
If used POS doesn't have credit agreement activated functionality will not work, and widget presentation will be
supressed (even if flag in admin panel is enabled).

Expand All @@ -184,6 +186,8 @@ Support for given functionalities has been described in [Features](#features) se
|1.7|Product page|<img src="readme_images/credit-1-7-product.png" width="100">|
|1.7|Cart| <img src="readme_images/credit-1-7-cart.png" width="100">|
|1.7|Promote credit payment methods|<img src="readme_images/credit-1-7-checkout-promote-credit.png" width="100">|
|1.7|PayPo payment as separate method |<img src="readme_images/credit-1-7-checkout-separate-paypo.png" width="100">|
|1.7|Klarna payment as separate method |<img src="readme_images/credit-1-7-checkout-separate-klarna.png" width="100">|
|1.7|Twisto payment as separate method|<img src="readme_images/credit-1-7-checkout-separate-twisto.png" width="100">|
|1.6|Products listing|<img src="readme_images/credit-1-6-listing.png" width="100">|
|1.6|Product page|<img src="readme_images/credit-1-6-product.png" width="100">|
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Plugin w wersji 3.x wspiera PrestaShop w wersji 1.6 i 1.7
| Wielowalutowość | :white_check_mark: | :white_check_mark: |
| Kolejność metod płatności | :white_check_mark: | :white_check_mark: |
| Promowanie [PayU Raty][ext10] i [PayU Płacę Później][ext9] | :white_check_mark: | :white_check_mark: |
| Płatność Klarna jako osobna metoda płatności | :white_check_mark: | :white_check_mark: |
| Płatność PayPo jako osobna metoda płatności | :white_check_mark: | :white_check_mark: |
| Płatność Twisto jako osobna metoda płatności | :white_check_mark: | :white_check_mark: |
| Prezentacja kalkulacji ratalnej przy produkcie i listingu | :white_check_mark: | :white_check_mark: |
| Prezentacja kalkulacji ratalnej na podsumowaniu | :white_check_mark: | :white_check_mark: |
Expand Down Expand Up @@ -175,7 +177,7 @@ Od wersji 3.0.10 plugin udostępnia opcję promowania [płatności ratalnych i o
Funkcjonalność jest domyślnie włączona. Można ją dezaktywować poprzez przełącznik "Promuj płatności ratalne" w panelu
admińskim. Wsparcie dla konkretnych funkcjonalności przedstawione zostało w tabeli [Cechy i
Kompatybilność](#cechy-i-kompatybilność).
> Prezentacja kalkulacji zależna jest od dostępności bramek "ai" oraz "dpt" na danym punkcie płatności i sprawdzana
> Prezentacja kalkulacji zależna jest od dostępności bramek "ai", "dpt", "dpp" oraz "dpkl" na danym punkcie płatności i sprawdzana
jest automatycznie przez plugin. Jeśli na punkcie płatności nie zostały aktywowane Raty PayU kalkulacja nie zostanie
zaprezentowana pomimo włączonej opcji w pluginie.

Expand All @@ -188,6 +190,8 @@ Funkcjonalność jest domyślnie włączona. Można ją dezaktywować poprzez pr
|1.7|Karta produktu|<img src="readme_images/credit-1-7-product.png" width="100">|
|1.7|Koszyk| <img src="readme_images/credit-1-7-cart.png" width="100">|
|1.7|Promowanie płatności ratalnych|<img src="readme_images/credit-1-7-checkout-promote-credit.png" width="100">|
|1.7|Wydzielenie Klarna jako metody płatności | <img src="readme_images/credit-1-7-checkout-separate-klarna.png" width="100"> |
|1.7|Wydzielenie PayPo jako metody płatności | <img src="readme_images/credit-1-7-checkout-separate-paypo.png" width="100"> |
|1.7|Wydzielenie Twisto jako metody płatności|<img src="readme_images/credit-1-7-checkout-separate-twisto.png" width="100">|
|1.6|Listing produktów|<img src="readme_images/credit-1-6-listing.png" width="100">|
|1.6|Karta produktu|<img src="readme_images/credit-1-6-product.png" width="100">|
Expand Down
1 change: 1 addition & 0 deletions payu/controllers/front/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function process()
$payMethod === 'blik' ||
$payMethod === 'dp' ||
$payMethod === 'dpt' ||
$payMethod === 'dpkl' ||
$payMethod === 'dpp'
) {
$this->pay($payMethod, [], $payMethod);
Expand Down
14 changes: 14 additions & 0 deletions payu/img/payu_later_klarna_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions payu/img/payu_later_paypo_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed payu/img/payu_later_twisto_logo.png
Binary file not shown.
Loading

0 comments on commit 1a0e67d

Please sign in to comment.