Changeset 3198223
- Timestamp:
- 11/27/2024 02:38:09 PM (15 months ago)
- Location:
- mollie-forms/trunk
- Files:
-
- 5 edited
-
classes/Admin.php (modified) (1 diff)
-
classes/FormBuilder.php (modified) (5 diffs)
-
classes/MollieForms.php (modified) (1 diff)
-
mollie-forms.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mollie-forms/trunk/classes/Admin.php
r3192454 r3198223 401 401 'resource' => $api_type, 402 402 'includeWallets' => 'applepay', 403 'amount' => ['value' => '1.00', 'currency' => $currency], 403 404 ]); 404 405 -
mollie-forms/trunk/classes/FormBuilder.php
r3193148 r3198223 196 196 $variable = get_post_meta($post, '_rfmp_payment_method_variable', true); 197 197 $display = get_post_meta($post, '_rfmp_payment_methods_display', true); 198 $currency = get_post_meta($post, '_rfmp_currency', true) ?: 'EUR'; 198 199 $formValue = isset($_POST['rfmp_payment_method']) ? sanitize_text_field($_POST['rfmp_payment_method']) : ''; 199 200 … … 208 209 $script = ''; 209 210 $rcur = []; 210 foreach ($mollie->all('methods', ['sequenceType' => 'first' ]) as $method) {211 foreach ($mollie->all('methods', ['sequenceType' => 'first', 'amount' => ['value' => '1.00', 'currency' => $currency]]) as $method) { 211 212 if (isset($active[$method->id]) && $active[$method->id]) { 212 213 $rcur[] = $method->id; … … 215 216 } 216 217 } 217 foreach ($mollie->all('methods', ['locale' => $locale, 218 'resource' => $apiType, 219 'includeWallets' => 'applepay', 220 ]) as $method) { 218 foreach ($mollie->all('methods', ['locale' => $locale, 'resource' => $apiType, 'amount' => ['value' => '1.00', 'currency' => $currency], 'includeWallets' => 'applepay']) as $method) { 221 219 if (isset($active[$method->id]) && $active[$method->id] && !in_array($method->id, $rcur)) { 222 220 $script .= 'if (document.getElementById("rfmp_pm_' . $method->id . '_' . $post . '") !== null){' . … … 286 284 </script>'; 287 285 288 $currency = get_post_meta($post, '_rfmp_currency', true) ?: 'EUR'; 289 $symbol = $this->helpers->getCurrencySymbol($currency); 290 286 $symbol = $this->helpers->getCurrencySymbol($currency); 291 287 292 288 if ($display != 'dropdown') { … … 302 298 303 299 // loop through all payment methods 304 foreach ($mollie->all('methods', ['locale' => $locale, 305 'resource' => $apiType, 306 'includeWallets' => 'applepay', 307 ]) as $method) { 300 foreach ($mollie->all('methods', ['locale' => $locale, 'resource' => $apiType, 'includeWallets' => 'applepay', 'amount' => ['value' => '1.00', 'currency' => $currency]]) as $method) { 308 301 // check if method is enabled in form 309 302 if (isset($active[$method->id]) && $active[$method->id]) { -
mollie-forms/trunk/classes/MollieForms.php
r3196873 r3198223 10 10 * Plugin version number 11 11 */ 12 const PLUGIN_VERSION = '2.7.1 0';12 const PLUGIN_VERSION = '2.7.11'; 13 13 14 14 /** -
mollie-forms/trunk/mollie-forms.php
r3196873 r3198223 4 4 Plugin Name: Mollie Forms 5 5 Description: Create registration forms with payment methods of Mollie. One-time and recurring payments are possible. 6 Version: 2.7.1 06 Version: 2.7.11 7 7 Author: Wobbie.nl 8 8 Author URI: https://wobbie.nl -
mollie-forms/trunk/readme.txt
r3196873 r3198223 6 6 Requires PHP: 7.0 7 7 Tested up to: 6.7 8 Stable tag: 2.7.1 08 Stable tag: 2.7.11 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 == Changelog == 83 83 84 = 2.7.11 - 27/11/2024 = 85 * Fix to use selected currency for retrieving payment methods 86 84 87 = 2.7.10 - 25/11/2024 = 85 88 * Send correct User-Agent for Mollie API requests
Note: See TracChangeset
for help on using the changeset viewer.