diff --git a/composer.json b/composer.json index dd12526..602e771 100755 --- a/composer.json +++ b/composer.json @@ -1,6 +1,31 @@ { + "name": "unzerdev/woocommerce", + "description": "Official Unzer Payment Extension for WooCommerce.", + "type": "wordpress-plugin", + "homepage": "https://www.unzer.com/", + "authors": [ + { + "name": "Unzer GmbH", + "email": "info@unzer.com", + "homepage": "https://www.unzer.com" + } + ], + "license": "Apache-2.0", + "keywords": [ + "wordpress", + "woocommerce", + "unzer", + "payment", + "gateway" + ], "require": { - "unzerdev/php-sdk": "^3.11.0", - "php": ">=7.4" + "php": ">=7.4", + "composer/installers": "^2.3", + "unzerdev/php-sdk": "^3.15.0" + }, + "config": { + "allow-plugins": { + "composer/installers": true + } } -} +} \ No newline at end of file diff --git a/includes/gateways/DirectDebitSecured.php b/includes/gateways/DirectDebitSecured.php index f2bbc86..6c367a4 100644 --- a/includes/gateways/DirectDebitSecured.php +++ b/includes/gateways/DirectDebitSecured.php @@ -98,6 +98,7 @@ public function get_form_fields() { ), 'additional_key_info' => array( 'type' => 'unzer_additional_key_info', + 'default' => '', ), 'public_key_eur_b2c' => array( 'title' => __( 'Public Key EUR/B2C', 'unzer-payments' ), diff --git a/includes/gateways/Installment.php b/includes/gateways/Installment.php index 43e1f3d..b434c83 100644 --- a/includes/gateways/Installment.php +++ b/includes/gateways/Installment.php @@ -106,6 +106,7 @@ public function get_form_fields() { ), 'additional_key_info' => array( 'type' => 'unzer_additional_key_info', + 'default' => '', ), 'public_key_eur_b2c' => array( 'title' => __( 'Public Key EUR/B2C', 'unzer-payments' ), diff --git a/includes/gateways/Invoice.php b/includes/gateways/Invoice.php index 9e9c1df..a4c0669 100644 --- a/includes/gateways/Invoice.php +++ b/includes/gateways/Invoice.php @@ -67,6 +67,7 @@ public function get_form_fields() { ), 'additional_key_info' => array( 'type' => 'unzer_additional_key_info', + 'default' => '', ), 'public_key_eur_b2c' => array( 'title' => __( 'Public Key EUR/B2C', 'unzer-payments' ), diff --git a/includes/gateways/OpenBanking.php b/includes/gateways/OpenBanking.php index e06835e..fda6ddf 100644 --- a/includes/gateways/OpenBanking.php +++ b/includes/gateways/OpenBanking.php @@ -12,7 +12,7 @@ class OpenBanking extends AbstractGateway { const GATEWAY_ID = 'unzer_open_banking'; const BLOCK_CLASS = OpenBankingBlock::class; - public $allowedCountries = array( 'DE' ); + public $allowedCurrencies = array( 'EUR' ); public $paymentTypeResource = \UnzerSDK\Resources\PaymentTypes\OpenbankingPis::class; public $method_title = 'Unzer Direct Bank Transfer'; diff --git a/package.json b/package.json index 843ce6c..8da6091 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unzer-payments", - "version": "2.1.0", + "version": "2.1.2", "description": "", "main": "index.js", "scripts": { diff --git a/readme.txt b/readme.txt index 53b7e67..b8d3b5d 100755 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: Unzer Tags: payments, woocommerce Requires at least: 4.5 Tested up to: 6.9 -Stable tag: 2.1.1 +Stable tag: 2.1.2 License: Apache-2.0 License URI: http://www.apache.org/licenses/LICENSE-2.0 Author URI: https://unzer.com @@ -59,6 +59,10 @@ Unzer is one of the leading payment companies in Europe. Over 70,000 retailers t ## Changelog ## +# 2.1.2 # +* Removed country restrictions for Direct Bank Transfer +* Bufix: Provide default values to prevent undefined index Notices + # 2.1.1 # * Updated iDEAL Payment naming and logo diff --git a/unzer-payments.php b/unzer-payments.php index de1dc7f..bfbc91b 100755 --- a/unzer-payments.php +++ b/unzer-payments.php @@ -5,7 +5,7 @@ * Description: Official Unzer Plugin * Author: Unzer * Author URI: https://www.unzer.com - * Version: 2.1.1 + * Version: 2.1.2 * License: Apache-2.0 * Requires at least: 4.5 * Tested up to: 6.9 @@ -21,7 +21,7 @@ /** * Required minimums and constants */ -define( 'UNZER_VERSION', '2.1.1' ); +define( 'UNZER_VERSION', '2.1.2' ); define( 'UNZER_PLUGIN_TYPE_STRING', 'Unzer Payments' ); define( 'UNZER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) ); define( 'UNZER_PLUGIN_PATH', __DIR__ . '/' );