diff --git a/MPM/lib b/MPM/lib index 30ae541a8..9943bae7c 160000 --- a/MPM/lib +++ b/MPM/lib @@ -1 +1 @@ -Subproject commit 30ae541a84d82218535a4754b87b0a6092132bfd +Subproject commit 9943bae7c1b655cf1d1f5deb86d0d98d23789d14 diff --git a/MPM/mpm.php b/MPM/mpm.php index 9c39e122a..1b93b658d 100644 --- a/MPM/mpm.php +++ b/MPM/mpm.php @@ -2,7 +2,7 @@ /** * Plugin Name: MPM - Mollie Payment Module * Plugin URI: https://github.com/Mollie/WooCommerce/releases - * Version: 1.1.4 + * Version: 1.2.0 * Description: Integration of the Mollie API for WooCommerce * Author: Mollie * Author URI: https://www.mollie.nl diff --git a/MPM/mpm_gateway.php b/MPM/mpm_gateway.php index 1fab6a544..376f75850 100644 --- a/MPM/mpm_gateway.php +++ b/MPM/mpm_gateway.php @@ -130,7 +130,7 @@ public function process_payment($order_id) $data = array( "amount" => $order->get_total(), - "description" => str_replace('%', $order_id, $mpm->get_option('description', 'Order %')), + "description" => str_replace('%', $order->get_order_number(), $mpm->get_option('description', 'Order %')), "redirectUrl" => $mpm->return->get_return_link() . '&order='.$order_id.'&key='.$order->order_key, "method" => $this->id, "issuer" => empty($_POST["mpm_issuer_" . $this->id]) ? null : $_POST["mpm_issuer_" . $this->id], @@ -208,4 +208,4 @@ public function process_payment($order_id) 'redirect' => $payment->getPaymentUrl(), ); } -} \ No newline at end of file +} diff --git a/MPM/mpm_settings.php b/MPM/mpm_settings.php index 65930e640..8667c6f0a 100644 --- a/MPM/mpm_settings.php +++ b/MPM/mpm_settings.php @@ -42,7 +42,7 @@ class MPM_Settings extends WC_Settings_API /** @var $return MPM_return|null */ public $return = null; - public $plugin_version = '1.1.4'; + public $plugin_version = '1.2.0'; public $update_url = 'https://github.com/mollie/WooCommerce'; public function __construct()