Version Description
10-04-2019 =
New - Add support for Przelewy24 (Poland)
Download this release
Release Info
Developer | davdebcom |
Plugin | Mollie Payments for WooCommerce |
Version | 5.1.6 |
Comparing to | |
See all releases |
Code changes from version 5.1.5 to 5.1.6
assets/images/przelewy24.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="32" height="24" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="24" rx="4" fill="#D13239"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.446 7.72a1.464 1.464 0 0 0-.512-.322 3.722 3.722 0 0 0-.681-.183 5.757 5.757 0 0 0-.778-.082c-.187-.008-.307-.008-.307-.008H4.706L3 17.427h1.593l.629-3.816 3.09.015s1.204.049 2.057-.404c.853-.452 1.08-1.48 1.08-1.48s.094-.382.173-.846a54.292 54.292 0 0 0 .247-1.683s.022-.105.022-.27a1.84 1.84 0 0 0-.21-.901 1.48 1.48 0 0 0-.235-.322zm-1.227 1.818c0 .019-.142.845-.329 1.825-.071.374-.36.576-.688.647-.546.116-1.134.094-1.134.094l-2.58-.007.568-3.423 2.338.007s.157-.003.378 0c.25.004.583.015.856.053.236.03.423.078.483.153a.634.634 0 0 1 .12.337c.014.164-.012.303-.012.314z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.99 10.735l1.613.004.097-.625s.172-1.13.558-1.347c.123-.07.321-.134.55-.175.422-.075.957-.083 1.395-.068.67.023.924.03 1.604.109.681.078.509.737.509.737l-.135.983s-.06.442-.217.715c-.138.243-.52.408-.74.479-.531.172-2.35.635-2.35.635l-1.428.412s-.88.254-1.37.797a3.278 3.278 0 0 0-.755 1.485c-.067.321-.445 2.547-.445 2.547l7.713.004.258-1.541-6.1.007.108-.628s.071-.648.333-.86c.082-.068.123-.158.61-.33.291-.105 1.286-.37 1.286-.37l2.3-.629s1.257-.321 1.751-1.01c.494-.684.685-1.997.685-1.997s.134-1.275.03-1.676c-.101-.4-.48-.879-.94-1.084-.46-.206-.938-.326-2.326-.307-1.387.019-2.076.082-2.779.344-.703.258-1.11.73-1.369 1.395-.28.632-.445 1.994-.445 1.994zM27.511 13.6l1.081-6.478h-1.915l-5.962 6.403-.27 1.624h5.215l-.382 2.274 1.601.004.378-2.278 1.477.003L29 13.6h-1.489zm-1.593.004l-3.37-.004 4.103-4.372-.733 4.376z" fill="#D4D4D4"/></svg>
|
includes/mollie/wc/gateway/przelewy24.php
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use Mollie\Api\Types\PaymentMethod;
|
4 |
+
|
5 |
+
class Mollie_WC_Gateway_Przelewy24 extends Mollie_WC_Gateway_Abstract
|
6 |
+
{
|
7 |
+
/**
|
8 |
+
*
|
9 |
+
*/
|
10 |
+
public function __construct ()
|
11 |
+
{
|
12 |
+
$this->supports = array(
|
13 |
+
'products',
|
14 |
+
'refunds',
|
15 |
+
);
|
16 |
+
|
17 |
+
parent::__construct();
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @return string
|
22 |
+
*/
|
23 |
+
public function getMollieMethodId ()
|
24 |
+
{
|
25 |
+
return PaymentMethod::PRZELEWY24;
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* @return string
|
30 |
+
*/
|
31 |
+
public function getDefaultTitle ()
|
32 |
+
{
|
33 |
+
return __('Przelewy24', 'mollie-payments-for-woocommerce');
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* @return string
|
38 |
+
*/
|
39 |
+
protected function getSettingsDescription() {
|
40 |
+
return __('To accept payments via Przelewy24, a customer email is required for every payment.', 'mollie-payments-for-woocommerce');
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* @return string
|
45 |
+
*/
|
46 |
+
protected function getDefaultDescription ()
|
47 |
+
{
|
48 |
+
return '';
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* @param WC_Order $order
|
53 |
+
* @param Mollie\Api\Resources\Payment $payment
|
54 |
+
* @param bool $admin_instructions
|
55 |
+
* @param bool $plain_text
|
56 |
+
* @return string|null
|
57 |
+
*/
|
58 |
+
protected function getInstructions (WC_Order $order, Mollie\Api\Resources\Payment $payment, $admin_instructions, $plain_text)
|
59 |
+
{
|
60 |
+
if ($payment->isPaid() && $payment->details)
|
61 |
+
{
|
62 |
+
return sprintf(
|
63 |
+
/* translators: Placeholder 1: customer billing email */
|
64 |
+
__('Payment completed by <strong>%s</strong>.', 'mollie-payments-for-woocommerce'),
|
65 |
+
$payment->details->billingEmail
|
66 |
+
);
|
67 |
+
}
|
68 |
+
|
69 |
+
return parent::getInstructions($order, $payment, $admin_instructions, $plain_text);
|
70 |
+
}
|
71 |
+
}
|
includes/mollie/wc/helper/orderlines.php
CHANGED
@@ -266,7 +266,7 @@ class Mollie_WC_Helper_OrderLines {
|
|
266 |
* @return integer $item_vatRate Item tax percentage formatted for Mollie Orders API.
|
267 |
*/
|
268 |
private function get_item_vatRate( $cart_item, $product ) {
|
269 |
-
if ( $product->is_taxable() && $cart_item['line_subtotal_tax'] > 0 ) {
|
270 |
// Calculate tax rate.
|
271 |
|
272 |
$_tax = new WC_Tax();
|
@@ -331,7 +331,7 @@ class Mollie_WC_Helper_OrderLines {
|
|
331 |
* @return string $item_reference Cart item reference.
|
332 |
*/
|
333 |
private function get_item_reference( $product ) {
|
334 |
-
if ( $product->get_sku() ) {
|
335 |
$item_reference = $product->get_sku();
|
336 |
} else {
|
337 |
$item_reference = $product->get_id();
|
266 |
* @return integer $item_vatRate Item tax percentage formatted for Mollie Orders API.
|
267 |
*/
|
268 |
private function get_item_vatRate( $cart_item, $product ) {
|
269 |
+
if ( $product && $product->is_taxable() && $cart_item['line_subtotal_tax'] > 0 ) {
|
270 |
// Calculate tax rate.
|
271 |
|
272 |
$_tax = new WC_Tax();
|
331 |
* @return string $item_reference Cart item reference.
|
332 |
*/
|
333 |
private function get_item_reference( $product ) {
|
334 |
+
if ( $product && $product->get_sku() ) {
|
335 |
$item_reference = $product->get_sku();
|
336 |
} else {
|
337 |
$item_reference = $product->get_id();
|
includes/mollie/wc/plugin.php
CHANGED
@@ -7,7 +7,7 @@ class Mollie_WC_Plugin
|
|
7 |
{
|
8 |
const PLUGIN_ID = 'mollie-payments-for-woocommerce';
|
9 |
const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
|
10 |
-
const PLUGIN_VERSION = '5.1.
|
11 |
|
12 |
const DB_VERSION = '1.0';
|
13 |
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
|
@@ -40,6 +40,7 @@ class Mollie_WC_Plugin
|
|
40 |
'Mollie_WC_Gateway_MisterCash',
|
41 |
'Mollie_WC_Gateway_PayPal',
|
42 |
'Mollie_WC_Gateway_Paysafecard',
|
|
|
43 |
'Mollie_WC_Gateway_Sofort',
|
44 |
'Mollie_WC_Gateway_Giftcard',
|
45 |
);
|
7 |
{
|
8 |
const PLUGIN_ID = 'mollie-payments-for-woocommerce';
|
9 |
const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
|
10 |
+
const PLUGIN_VERSION = '5.1.6';
|
11 |
|
12 |
const DB_VERSION = '1.0';
|
13 |
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
|
40 |
'Mollie_WC_Gateway_MisterCash',
|
41 |
'Mollie_WC_Gateway_PayPal',
|
42 |
'Mollie_WC_Gateway_Paysafecard',
|
43 |
+
'Mollie_WC_Gateway_Przelewy24',
|
44 |
'Mollie_WC_Gateway_Sofort',
|
45 |
'Mollie_WC_Gateway_Giftcard',
|
46 |
);
|
mollie-payments-for-woocommerce.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Mollie Payments for WooCommerce
|
4 |
* Plugin URI: https://www.mollie.com
|
5 |
* Description: Accept payments in WooCommerce with the official Mollie plugin
|
6 |
-
* Version: 5.1.
|
7 |
* Author: Mollie
|
8 |
* Author URI: https://www.mollie.com
|
9 |
* Requires at least: 3.8
|
@@ -12,7 +12,7 @@
|
|
12 |
* Domain Path: /i18n/languages/
|
13 |
* License: GPLv2 or later
|
14 |
* WC requires at least: 2.2.0
|
15 |
-
* WC tested up to: 3.
|
16 |
*/
|
17 |
|
18 |
// Exit if accessed directly.
|
3 |
* Plugin Name: Mollie Payments for WooCommerce
|
4 |
* Plugin URI: https://www.mollie.com
|
5 |
* Description: Accept payments in WooCommerce with the official Mollie plugin
|
6 |
+
* Version: 5.1.6
|
7 |
* Author: Mollie
|
8 |
* Author URI: https://www.mollie.com
|
9 |
* Requires at least: 3.8
|
12 |
* Domain Path: /i18n/languages/
|
13 |
* License: GPLv2 or later
|
14 |
* WC requires at least: 2.2.0
|
15 |
+
* WC tested up to: 3.6
|
16 |
*/
|
17 |
|
18 |
// Exit if accessed directly.
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: daanvm, davdebcom, l.vangunst, ndijkstra, robin-mollie
|
|
3 |
Tags: mollie, payments, payment gateway, woocommerce, credit card
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.1
|
6 |
-
Stable tag: 5.1.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -181,6 +181,10 @@ Automatic updates should work like a charm; as always though, ensure you backup
|
|
181 |
|
182 |
== Changelog ==
|
183 |
|
|
|
|
|
|
|
|
|
184 |
= 5.1.5 - 22-03-2019 =
|
185 |
|
186 |
* Fix - Refunds: Fix condition for extended (order line) refunds
|
3 |
Tags: mollie, payments, payment gateway, woocommerce, credit card
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.1
|
6 |
+
Stable tag: 5.1.6
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 5.1.6 - 10-04-2019 =
|
185 |
+
|
186 |
+
* New - Add support for Przelewy24 (Poland)
|
187 |
+
|
188 |
= 5.1.5 - 22-03-2019 =
|
189 |
|
190 |
* Fix - Refunds: Fix condition for extended (order line) refunds
|