Plugin Directory

Changeset 3442331


Ignore:
Timestamp:
01/19/2026 09:19:15 AM (4 weeks ago)
Author:
codebrainbv
Message:

2.3.2.5

  • Added shopperBankstatementReference to the order announcement, which contains the Order Number.
  • Added option to select the reference to be used for the merchantOrderId to Rabo Smart Pay (Order ID or Order Number).
  • Fixed issue where sometimes the refund option would not be there for a payment.
  • Checked compatibility with WooCommerce 10.4.3.
Location:
woo-rabo-omnikassa
Files:
49 added
9 edited

Legend:

Unmodified
Added
Removed
  • woo-rabo-omnikassa/trunk/controllers/icwoorok2-controller.php

    r3409189 r3442331  
    5252            $bUtmOverride = array_key_exists('utm_nooverride', $_GET);
    5353
    54             $oOrder = wc_get_order($sMerchantOrderId);
     54            $oOrder = icwoorok2_getOrderByReference($sMerchantOrderId);
     55
     56            if(!$oOrder) {
     57                wp_redirect(wc_get_cart_url().($bUtmOverride ? '&utm_nooverride=1' : ''));
     58                exit;
     59            }
    5560
    5661            $sPaymentMethod = $oOrder->get_payment_method_title();
     
    195200
    196201                                    // Get order by Merchant Order ID
    197                                     $oOrder = wc_get_order($sMerchantOrderId);
     202                                    $oOrder = icwoorok2_getOrderByReference($sMerchantOrderId);
     203                                   
     204                                    if(!$oOrder) {
     205                                        // Log data
     206                                        if ($bLogWebhook) {
     207                                            $sLogMessage = 'Order not found for Merchant Order ID: '.$sMerchantOrderId;
     208                                            error_log($sLogMessage);
     209                                        }
     210                                        continue;
     211                                    }
     212                                                                     
    198213                                    $sOrderStatus = $oOrder->get_status();
    199214
     
    215230
    216231                                                if(!empty($sTransactionMethod)) {
    217                                                     $oOrder->set_payment_method($sTransactionMethod);
     232                                                    // Translate payment method to our payment class
     233                                                    $gatewayId = icwoorok2_getGatewayIdByName($sTransactionMethod);
     234
     235
     236                                                    $oOrder->set_payment_method($gatewayId);
     237                                                    $oOrder->save();
    218238                                                }
    219239
  • woo-rabo-omnikassa/trunk/gateways/abstract.php

    r3409189 r3442331  
    205205    }
    206206
     207    public function getPaymentReference()
     208    {
     209        return get_option('icwoorok2_merchant_order_id');
     210    }
     211
    207212    public function getSigningKey()
    208213    {
     
    275280        $oOrder = wc_get_order($sOrderId);
    276281
    277         if (version_compare($woocommerce->version, '3.0', '>=')) {
    278             // Get all order related data
    279             $aOrderData = $oOrder->get_data();
    280 
    281             $sOrderNumber = $aOrderData['number'];
    282             $sDescription = $this->get_option('description_bankaccount');
    283 
    284             // Bank charge description empty, fallback
    285             if (empty($sDescription)) {
    286                 $sDescription = 'Bestelling '.$sOrderNumber;
    287             }
    288 
    289             // Order amount in Cents
    290             $fOrderAmount = round($aOrderData['total'] * 100);
    291             $sCurrencyCode = $aOrderData['currency'];
    292 
    293             if (!in_array($sCurrencyCode, ['EUR'])) {
    294                 // Currency is not EUR, fallback to EUR and log?
    295                 $sCurrencyCode = 'EUR';
    296             }
    297 
    298             $sLanguageCode = get_bloginfo('language');
    299 
    300             if (!in_array($sLanguageCode, ['nl', 'en', 'fr', 'de'])) {
    301                 $sLanguageCode = 'en';
    302             }
    303         } elseif (version_compare($woocommerce->version, '2.0', '>=')) {
    304             $sOrderNumber = $oOrder->get_order_number();
    305             $sDescription = $this->get_option('description_bankaccount');
    306 
    307             // Bank charge description empty, fallback
    308             if (empty($sDescription)) {
    309                 $sDescription = 'Bestelling '.$sOrderNumber;
    310             }
    311 
    312             // Order amount in Cents
    313             $fOrderAmount = round($oOrder->get_total() * 100);
    314             $sCurrencyCode = $oOrder->order_currency;
    315 
    316             if (!in_array($sCurrencyCode, ['EUR'])) {
    317                 // Currency is not EUR, fallback to EUR and log?
    318                 $sCurrencyCode = 'EUR';
    319             }
    320 
    321             $sLanguageCode = get_bloginfo('language');
    322 
    323             if (!in_array($sLanguageCode, ['nl', 'en', 'fr', 'de'])) {
    324                 $sLanguageCode = 'en';
    325             }
     282        $aOrderData = $oOrder->get_data();
     283        $sOrderNumber = $oOrder->get_order_number();
     284
     285        $fOrderAmount = round($oOrder->get_total() * 100);
     286        $sCurrencyCode = $oOrder->get_currency();
     287
     288        $sLanguageCode = get_bloginfo('language');
     289
     290        if (!in_array($sLanguageCode, ['nl', 'en', 'fr', 'de'])) {
     291            $sLanguageCode = 'en';
    326292        }
    327293
     
    331297        $paymentCode = strtoupper(substr($this->getPaymentCode(), 10));
    332298
     299        // Switch for paymentReference setting
     300        $paymentReferenceSetting = $this->getPaymentReference();
     301        if ($paymentReferenceSetting === 'order_id') {
     302            $merchantOrderId = $oOrder->get_id();
     303        } elseif ($paymentReferenceSetting === 'order_number') {
     304            $merchantOrderId = $sOrderNumber;
     305        } else {
     306            $merchantOrderId = $oOrder->get_id();
     307        }
     308
     309        $aRequest = [];
     310
    333311        // Setup message for the order announcement
    334312        $aRequest['timestamp'] = date('c', time());
    335         $aRequest['merchantOrderId'] = $oOrder->get_id();
     313        $aRequest['merchantOrderId'] = $merchantOrderId;
    336314        $aRequest['amount'] = [];
    337315        $aRequest['amount']['currency'] = $sCurrencyCode;
    338316        $aRequest['amount']['amount'] = $fOrderAmount;
    339317        $aRequest['language'] = strtoupper($sLanguageCode);
    340         $aRequest['description'] = $sDescription;
     318        $aRequest['description'] = $this->get_option('description_bankaccount');
    341319        $aRequest['merchantReturnURL'] = $sReturnUrl;
    342320        $aRequest['paymentBrand'] = $paymentCode;
    343321        $aRequest['paymentBrandForce'] = 'FORCE_ONCE';
    344322        $aRequest['skipHppResultPage'] = 'true';
     323        $aRequest['shopperBankstatementReference'] = preg_replace('/[^a-zA-Z0-9]/', '', $merchantOrderId);
    345324       
    346325        if($paymentCode == 'CARDS') {
  • woo-rabo-omnikassa/trunk/ic-woo-omnikassa-2.php

    r3409189 r3442331  
    1515 * Text Domain: ic-woo-omnikassa-2
    1616 * Domain Path: /languages
    17  * Version: 2.3.2.4
     17 * Version: 2.3.2.5
    1818 * Requires at least: 5.8
    1919 * Tested up to:      6.9
     
    2121 * Requires Plugins: woocommerce
    2222 * WC requires at least: 9.6
    23  * WC tested up to: 10.3.6
     23 * WC tested up to: 10.4.3
    2424*/
    2525
     
    3131define('ICWOOROK_ROOT_PATH', plugin_dir_path(__FILE__));
    3232define('ICWOOROK_ROOT_URL', plugin_dir_url(__FILE__));
    33 define('ICWOOROK_VERSION', '2.3.2.4');
     33define('ICWOOROK_VERSION', '2.3.2.5');
    3434
    3535// Load default plugin functions
     
    167167add_action('woocommerce_blocks_loaded', 'icwoorok2_registerPaymentMethods');
    168168
    169 
    170169function smartpaySettingsTab($settings)
    171170{
     
    190189add_filter('woocommerce_get_settings_pages', 'smartpaySettingsTab' );
    191190
    192 
    193191function icwoorok2PaymentSettings( $settings, $current_section ) {
    194192 
     
    247245    ];
    248246
     247    // Set reference for merchantOrderId, select one of the options
     248    $settings[] = [
     249        'name' => __('Set reference for merchantOrderId', 'ic-woo-rabo-omnikassa-2'),
     250        'type' => 'select',
     251        'options' => [
     252            'order_id' => __('Order ID', 'ic-woo-rabo-omnikassa-2'),
     253            'order_number' => __('Order number', 'ic-woo-rabo-omnikassa-2'),
     254        ],
     255        'default' => 'order_id',
     256        'desc' => '<p>'.__('Select which reference should be used for the merchantOrderId field sent to Rabo Smart Pay.', 'ic-woo-rabo-omnikassa-2').'</p>',
     257        'id' => 'icwoorok2_merchant_order_id',
     258    ];
     259
     260    // Use old domain?
    249261    $settings[] = [
    250262        'name' => __('Use old domain', 'ic-woo-rabo-omnikassa-2'),
  • woo-rabo-omnikassa/trunk/includes/functions.php

    r3357693 r3442331  
    33    if (!defined('ICWOOROK2_FUNCTIONS_LOADED')) {
    44        define('ICWOOROK2_FUNCTIONS_LOADED', true);
    5     }
    6 
    7     function icwoorok2_mb_splitAddress($sAddress)
    8     {
    9         // Get everything up to the first number with a regex
    10         $bHasMatch = preg_match('/^[^0-9]*/', $sAddress, $aMatch);
    11 
    12         // If no matching is possible, return the supplied string as the street
    13         if (!$bHasMatch) {
    14             return [$sAddress, '', ''];
    15         }
    16 
    17         // Remove the street from the sAddress.
    18         $sAddress = str_replace($aMatch[0], '', $sAddress);
    19         $sStreetname = trim($aMatch[0]);
    20 
    21         // Nothing left to split, return the streetname alone
    22         if (strlen($sAddress == 0)) {
    23             return [$sStreetname, '', ''];
    24         }
    25 
    26         // Explode sAddress to an array using a multiple explode function
    27         $aAddress = icwoorok2_mb_multiExplodeArray([' ', '-', '|', '&', '/', '_', '\\'], $sAddress);
    28 
    29         // Shift the first element off the array, that is the house number
    30         $iHousenumber = array_shift($aAddress);
    31 
    32         // If the array is empty now, there is no extension.
    33         if (count($aAddress) == 0) {
    34             return [$sStreetname, $iHousenumber, ''];
    35         }
    36 
    37         // Join together the remaining pieces as the extension.
    38         $sExtension = substr(implode(' ', $aAddress), 0, 4);
    39 
    40         return [$sStreetname, $iHousenumber, $sExtension];
    41     }
    42 
    43     function icwoorok2_mb_multiExplodeArray($aDelimiter, $sString)
    44     {
    45         $sInput = str_replace($aDelimiter, $aDelimiter[0], $sString);
    46         $aArray = explode($aDelimiter[0], $sInput);
    47 
    48         return $aArray;
    495    }
    506
     
    9349    }
    9450
     51    function icwoorok2_getGatewayIdByName($paymentMethodName)
     52    {
     53        $gateways = WC()->payment_gateways()->get_available_payment_gateways();
     54
     55        $smartPayGateway = null;
     56
     57        // Combine card payment methods into one gateway ( cards )
     58        if($paymentMethodName === 'MASTERCARD' || $paymentMethodName === 'VISA' || $paymentMethodName === 'V_PAY' || $paymentMethodName === 'MAESTRO') {
     59            $paymentMethodName = 'CARDS';
     60        }
     61
     62        foreach ( $gateways as $id => $gateway ) {
     63            // Check if the id matches the paymnetMethodName with a prefix of 'icwoorok2_'
     64
     65            if ( $id === 'icwoorok2_' . strtolower($paymentMethodName) ) {
     66                $smartPayGateway = $gateway;
     67                break;
     68            }
     69        }
     70
     71        if ( $smartPayGateway ) {
     72            return $smartPayGateway->id;
     73        } else {
     74            return null;
     75        }
     76    }
     77
    9578    function icwoorok2_getDomain()
    9679    {
     
    11295        }
    11396    }
     97
     98    function icwoorok2_getOrderByReference($orderNumber) {
     99
     100        // Try to get order by ID first (fastest method)
     101        $order = wc_get_order($orderNumber);
     102       
     103        // If found and not a different order number, return it
     104        if ($order && $order->get_id() == $orderNumber) {
     105            return $order;
     106        }
     107
     108        // Check if order number matches via order_number meta (for plugins that change order numbers)
     109        if ($order) {
     110            $meta_order_number = $order->get_meta('_order_number', true);
     111            if ($meta_order_number && $meta_order_number == $orderNumber) {
     112                return $order;
     113            }
     114        }
     115       
     116        // Fallback: Query by meta_key (slower, but necessary for custom order number plugins)
     117        $query = new WC_Order_Query([
     118            'limit'      => 1,
     119            'meta_key'   => '_order_number',
     120            'meta_value' => $orderNumber,
     121        ]);
     122       
     123        $orders = $query->get_orders();
     124        return !empty($orders) ? $orders[0] : false;
     125    }
  • woo-rabo-omnikassa/trunk/languages/ic-woo-rabo-omnikassa-2-en_US.po

    r3397011 r3442331  
    22msgstr ""
    33"Project-Id-Version: \n"
    4 "POT-Creation-Date: 2025-09-23 09:08+0200\n"
    5 "PO-Revision-Date: 2025-09-23 09:08+0200\n"
     4"POT-Creation-Date: 2025-12-08 13:33+0100\n"
     5"PO-Revision-Date: 2025-12-08 13:33+0100\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    13 "X-Generator: Poedit 3.7\n"
     13"X-Generator: Poedit 3.8\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-KeywordsList: __;__(\n"
     
    5252msgstr "Cards"
    5353
    54 #: controllers/icwoorok2-controller.php:69
     54#: controllers/icwoorok2-controller.php:74
    5555msgid "Status received from Customer Return: "
    5656msgstr "Status received from Customer Return: "
    5757
    58 #: controllers/icwoorok2-controller.php:69
     58#: controllers/icwoorok2-controller.php:74
    5959msgid ""
    6060"Order updated, check Smart Pay dashboard for status before sending products"
     
    6262"Order updated, check Smart Pay dashboard for status before sending products"
    6363
    64 #: controllers/icwoorok2-controller.php:69
    65 #: controllers/icwoorok2-controller.php:73
     64#: controllers/icwoorok2-controller.php:74
    6665#: controllers/icwoorok2-controller.php:78
     66#: controllers/icwoorok2-controller.php:83
    6767msgid "Payment-method: "
    6868msgstr "Payment-method: "
    6969
    70 #: controllers/icwoorok2-controller.php:73
    7170#: controllers/icwoorok2-controller.php:78
     71#: controllers/icwoorok2-controller.php:83
    7272msgid "Status received from Customer Return:"
    7373msgstr "Status received from Customer Return:"
    7474
    75 #: controllers/icwoorok2-controller.php:73
     75#: controllers/icwoorok2-controller.php:78
    7676msgid ""
    7777"Payment status already received: Order status not updated, check Smart Pay "
     
    8181"dashboard for status"
    8282
    83 #: controllers/icwoorok2-controller.php:78
     83#: controllers/icwoorok2-controller.php:83
    8484msgid "Order not updated, check Smart Pay dashboard for status"
    8585msgstr "Order not updated, check Smart Pay dashboard for status"
    8686
    87 #: controllers/icwoorok2-controller.php:105
     87#: controllers/icwoorok2-controller.php:110
    8888msgid ""
    8989"Rabo Smart Pay webhook works, however is not called correctly. This is "
     
    9393"normally done through a POST with data."
    9494
    95 #: controllers/icwoorok2-controller.php:200
     95#: controllers/icwoorok2-controller.php:215
    9696msgid "Status received from Rabo Smart Pay Webhook: "
    9797msgstr "Status received from Rabo Smart Pay Webhook: "
    9898
    99 #: controllers/icwoorok2-controller.php:208
     99#: controllers/icwoorok2-controller.php:223
    100100msgid "Update order status: Payment Completed"
    101101msgstr "Update order status: Payment Completed"
    102102
    103 #: controllers/icwoorok2-controller.php:222
     103#: controllers/icwoorok2-controller.php:237
    104104msgid "Order status not updated: Payment status already received"
    105105msgstr "Order status not updated: Payment status already received"
    106106
    107 #: controllers/icwoorok2-controller.php:231
     107#: controllers/icwoorok2-controller.php:246
    108108msgid ""
    109109"<br>Payment is cancelled or expired, but will be cancelled automaticly by "
     
    113113"WooCommerce."
    114114
    115 #: controllers/icwoorok2-controller.php:235
     115#: controllers/icwoorok2-controller.php:250
    116116msgid "<br>Update order status: Failed."
    117117msgstr "<br>Update order status: Failed."
    118118
    119 #: controllers/icwoorok2-controller.php:240
     119#: controllers/icwoorok2-controller.php:255
    120120msgid "<br>Update order status: Cancelled"
    121121msgstr "<br>Update order status: Cancelled"
    122122
    123 #: controllers/icwoorok2-controller.php:251
     123#: controllers/icwoorok2-controller.php:266
    124124msgid "<br>No Final status has been found."
    125125msgstr "<br>No Final status has been found."
    126126
    127 #: controllers/icwoorok2-controller.php:256
     127#: controllers/icwoorok2-controller.php:271
    128128msgid "<br>Transaction ID updated."
    129129msgstr "<br>Transaction ID updated."
    130130
    131 #: controllers/icwoorok2-controller.php:266
     131#: controllers/icwoorok2-controller.php:281
    132132msgid ""
    133133"<br>Order doesnt have the correct status to be changed by the payment method."
     
    156156msgstr " via Rabo Smart Pay"
    157157
    158 #: gateways/abstract.php:223 gateways/cards.php:24
     158#: gateways/abstract.php:228 gateways/cards.php:24
    159159msgid "Rabo Smart Pay Documentation"
    160160msgstr "Rabo Smart Pay Documentation"
    161161
    162 #: gateways/abstract.php:225 gateways/cards.php:26
     162#: gateways/abstract.php:230 gateways/cards.php:26
    163163msgid "Go to documentation"
    164164msgstr "Go to documentation"
    165165
    166 #: gateways/abstract.php:230 gateways/cards.php:30
     166#: gateways/abstract.php:235 gateways/cards.php:30
    167167msgid "Rabo Smart Pay - Merchant Settings"
    168168msgstr "Rabo Smart Pay - Merchant Settings"
    169169
    170 #: gateways/abstract.php:232 gateways/cards.php:32
     170#: gateways/abstract.php:237 gateways/cards.php:32
    171171msgid "The Rabo Smart Pay merchant settings can now be found under the"
    172172msgstr "The Rabo Smart Pay merchant settings can now be found under the"
    173173
    174 #: gateways/abstract.php:236 gateways/cards.php:36
     174#: gateways/abstract.php:241 gateways/cards.php:36
    175175msgid "Enable/Disable"
    176176msgstr "Enable/Disable"
    177177
    178 #: gateways/abstract.php:238 gateways/cards.php:38
     178#: gateways/abstract.php:243 gateways/cards.php:38
    179179msgid "Enable Rabo Smart Pay"
    180180msgstr "Enable Rabo Smart Pay"
    181181
    182 #: gateways/abstract.php:243 gateways/cards.php:43
     182#: gateways/abstract.php:248 gateways/cards.php:43
    183183msgid "Title"
    184184msgstr "Title"
    185185
    186 #: gateways/abstract.php:245 gateways/cards.php:45
     186#: gateways/abstract.php:250 gateways/cards.php:45
    187187msgid "This controls the title which the user sees during checkout."
    188188msgstr "This controls the title which the user sees during checkout."
    189189
    190 #: gateways/abstract.php:251 gateways/cards.php:51
     190#: gateways/abstract.php:256 gateways/cards.php:51
    191191msgid "Customer Message after payment select"
    192192msgstr "Customer Message after payment select"
    193193
    194 #: gateways/abstract.php:257 gateways/cards.php:57
     194#: gateways/abstract.php:262 gateways/cards.php:57
    195195msgid "Description on receipt"
    196196msgstr "Description on receipt"
    197197
    198 #: gateways/abstract.php:390
     198#: gateways/abstract.php:373
    199199msgid "Rabo Smart Pay payment started with:"
    200200msgstr "Rabo Smart Pay payment started with:"
    201201
    202 #: gateways/abstract.php:390
     202#: gateways/abstract.php:373
    203203msgid "For amount: "
    204204msgstr "For amount: "
    205205
    206 #: gateways/abstract.php:406
     206#: gateways/abstract.php:389
    207207msgid "Smart Pay returned an error! Code:"
    208208msgstr "Smart Pay returned an error! Code:"
    209209
    210 #: gateways/abstract.php:406
     210#: gateways/abstract.php:389
    211211msgid "Check our FAQ:"
    212212msgstr "Check our FAQ:"
    213213
    214 #: gateways/abstract.php:406
     214#: gateways/abstract.php:389
    215215msgid "Rabo Smart Pay Error codes"
    216216msgstr "Rabo Smart Pay Error codes"
    217217
    218 #: gateways/abstract.php:414
     218#: gateways/abstract.php:397
    219219msgid ""
    220220"Order announcement could not be decoded, something wrong with the data "
     
    224224"received? Error: "
    225225
    226 #: gateways/abstract.php:416
     226#: gateways/abstract.php:399
    227227msgid "Something went wrong, please try again!"
    228228msgstr "Something went wrong, please try again!"
    229229
    230 #: gateways/abstract.php:419 gateways/abstract.php:421
     230#: gateways/abstract.php:402 gateways/abstract.php:404
    231231msgid "No response received from the Rabobank. Received status code: "
    232232msgstr "No response received from the Rabobank. Received status code: "
    233233
    234 #: gateways/abstract.php:430
     234#: gateways/abstract.php:413
    235235msgid "Invalid order ID."
    236236msgstr "Invalid order ID."
    237237
    238 #: gateways/abstract.php:435
     238#: gateways/abstract.php:418
    239239msgid "This order was not paid with this gateway."
    240240msgstr "This order was not paid with this gateway."
    241241
    242 #: gateways/abstract.php:440
     242#: gateways/abstract.php:423
    243243msgid "Invalid refund amount."
    244244msgstr "Invalid refund amount."
    245245
    246 #: gateways/abstract.php:453 gateways/abstract.php:459
     246#: gateways/abstract.php:436 gateways/abstract.php:442
    247247msgid ""
    248248"No transaction ID found for this order, wait for the webhook to be triggered."
     
    250250"No transaction ID found for this order, wait for the webhook to be triggered."
    251251
    252 #: gateways/abstract.php:485
     252#: gateways/abstract.php:468
    253253msgid "Error retrieving refund details from Rabobank: "
    254254msgstr "Error retrieving refund details from Rabobank: "
    255255
    256 #: gateways/abstract.php:499 gateways/abstract.php:506
    257 #: gateways/abstract.php:595 gateways/abstract.php:602
    258 #: gateways/abstract.php:679 gateways/abstract.php:686
     256#: gateways/abstract.php:482 gateways/abstract.php:489
     257#: gateways/abstract.php:578 gateways/abstract.php:585
     258#: gateways/abstract.php:662 gateways/abstract.php:669
    259259msgid "Error placing the refund at Rabobank, received status code: "
    260260msgstr "Error placing the refund at Rabobank, received status code: "
    261261
    262 #: gateways/abstract.php:511 gateways/abstract.php:518
    263 #: gateways/abstract.php:590
     262#: gateways/abstract.php:494 gateways/abstract.php:501
     263#: gateways/abstract.php:573
    264264msgid "No response received from the Rabobank, we got status code "
    265265msgstr "No response received from the Rabobank, we got status code "
    266266
    267 #: gateways/abstract.php:525 gateways/abstract.php:532
     267#: gateways/abstract.php:508 gateways/abstract.php:515
    268268msgid "Invalid response received from the Rabobank."
    269269msgstr "Invalid response received from the Rabobank."
    270270
    271 #: gateways/abstract.php:540 gateways/abstract.php:542
     271#: gateways/abstract.php:523 gateways/abstract.php:525
    272272msgid "Refund amount exceeds the maximum refundable amount."
    273273msgstr "Refund amount exceeds the maximum refundable amount."
    274274
    275 #: gateways/abstract.php:583
     275#: gateways/abstract.php:566
    276276msgid "Error placing the refund at Rabobank: "
    277277msgstr "Error placing the refund at Rabobank: "
    278278
    279 #: gateways/abstract.php:606 gateways/abstract.php:613
     279#: gateways/abstract.php:589 gateways/abstract.php:596
    280280msgid "No response received when placing the refund at Rabobank."
    281281msgstr "No response received when placing the refund at Rabobank."
    282282
    283 #: gateways/abstract.php:620 gateways/abstract.php:627
     283#: gateways/abstract.php:603 gateways/abstract.php:610
    284284msgid "Invalid response received from Rabobank when placing the refund."
    285285msgstr "Invalid response received from Rabobank when placing the refund."
    286286
    287 #: gateways/abstract.php:632 gateways/abstract.php:639
     287#: gateways/abstract.php:615 gateways/abstract.php:622
    288288msgid "No refund ID received from Rabobank."
    289289msgstr "No refund ID received from Rabobank."
    290290
    291 #: gateways/abstract.php:667
     291#: gateways/abstract.php:650
    292292msgid "Error checking the refund status at Rabobank: "
    293293msgstr "Error checking the refund status at Rabobank: "
    294294
    295 #: gateways/abstract.php:690 gateways/abstract.php:697
     295#: gateways/abstract.php:673 gateways/abstract.php:680
    296296msgid "Could not retrieve refund status from Rabobank."
    297297msgstr "Could not retrieve refund status from Rabobank."
    298298
    299 #: gateways/abstract.php:705
     299#: gateways/abstract.php:688
    300300msgid "Refund successful for transaction"
    301301msgstr "Refund successful for transaction"
    302302
    303 #: gateways/abstract.php:709
     303#: gateways/abstract.php:692
    304304msgid ""
    305305"Refund request has been submitted to Rabobank and is awaiting processing"
     
    307307"Refund request has been submitted to Rabobank and is awaiting processing"
    308308
    309 #: gateways/abstract.php:713
     309#: gateways/abstract.php:696
    310310msgid "Refund failed for transaction"
    311311msgstr "Refund failed for transaction"
    312312
    313 #: gateways/abstract.php:715
     313#: gateways/abstract.php:698
    314314msgid "Refund failed."
    315315msgstr "Refund failed."
     
    397397"Pay."
    398398
    399 #: ic-woo-omnikassa-2.php:250
     399#: ic-woo-omnikassa-2.php:251
     400msgid "Set reference for merchantOrderId"
     401msgstr "Set reference for merchantOrderId"
     402
     403#: ic-woo-omnikassa-2.php:254
     404msgid "Order ID"
     405msgstr "Order ID"
     406
     407#: ic-woo-omnikassa-2.php:255
     408msgid "Order number"
     409msgstr "Order number"
     410
     411#: ic-woo-omnikassa-2.php:258
     412msgid ""
     413"Select which reference should be used for the merchantOrderId field sent to "
     414"Rabo Smart Pay."
     415msgstr ""
     416"Select which reference should be used for the merchantOrderId field sent to "
     417"Rabo Smart Pay."
     418
     419#: ic-woo-omnikassa-2.php:264
    400420msgid "Use old domain"
    401421msgstr "Use old domain"
    402422
    403 #: ic-woo-omnikassa-2.php:252
     423#: ic-woo-omnikassa-2.php:266
    404424msgid "Enable the the use of the old domain, instead of the new one."
    405425msgstr "Enable the the use of the old domain, instead of the new one."
    406426
    407 #: ic-woo-omnikassa-2.php:254
     427#: ic-woo-omnikassa-2.php:268
    408428msgid ""
    409429"Enable the the use of the old domain, instead of the new one. Keep in mind, "
     
    413433"some features may not be available when using the old domain."
    414434
    415 #: ic-woo-omnikassa-2.php:259
     435#: ic-woo-omnikassa-2.php:273
    416436msgid "Debug webhook and refunds"
    417437msgstr "Debug webhook and refunds"
    418438
    419 #: ic-woo-omnikassa-2.php:261
     439#: ic-woo-omnikassa-2.php:275
    420440msgid "Enable the webhook and refunds debug"
    421441msgstr "Enable the webhook and refunds debug"
    422442
    423 #: ic-woo-omnikassa-2.php:263
     443#: ic-woo-omnikassa-2.php:277
    424444msgid ""
    425445"Additional logging will be activated and placed in the debug.log of "
  • woo-rabo-omnikassa/trunk/languages/ic-woo-rabo-omnikassa-2-nl_NL.po

    r3397011 r3442331  
    22msgstr ""
    33"Project-Id-Version: IC Rabo OmniKassa for WooCommerce\n"
    4 "POT-Creation-Date: 2025-09-23 09:08+0200\n"
    5 "PO-Revision-Date: 2025-09-23 09:09+0200\n"
     4"POT-Creation-Date: 2025-12-08 13:34+0100\n"
     5"PO-Revision-Date: 2025-12-08 13:35+0100\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    13 "X-Generator: Poedit 3.7\n"
     13"X-Generator: Poedit 3.8\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-KeywordsList: __\n"
     
    5252msgstr "Creditcards"
    5353
    54 #: controllers/icwoorok2-controller.php:69
     54#: controllers/icwoorok2-controller.php:74
    5555msgid "Status received from Customer Return: "
    5656msgstr "Status ontvangen via Klant Return: "
    5757
    58 #: controllers/icwoorok2-controller.php:69
     58#: controllers/icwoorok2-controller.php:74
    5959msgid ""
    6060"Order updated, check Smart Pay dashboard for status before sending products"
     
    6363"je producten verzendt"
    6464
    65 #: controllers/icwoorok2-controller.php:69
    66 #: controllers/icwoorok2-controller.php:73
     65#: controllers/icwoorok2-controller.php:74
    6766#: controllers/icwoorok2-controller.php:78
     67#: controllers/icwoorok2-controller.php:83
    6868msgid "Payment-method: "
    6969msgstr "Betaalmethode: "
    7070
    71 #: controllers/icwoorok2-controller.php:73
    7271#: controllers/icwoorok2-controller.php:78
     72#: controllers/icwoorok2-controller.php:83
    7373msgid "Status received from Customer Return:"
    7474msgstr "Status ontvangen via Klant Return:"
    7575
    76 #: controllers/icwoorok2-controller.php:73
     76#: controllers/icwoorok2-controller.php:78
    7777msgid ""
    7878"Payment status already received: Order status not updated, check Smart Pay "
     
    8282"Smart Pay dashboard voor de status"
    8383
    84 #: controllers/icwoorok2-controller.php:78
     84#: controllers/icwoorok2-controller.php:83
    8585msgid "Order not updated, check Smart Pay dashboard for status"
    8686msgstr "Bestelling niet aangepast, raadpleeg uw Rabo Smart Pay dashboard"
    8787
    88 #: controllers/icwoorok2-controller.php:105
     88#: controllers/icwoorok2-controller.php:110
    8989msgid ""
    9090"Rabo Smart Pay webhook works, however is not called correctly. This is "
     
    9494"gebeurt normaal gesproken via een POST met gegevens."
    9595
    96 #: controllers/icwoorok2-controller.php:200
     96#: controllers/icwoorok2-controller.php:215
    9797msgid "Status received from Rabo Smart Pay Webhook: "
    9898msgstr "Status ontvangen van de Rabo Smart Pay webhook: "
    9999
    100 #: controllers/icwoorok2-controller.php:208
     100#: controllers/icwoorok2-controller.php:223
    101101msgid "Update order status: Payment Completed"
    102102msgstr "Update order status: Betaling Compleet"
    103103
    104 #: controllers/icwoorok2-controller.php:222
     104#: controllers/icwoorok2-controller.php:237
    105105msgid "Order status not updated: Payment status already received"
    106106msgstr "Bestelstatus niet bijgewerkt: betalingsstatus al ontvangen"
    107107
    108 #: controllers/icwoorok2-controller.php:231
     108#: controllers/icwoorok2-controller.php:246
    109109msgid ""
    110110"<br>Payment is cancelled or expired, but will be cancelled automaticly by "
     
    114114"door WooCommerce."
    115115
    116 #: controllers/icwoorok2-controller.php:235
     116#: controllers/icwoorok2-controller.php:250
    117117msgid "<br>Update order status: Failed."
    118118msgstr "<br>Update order status: Mislukt."
    119119
    120 #: controllers/icwoorok2-controller.php:240
     120#: controllers/icwoorok2-controller.php:255
    121121msgid "<br>Update order status: Cancelled"
    122122msgstr "<br>Update order status: Geannuleerd"
    123123
    124 #: controllers/icwoorok2-controller.php:251
     124#: controllers/icwoorok2-controller.php:266
    125125msgid "<br>No Final status has been found."
    126126msgstr "<br>Geen eindstatus gevonden."
    127127
    128 #: controllers/icwoorok2-controller.php:256
     128#: controllers/icwoorok2-controller.php:271
    129129msgid "<br>Transaction ID updated."
    130130msgstr "<br>Transaction ID is bijgewerkt."
    131131
    132 #: controllers/icwoorok2-controller.php:266
     132#: controllers/icwoorok2-controller.php:281
    133133msgid ""
    134134"<br>Order doesnt have the correct status to be changed by the payment method."
     
    159159msgstr " via Rabo Smart Pay"
    160160
    161 #: gateways/abstract.php:223 gateways/cards.php:24
     161#: gateways/abstract.php:228 gateways/cards.php:24
    162162msgid "Rabo Smart Pay Documentation"
    163163msgstr "Rabo Smart Pay documentatie"
    164164
    165 #: gateways/abstract.php:225 gateways/cards.php:26
     165#: gateways/abstract.php:230 gateways/cards.php:26
    166166msgid "Go to documentation"
    167167msgstr "Ga naar documentatie"
    168168
    169 #: gateways/abstract.php:230 gateways/cards.php:30
     169#: gateways/abstract.php:235 gateways/cards.php:30
    170170msgid "Rabo Smart Pay - Merchant Settings"
    171171msgstr "Rabo Smart Pay - Configuratie instellingen"
    172172
    173 #: gateways/abstract.php:232 gateways/cards.php:32
     173#: gateways/abstract.php:237 gateways/cards.php:32
    174174msgid "The Rabo Smart Pay merchant settings can now be found under the"
    175175msgstr "De Rabo Smart Pay configuratie instellingen kun je vinden onder"
    176176
    177 #: gateways/abstract.php:236 gateways/cards.php:36
     177#: gateways/abstract.php:241 gateways/cards.php:36
    178178msgid "Enable/Disable"
    179179msgstr "Actief/Inactief"
    180180
    181 #: gateways/abstract.php:238 gateways/cards.php:38
     181#: gateways/abstract.php:243 gateways/cards.php:38
    182182msgid "Enable Rabo Smart Pay"
    183183msgstr "Activeer Rabo Smart Pay"
    184184
    185 #: gateways/abstract.php:243 gateways/cards.php:43
     185#: gateways/abstract.php:248 gateways/cards.php:43
    186186msgid "Title"
    187187msgstr "Titel"
    188188
    189 #: gateways/abstract.php:245 gateways/cards.php:45
     189#: gateways/abstract.php:250 gateways/cards.php:45
    190190msgid "This controls the title which the user sees during checkout."
    191191msgstr "Stel de titel in wat de klant ziet in de checkout."
    192192
    193 #: gateways/abstract.php:251 gateways/cards.php:51
     193#: gateways/abstract.php:256 gateways/cards.php:51
    194194msgid "Customer Message after payment select"
    195195msgstr "Klantbericht na selectie betaalmethode"
    196196
    197 #: gateways/abstract.php:257 gateways/cards.php:57
     197#: gateways/abstract.php:262 gateways/cards.php:57
    198198msgid "Description on receipt"
    199199msgstr "Omschrijving op afschrift"
    200200
    201 #: gateways/abstract.php:390
     201#: gateways/abstract.php:373
    202202msgid "Rabo Smart Pay payment started with:"
    203203msgstr "Rabo Smart Pay betaling gestart met:"
    204204
    205 #: gateways/abstract.php:390
     205#: gateways/abstract.php:373
    206206msgid "For amount: "
    207207msgstr "Voor bedrag: "
    208208
    209 #: gateways/abstract.php:406
     209#: gateways/abstract.php:389
    210210msgid "Smart Pay returned an error! Code:"
    211211msgstr "Smart Pay gaf een error terug! Code:"
    212212
    213 #: gateways/abstract.php:406
     213#: gateways/abstract.php:389
    214214msgid "Check our FAQ:"
    215215msgstr "Bekijk onze FAQ:"
    216216
    217 #: gateways/abstract.php:406
     217#: gateways/abstract.php:389
    218218msgid "Rabo Smart Pay Error codes"
    219219msgstr "Rabo Smart Pay Error codes"
    220220
    221 #: gateways/abstract.php:414
     221#: gateways/abstract.php:397
    222222msgid ""
    223223"Order announcement could not be decoded, something wrong with the data "
     
    227227"ontvangen data? Error: "
    228228
    229 #: gateways/abstract.php:416
     229#: gateways/abstract.php:399
    230230msgid "Something went wrong, please try again!"
    231231msgstr "Er is iets mis gegaan, probeer het opnieuw!"
    232232
    233 #: gateways/abstract.php:419 gateways/abstract.php:421
     233#: gateways/abstract.php:402 gateways/abstract.php:404
    234234msgid "No response received from the Rabobank. Received status code: "
    235235msgstr "Geen reactie ontvangen van de Rabobank. Statuscode ontvangen: "
    236236
    237 #: gateways/abstract.php:430
     237#: gateways/abstract.php:413
    238238msgid "Invalid order ID."
    239239msgstr "Onjuist bestel ID."
    240240
    241 #: gateways/abstract.php:435
     241#: gateways/abstract.php:418
    242242msgid "This order was not paid with this gateway."
    243243msgstr "De bestelling is niet betaald met deze betaalmethode."
    244244
    245 #: gateways/abstract.php:440
     245#: gateways/abstract.php:423
    246246msgid "Invalid refund amount."
    247247msgstr "Onjuist restitutie bedrag."
    248248
    249 #: gateways/abstract.php:453 gateways/abstract.php:459
     249#: gateways/abstract.php:436 gateways/abstract.php:442
    250250msgid ""
    251251"No transaction ID found for this order, wait for the webhook to be triggered."
     
    254254"aangeroepen."
    255255
    256 #: gateways/abstract.php:485
     256#: gateways/abstract.php:468
    257257msgid "Error retrieving refund details from Rabobank: "
    258258msgstr "Fout bij het controleren van de terugbetalingsstatus bij de Rabobank: "
    259259
    260 #: gateways/abstract.php:499 gateways/abstract.php:506
    261 #: gateways/abstract.php:595 gateways/abstract.php:602
    262 #: gateways/abstract.php:679 gateways/abstract.php:686
     260#: gateways/abstract.php:482 gateways/abstract.php:489
     261#: gateways/abstract.php:578 gateways/abstract.php:585
     262#: gateways/abstract.php:662 gateways/abstract.php:669
    263263msgid "Error placing the refund at Rabobank, received status code: "
    264264msgstr "Fout bij het plaatsen van de terugbetaling bij de Rabobank: "
    265265
    266 #: gateways/abstract.php:511 gateways/abstract.php:518
    267 #: gateways/abstract.php:590
     266#: gateways/abstract.php:494 gateways/abstract.php:501
     267#: gateways/abstract.php:573
    268268msgid "No response received from the Rabobank, we got status code "
    269269msgstr "Geen antwoord ontvangen van de Rabobank, we kregen statuscode "
    270270
    271 #: gateways/abstract.php:525 gateways/abstract.php:532
     271#: gateways/abstract.php:508 gateways/abstract.php:515
    272272msgid "Invalid response received from the Rabobank."
    273273msgstr "Ongeldige reactie ontvangen van de Rabobank."
    274274
    275 #: gateways/abstract.php:540 gateways/abstract.php:542
     275#: gateways/abstract.php:523 gateways/abstract.php:525
    276276msgid "Refund amount exceeds the maximum refundable amount."
    277277msgstr "Het restitutiebedrag is hoger dan het maximale restitutiebedrag."
    278278
    279 #: gateways/abstract.php:583
     279#: gateways/abstract.php:566
    280280msgid "Error placing the refund at Rabobank: "
    281281msgstr "Fout bij het plaatsen van de terugbetaling bij de Rabobank: "
    282282
    283 #: gateways/abstract.php:606 gateways/abstract.php:613
     283#: gateways/abstract.php:589 gateways/abstract.php:596
    284284msgid "No response received when placing the refund at Rabobank."
    285285msgstr ""
    286286"Geen reactie ontvangen bij het plaatsen van de terugbetaling bij de Rabobank."
    287287
    288 #: gateways/abstract.php:620 gateways/abstract.php:627
     288#: gateways/abstract.php:603 gateways/abstract.php:610
    289289msgid "Invalid response received from Rabobank when placing the refund."
    290290msgstr ""
     
    292292"terugbetaling."
    293293
    294 #: gateways/abstract.php:632 gateways/abstract.php:639
     294#: gateways/abstract.php:615 gateways/abstract.php:622
    295295msgid "No refund ID received from Rabobank."
    296296msgstr "Geen terugbetaling ID ontvangen van de Rabobank."
    297297
    298 #: gateways/abstract.php:667
     298#: gateways/abstract.php:650
    299299msgid "Error checking the refund status at Rabobank: "
    300300msgstr "Fout bij het controleren van de terugbetalingsstatus bij de Rabobank: "
    301301
    302 #: gateways/abstract.php:690 gateways/abstract.php:697
     302#: gateways/abstract.php:673 gateways/abstract.php:680
    303303msgid "Could not retrieve refund status from Rabobank."
    304304msgstr "Kan terugbetalingsstatus niet ophalen bij Rabobank."
    305305
    306 #: gateways/abstract.php:705
     306#: gateways/abstract.php:688
    307307msgid "Refund successful for transaction"
    308308msgstr "Terugbetaling geslaagd voor transactie"
    309309
    310 #: gateways/abstract.php:709
     310#: gateways/abstract.php:692
    311311msgid ""
    312312"Refund request has been submitted to Rabobank and is awaiting processing"
    313313msgstr "Terugbetalen is ingediend bij Rabobank en wacht op verwerking"
    314314
    315 #: gateways/abstract.php:713
     315#: gateways/abstract.php:696
    316316msgid "Refund failed for transaction"
    317317msgstr "Terugbetaling mislukt voor transactie"
    318318
    319 #: gateways/abstract.php:715
     319#: gateways/abstract.php:698
    320320msgid "Refund failed."
    321321msgstr "Terugbetaling mislukt."
     
    403403"Rabo Smart Pay."
    404404
    405 #: ic-woo-omnikassa-2.php:250
     405#: ic-woo-omnikassa-2.php:251
     406msgid "Set reference for merchantOrderId"
     407msgstr "Referentie instellen voor merchantOrderId"
     408
     409#: ic-woo-omnikassa-2.php:254
     410msgid "Order ID"
     411msgstr "Bestelling ID"
     412
     413#: ic-woo-omnikassa-2.php:255
     414msgid "Order number"
     415msgstr "Bestelnummer"
     416
     417#: ic-woo-omnikassa-2.php:258
     418msgid ""
     419"Select which reference should be used for the merchantOrderId field sent to "
     420"Rabo Smart Pay."
     421msgstr ""
     422"Selecteer welke referentie moet worden gebruikt voor het veld "
     423"merchantOrderId dat naar Rabo Smart Pay wordt verzonden."
     424
     425#: ic-woo-omnikassa-2.php:264
    406426msgid "Use old domain"
    407427msgstr "Gebruik oud domein"
    408428
    409 #: ic-woo-omnikassa-2.php:252
     429#: ic-woo-omnikassa-2.php:266
    410430msgid "Enable the the use of the old domain, instead of the new one."
    411431msgstr "Schakel het gebruik van het oude domein in, in plaats van het nieuwe."
    412432
    413 #: ic-woo-omnikassa-2.php:254
     433#: ic-woo-omnikassa-2.php:268
    414434msgid ""
    415435"Enable the the use of the old domain, instead of the new one. Keep in mind, "
     
    420440"het oude domein gebruikt."
    421441
    422 #: ic-woo-omnikassa-2.php:259
     442#: ic-woo-omnikassa-2.php:273
    423443msgid "Debug webhook and refunds"
    424444msgstr "Debug webhook en terugbetalingen"
    425445
    426 #: ic-woo-omnikassa-2.php:261
     446#: ic-woo-omnikassa-2.php:275
    427447msgid "Enable the webhook and refunds debug"
    428448msgstr "De debug voor webhooks en restituties inschakelen"
    429449
    430 #: ic-woo-omnikassa-2.php:263
     450#: ic-woo-omnikassa-2.php:277
    431451msgid ""
    432452"Additional logging will be activated and placed in the debug.log of "
  • woo-rabo-omnikassa/trunk/readme.txt

    r3409189 r3442331  
    77Requires at least: 5.0.7
    88Tested up to: 6.9
    9 Stable tag: 2.3.2.4
     9Stable tag: 2.3.2.5
    1010Requires PHP: 7.4.30
    1111License: GPLv2 or later
     
    4343If you have any questions about Rabo Smart Pay you can contact Smart Pay via phone or email.
    4444You can find their contact information via the following link: https://www.rabobank.nl/smartpay
     45
     46= What plugins are supported for the Order Numbers? =
     47
     48In update 2.3.2.5 we introduced support to select the desired Merchant Order ID which is send to Rabo Smart Pay. By default this was the order ID of the order.
     49
     50There are plugins that allow for custom/sequential order numbers, which could be used when selecting the Order Number reference.
     51The plugins that are supported are the following;
     52
     531. Sequential Order Numbers Pro for WooCommerce ( Skyverge )
     542. Sequential Order Number for WooCommerce ( WebToffee )
     55
    4556
    4657= Transactions aren't updating? =
     
    115126== Changelog ==
    116127
     128= 2.3.2.5 =
     129* Added shopperBankstatementReference to the order announcement, which contains the Order Number.
     130* Added option to select the reference to be used for the merchantOrderId to Rabo Smart Pay (Order ID or Order Number).
     131* Fixed issue where sometimes the refund option would not be there for a payment.
     132* Checked compatibility with WooCommerce 10.4.3.
     133
    117134= 2.3.2.4 =
    118135* Checked compatibility with WooCommerce 10.3.6.
     
    212229* FORCE_ALWAYS changed to FORCE_ONCE.
    213230* Checked compatibility with Wordpress 6.3 and Woocommerce 8.0.2.
    214 
    215231
    216232= 2.2.8.5 =
Note: See TracChangeset for help on using the changeset viewer.