Plugin Directory

Changeset 3198223


Ignore:
Timestamp:
11/27/2024 02:38:09 PM (15 months ago)
Author:
ndijkstra
Message:

Preparing for 2.7.11 release

Location:
mollie-forms/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • mollie-forms/trunk/classes/Admin.php

    r3192454 r3198223  
    401401                        'resource'       => $api_type,
    402402                        'includeWallets' => 'applepay',
     403                        'amount'         => ['value' => '1.00', 'currency' => $currency],
    403404                ]);
    404405
  • mollie-forms/trunk/classes/FormBuilder.php

    r3193148 r3198223  
    196196        $variable  = get_post_meta($post, '_rfmp_payment_method_variable', true);
    197197        $display   = get_post_meta($post, '_rfmp_payment_methods_display', true);
     198        $currency  = get_post_meta($post, '_rfmp_currency', true) ?: 'EUR';
    198199        $formValue = isset($_POST['rfmp_payment_method']) ? sanitize_text_field($_POST['rfmp_payment_method']) : '';
    199200
     
    208209            $script = '';
    209210            $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) {
    211212                if (isset($active[$method->id]) && $active[$method->id]) {
    212213                    $rcur[] = $method->id;
     
    215216                }
    216217            }
    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) {
    221219                if (isset($active[$method->id]) && $active[$method->id] && !in_array($method->id, $rcur)) {
    222220                    $script .= 'if (document.getElementById("rfmp_pm_' . $method->id . '_' . $post . '") !== null){' .
     
    286284            </script>';
    287285
    288             $currency = get_post_meta($post, '_rfmp_currency', true) ?: 'EUR';
    289             $symbol   = $this->helpers->getCurrencySymbol($currency);
    290 
     286            $symbol = $this->helpers->getCurrencySymbol($currency);
    291287
    292288            if ($display != 'dropdown') {
     
    302298
    303299            // 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) {
    308301                // check if method is enabled in form
    309302                if (isset($active[$method->id]) && $active[$method->id]) {
  • mollie-forms/trunk/classes/MollieForms.php

    r3196873 r3198223  
    1010     * Plugin version number
    1111     */
    12     const PLUGIN_VERSION = '2.7.10';
     12    const PLUGIN_VERSION = '2.7.11';
    1313
    1414    /**
  • mollie-forms/trunk/mollie-forms.php

    r3196873 r3198223  
    44Plugin Name: Mollie Forms
    55Description: Create registration forms with payment methods of Mollie. One-time and recurring payments are possible.
    6 Version: 2.7.10
     6Version: 2.7.11
    77Author: Wobbie.nl
    88Author URI: https://wobbie.nl
  • mollie-forms/trunk/readme.txt

    r3196873 r3198223  
    66Requires PHP: 7.0
    77Tested up to: 6.7
    8 Stable tag: 2.7.10
     8Stable tag: 2.7.11
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8282== Changelog ==
    8383
     84= 2.7.11 - 27/11/2024 =
     85* Fix to use selected currency for retrieving payment methods
     86
    8487= 2.7.10 - 25/11/2024 =
    8588* Send correct User-Agent for Mollie API requests
Note: See TracChangeset for help on using the changeset viewer.