Plugin Directory

Changeset 3253978


Ignore:
Timestamp:
03/11/2025 11:35:15 AM (11 months ago)
Author:
hsuvant
Message:

Version 1.1.6

Location:
visma-pay-payment-gateway/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • visma-pay-payment-gateway/trunk/build/blocks.asset.php

    r2974593 r3253978  
    1 <?php return array('dependencies' => array('wp-element', 'wp-i18n'), 'version' => '2c580ae7eb866b0435e6');
     1<?php return array('dependencies' => array('wp-element', 'wp-i18n'), 'version' => '483267787891ad473396');
  • visma-pay-payment-gateway/trunk/build/blocks.js

    r2974593 r3253978  
    1 !function(){"use strict";var e=window.wp.element,t=window.wp.i18n;const{registerPaymentMethod:a}=wc.wcBlocksRegistry,{getSetting:n}=wc.wcSettings,m=n("vismapay_data",{}),l=({embed:t,description:a,paymentDescription:n})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,a),t&&n&&(0,e.createElement)("p",null,n)),r=()=>(0,e.createElement)("div",{className:"woocommerce-error"},(0,e.createElement)("strong",null,(0,t.__)("No payment methods available for the currency: ","visma-pay-payment-gateway")+m.currency)),c=({index:t,method:a,selected:n,onSelect:m})=>{const l=`${a.group}-${t}`,r=a.selected_value;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{onClick:()=>m(l,r),className:n===l?"selected bank-button":"bank-button"},(0,e.createElement)("img",{alt:a.name,src:a.img_src})))},s=({groupName:t,methods:a,selected:n,onSelect:m})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,t),a.map(((t,a)=>(0,e.createElement)(c,{key:a,index:a,method:t,selected:n,onSelect:m}))),(0,e.createElement)("div",{style:{display:"block",clear:"both"}})),o=({methods:a,selected:n,onSelect:m})=>{const l=[{key:"banks",groupName:(0,t.__)("Internet banking","visma-pay-payment-gateway")},{key:"creditcards",groupName:(0,t.__)("Payment card","visma-pay-payment-gateway")},{key:"wallets",groupName:(0,t.__)("Wallet services","visma-pay-payment-gateway")},{key:"creditinvoices",groupName:(0,t.__)("Invoice or part payment","visma-pay-payment-gateway")}];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{id:"visma-pay-bank-payments"},l.map((t=>{let l=a.filter((e=>e.group===t.key));return 0!==l.length&&(0,e.createElement)(s,{key:t.key,groupName:t.groupName,methods:l,selected:n,onSelect:m})}))))},i=t=>{const{eventRegistration:a,emitResponse:n,components:c}=t,{onPaymentSetup:s,onCheckoutFail:i}=a,{responseTypes:p}=n,{LoadingMask:y}=c,[d,u]=(0,e.useState)(null),[g,E]=(0,e.useState)(!1),[v,h]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{const e=s((async()=>(h(!0),{type:p.SUCCESS,meta:{paymentMethodData:{payment_method:"visma_pay",visma_pay_selected_bank:g}}})));return()=>{e()}}),[p.SUCCESS,s,g]),(0,e.useEffect)((()=>{const e=i((()=>(h(!1),!0)));return()=>{e()}}),[i]),(0,e.createElement)(y,{isLoading:v,showSpinner:!0},(0,e.createElement)(l,{embed:m.embed,description:m.description,paymentDescription:m.paymentDescription}),m.embed&&m.paymentMethods&&m.paymentMethods.length>0?(0,e.createElement)(o,{methods:m.paymentMethods,selected:d,onSelect:(e,t)=>{u(e),E(t)}}):(0,e.createElement)(r,null))};a({name:"visma_pay",label:(0,e.createElement)((t=>{const{PaymentMethodLabel:a}=t.components;return(0,e.createElement)(a,{text:m.title})}),null),ariaLabel:m.title,content:(0,e.createElement)(i,null),edit:(0,e.createElement)(i,null),canMakePayment:()=>!0,paymentMethodId:"visma_pay",supports:{features:m.supports}})}();
     1(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,{registerPaymentMethod:a}=wc.wcBlocksRegistry,{getSetting:n}=wc.wcSettings,m=n("vismapay_data",{}),l=({embed:t,description:a,paymentDescription:n})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,a),t&&n&&(0,e.createElement)("p",null,n)),r=()=>(0,e.createElement)("div",{className:"woocommerce-error"},(0,e.createElement)("strong",null,(0,t.__)("No payment methods available for the currency: ","visma-pay-payment-gateway")+m.currency)),c=({index:t,method:a,selected:n,onSelect:m})=>{const l=`${a.group}-${t}`,r=a.selected_value;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{onClick:()=>m(l,r),className:n===l?"selected bank-button":"bank-button"},(0,e.createElement)("img",{alt:a.name,src:a.img_src})))},s=({groupName:t,methods:a,selected:n,onSelect:m})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,t),a.map(((t,a)=>(0,e.createElement)(c,{key:a,index:a,method:t,selected:n,onSelect:m}))),(0,e.createElement)("div",{style:{display:"block",clear:"both"}})),o=({methods:a,selected:n,onSelect:m})=>{const l=[{key:"banks",groupName:(0,t.__)("Internet banking","visma-pay-payment-gateway")},{key:"creditcards",groupName:(0,t.__)("Payment card","visma-pay-payment-gateway")},{key:"wallets",groupName:(0,t.__)("Wallet services","visma-pay-payment-gateway")},{key:"creditinvoices",groupName:(0,t.__)("Invoice or part payment","visma-pay-payment-gateway")}];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{id:"visma-pay-bank-payments"},l.map((t=>{let l=a.filter((e=>e.group===t.key));return 0!==l.length&&(0,e.createElement)(s,{key:t.key,groupName:t.groupName,methods:l,selected:n,onSelect:m})}))))},p=t=>{const{eventRegistration:a,emitResponse:n,components:c}=t,{onPaymentSetup:s,onCheckoutFail:p}=a,{responseTypes:i}=n,{LoadingMask:y}=c,[d,u]=(0,e.useState)(null),[g,E]=(0,e.useState)(!1),[h,v]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{const e=s((async()=>(v(!0),{type:i.SUCCESS,meta:{paymentMethodData:{payment_method:"visma_pay",visma_pay_selected_bank:g}}})));return()=>{e()}}),[i.SUCCESS,s,g]),(0,e.useEffect)((()=>{const e=p((()=>(v(!1),!0)));return()=>{e()}}),[p]),(0,e.createElement)(y,{isLoading:h,showSpinner:!0},(0,e.createElement)(l,{embed:m.embed,description:m.description,paymentDescription:m.paymentDescription}),m.embed&&m.paymentMethods&&m.paymentMethods.length>0?(0,e.createElement)(o,{methods:m.paymentMethods,selected:d,onSelect:(e,t)=>{u(e),E(t)}}):(0,e.createElement)(r,null))};a({name:"visma_pay",label:(0,e.createElement)((t=>{const{PaymentMethodLabel:a}=t.components;return(0,e.createElement)(a,{text:m.title})}),null),ariaLabel:m.title,content:(0,e.createElement)(p,null),edit:(0,e.createElement)(p,null),canMakePayment:()=>!0,paymentMethodId:"visma_pay",supports:{features:m.supports}})})();
  • visma-pay-payment-gateway/trunk/includes/lib/Visma/VismaPay.php

    r3149116 r3253978  
    6767            $payment_data['plugin_info'] .= '0';
    6868
    69         $payment_data['plugin_info'] .= '|1.1.5';
     69        $payment_data['plugin_info'] .= '|1.1.6';
    7070
    7171        return $this->makeRequest($url, $payment_data);
  • visma-pay-payment-gateway/trunk/languages/visma-pay-payment-gateway-fi-0a194271922d454324b7e88e0bfed673.json

    r2974593 r3253978  
    1 {"translation-revision-date":"2023-09-27 10:29+0300","generator":"WP-CLI\/2.8.1","source":"build\/blocks.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fi","plural-forms":"nplurals=2; plural=n != 1;"},"No payment methods available for the currency: ":["Ei tuettuja maksutapoja valuutalle:"],"Internet banking":["Verkkopankkimaksu"],"Payment card":["Korttimaksu"],"Wallet services":["Lompakkopalvelut"],"Invoice or part payment":["Lasku tai osamaksu"]}}}
     1{"translation-revision-date":"2025-03-06 14:21+0200","generator":"WP-CLI\/2.11.0","source":"build\/blocks.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fi","plural-forms":"nplurals=2; plural=n != 1;"},"No payment methods available for the currency: ":["Ei tuettuja maksutapoja valuutalle: "],"Internet banking":["Verkkopankkimaksu"],"Payment card":["Korttimaksu"],"Wallet services":["Lompakkopalvelut"],"Invoice or part payment":["Lasku tai osamaksu"]}}}
  • visma-pay-payment-gateway/trunk/languages/visma-pay-payment-gateway-fi.po

    r2974593 r3253978  
    55"gateway\n"
    66"POT-Creation-Date: 2023-10-03T13:10:45+00:00\n"
    7 "PO-Revision-Date: 2023-10-03 16:12+0300\n"
     7"PO-Revision-Date: 2025-03-06 14:21+0200\n"
    88"Last-Translator: \n"
    99"Language-Team: Suomi\n"
     
    1313"Content-Transfer-Encoding: 8bit\n"
    1414"Plural-Forms: nplurals=2; plural=n != 1;\n"
    15 "X-Generator: Poedit 3.4\n"
     15"X-Generator: Poedit 3.5\n"
    1616"X-Loco-Version: 2.5.2; wp-5.8\n"
    1717
     
    8484#: visma-pay-payment-gateway.php:177
    8585msgid "Second part of description"
    86 msgstr "Kuvauksen toinen osa."
     86msgstr "Kuvauksen toinen osa"
    8787
    8888#: visma-pay-payment-gateway.php:178
     
    9494#: visma-pay-payment-gateway.php:180
    9595msgid "Choose your payment method and click Pay for Order"
    96 msgstr "Valitse maksutapa ja klikkaa Lähetä Tilaus -painiketta."
     96msgstr "Valitse maksutapa ja klikkaa Lähetä Tilaus -painiketta"
    9797
    9898#: visma-pay-payment-gateway.php:183
     
    169169msgstr ""
    170170"Maksa Tilaus: Siirtää asiakkaan sivulle jossa hän voi yrittää uudelleen "
    171 "maksamattoman tilauksensa maksamista."
     171"maksamattoman tilauksensa maksamista. "
    172172
    173173#: visma-pay-payment-gateway.php:223
     
    269269#: visma-pay-payment-gateway.php:330 build/blocks.js:1
    270270msgid "No payment methods available for the currency: "
    271 msgstr "Ei tuettuja maksutapoja valuutalle:"
     271msgstr "Ei tuettuja maksutapoja valuutalle: "
    272272
    273273#: visma-pay-payment-gateway.php:344 build/blocks.js:1
     
    290290#: visma-pay-payment-gateway.php:716
    291291msgid "Visma Pay: No payment methods available for the currency: "
    292 msgstr "Visma Pay: Ei sallittuja maksutapoja valuutalle:"
     292msgstr "Visma Pay: Ei sallittuja maksutapoja valuutalle: "
    293293
    294294#: visma-pay-payment-gateway.php:714
     
    298298msgstr ""
    299299"Visma Pay: \"Salli maksaminen vain euroilla\"-asetus on käytössä ja valuutta "
    300 "ei ollut EUR tilauksessa:"
     300"ei ollut EUR tilauksessa: "
    301301
    302302#: visma-pay-payment-gateway.php:739 visma-pay-payment-gateway.php:901
     
    409409msgstr ""
    410410"Maksua ei voitu veloittaa. Joko maksu on jo veloitettu, tai luottolaitos "
    411 "hylkäsi veloituspyynnön"
     411"hylkäsi veloituspyynnön."
    412412
    413413#: visma-pay-payment-gateway.php:1062
  • visma-pay-payment-gateway/trunk/languages/visma-pay-payment-gateway.pot

    r2974593 r3253978  
    1 # Copyright (C) 2023 Visma
     1# Copyright (C) 2025 Visma
    22# This file is distributed under the same license as the Visma Pay Payment Gateway plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Visma Pay Payment Gateway 1.1.2\n"
     5"Project-Id-Version: Visma Pay Payment Gateway 1.1.6\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/visma-pay-payment-gateway\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-10-03T13:10:45+00:00\n"
     12"POT-Creation-Date: 2025-03-06T12:17:39+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.8.1\n"
     14"X-Generator: WP-CLI 2.11.0\n"
    1515"X-Domain: visma-pay-payment-gateway\n"
    1616
    1717#. Plugin Name of the plugin
     18#: visma-pay-payment-gateway.php
    1819msgid "Visma Pay Payment Gateway"
    1920msgstr ""
    2021
    2122#. Plugin URI of the plugin
     23#: visma-pay-payment-gateway.php
    2224msgid "https://www.vismapay.com/docs"
    2325msgstr ""
    2426
    2527#. Description of the plugin
     28#: visma-pay-payment-gateway.php
    2629msgid "Visma Pay Payment Gateway Integration for Woocommerce"
    2730msgstr ""
    2831
    2932#. Author of the plugin
     33#: visma-pay-payment-gateway.php
    3034msgid "Visma"
    3135msgstr ""
    3236
    3337#. Author URI of the plugin
     38#: visma-pay-payment-gateway.php
    3439msgid "https://www.visma.fi/vismapay/"
    3540msgstr ""
    3641
     42#: visma-pay-payment-gateway.php:79
     43#: visma-pay-payment-gateway.php:166
     44msgid "Visma Pay"
     45msgstr ""
     46
    3747#: visma-pay-payment-gateway.php:80
    38 #: visma-pay-payment-gateway.php:168
    39 msgid "Visma Pay"
    40 msgstr ""
    41 
    42 #: visma-pay-payment-gateway.php:81
    4348msgid "Visma Pay Payment API integration for Woocommerce"
    4449msgstr ""
    4550
    46 #: visma-pay-payment-gateway.php:154
     51#: visma-pay-payment-gateway.php:152
    4752msgid "General options"
    4853msgstr ""
    4954
     55#: visma-pay-payment-gateway.php:157
     56msgid "Enable/Disable"
     57msgstr ""
     58
    5059#: visma-pay-payment-gateway.php:159
    51 msgid "Enable/Disable"
    52 msgstr ""
    53 
    54 #: visma-pay-payment-gateway.php:161
    5560msgid "Enable Visma Pay"
    5661msgstr ""
    5762
     63#: visma-pay-payment-gateway.php:163
     64msgid "Title"
     65msgstr ""
     66
    5867#: visma-pay-payment-gateway.php:165
    59 msgid "Title"
    60 msgstr ""
    61 
    62 #: visma-pay-payment-gateway.php:167
    6368msgid "This controls the title which the user sees during checkout."
    6469msgstr ""
    6570
    66 #: visma-pay-payment-gateway.php:171
     71#: visma-pay-payment-gateway.php:169
    6772msgid "Description"
    6873msgstr ""
    6974
     75#: visma-pay-payment-gateway.php:170
     76msgid "This controls the first part of the description which the user sees during checkout."
     77msgstr ""
     78
    7079#: visma-pay-payment-gateway.php:172
    71 msgid "This controls the first part of the description which the user sees during checkout."
    72 msgstr ""
    73 
    74 #: visma-pay-payment-gateway.php:174
    7580msgid "Pay safely with Finnish internet banking, payment cards, wallet services or credit invoices."
    7681msgstr ""
    7782
    78 #: visma-pay-payment-gateway.php:177
     83#: visma-pay-payment-gateway.php:175
    7984msgid "Second part of description"
    8085msgstr ""
    8186
     87#: visma-pay-payment-gateway.php:176
     88msgid "This controls the second part of the description which the user sees during checkout."
     89msgstr ""
     90
    8291#: visma-pay-payment-gateway.php:178
    83 msgid "This controls the second part of the description which the user sees during checkout."
    84 msgstr ""
    85 
    86 #: visma-pay-payment-gateway.php:180
    8792msgid "Choose your payment method and click Pay for Order"
    8893msgstr ""
    8994
     95#: visma-pay-payment-gateway.php:181
     96msgid "Private key"
     97msgstr ""
     98
    9099#: visma-pay-payment-gateway.php:183
    91 msgid "Private key"
    92 msgstr ""
    93 
    94 #: visma-pay-payment-gateway.php:185
    95100msgid "Private key of the sub-merchant"
    96101msgstr ""
    97102
     103#: visma-pay-payment-gateway.php:187
     104msgid "API key"
     105msgstr ""
     106
    98107#: visma-pay-payment-gateway.php:189
    99 msgid "API key"
    100 msgstr ""
    101 
    102 #: visma-pay-payment-gateway.php:191
    103108msgid "API key of the sub-merchant"
    104109msgstr ""
    105110
     111#: visma-pay-payment-gateway.php:193
     112msgid "Order number prefix"
     113msgstr ""
     114
    106115#: visma-pay-payment-gateway.php:195
    107 msgid "Order number prefix"
    108 msgstr ""
    109 
    110 #: visma-pay-payment-gateway.php:197
    111116msgid "Prefix to avoid order number duplication"
    112117msgstr ""
    113118
     119#: visma-pay-payment-gateway.php:199
     120msgid "Send products"
     121msgstr ""
     122
    114123#: visma-pay-payment-gateway.php:201
    115 msgid "Send products"
    116 msgstr ""
    117 
    118 #: visma-pay-payment-gateway.php:203
    119124msgid "Send product breakdown to Visma Pay."
    120125msgstr ""
    121126
     127#: visma-pay-payment-gateway.php:205
     128msgid "Send payment confirmation"
     129msgstr ""
     130
    122131#: visma-pay-payment-gateway.php:207
    123 msgid "Send payment confirmation"
    124 msgstr ""
    125 
    126 #: visma-pay-payment-gateway.php:209
    127132msgid "Send Visma Pay's payment confirmation email to the customer's billing e-mail."
    128133msgstr ""
    129134
    130 #: visma-pay-payment-gateway.php:217
     135#: visma-pay-payment-gateway.php:215
    131136msgid "Cancel Page"
    132137msgstr ""
    133138
     139#: visma-pay-payment-gateway.php:218
     140msgid "Choose the page where the customer is redirected after a canceled/failed payment."
     141msgstr ""
     142
     143#: visma-pay-payment-gateway.php:219
     144msgid "Order Received: Shows the customer information about their order and a notice that the payment failed. Customer has an opportunity to try payment again."
     145msgstr ""
     146
    134147#: visma-pay-payment-gateway.php:220
    135 msgid "Choose the page where the customer is redirected after a canceled/failed payment."
     148msgid "Pay for Order: Returns user to a page where they can try to pay their unpaid order again. "
    136149msgstr ""
    137150
    138151#: visma-pay-payment-gateway.php:221
    139 msgid "Order Received: Shows the customer information about their order and a notice that the payment failed. Customer has an opportunity to try payment again."
     152msgid "Cart: Customer is redirected back to the shopping cart."
    140153msgstr ""
    141154
    142155#: visma-pay-payment-gateway.php:222
    143 msgid "Pay for Order: Returns user to a page where they can try to pay their unpaid order again. "
     156msgid "Checkout: Customer is redirected back to the checkout."
    144157msgstr ""
    145158
    146159#: visma-pay-payment-gateway.php:223
    147 msgid "Cart: Customer is redirected back to the shopping cart."
    148 msgstr ""
    149 
    150 #: visma-pay-payment-gateway.php:224
    151 msgid "Checkout: Customer is redirected back to the checkout."
    152 msgstr ""
    153 
    154 #: visma-pay-payment-gateway.php:225
    155160msgid "(When using Cart or Checkout as the return page for failed orders, the customer's cart will not be emptied during checkout.)"
    156161msgstr ""
    157162
     163#: visma-pay-payment-gateway.php:226
     164msgid "Order Received"
     165msgstr ""
     166
     167#: visma-pay-payment-gateway.php:227
     168msgid "Pay for Order"
     169msgstr ""
     170
    158171#: visma-pay-payment-gateway.php:228
    159 msgid "Order Received"
     172msgid "Cart"
    160173msgstr ""
    161174
    162175#: visma-pay-payment-gateway.php:229
    163 msgid "Pay for Order"
    164 msgstr ""
    165 
    166 #: visma-pay-payment-gateway.php:230
    167 msgid "Cart"
    168 msgstr ""
    169 
    170 #: visma-pay-payment-gateway.php:231
    171176msgid "Checkout"
    172177msgstr ""
    173178
     179#: visma-pay-payment-gateway.php:236
     180msgid "Only allow payments in EUR"
     181msgstr ""
     182
    174183#: visma-pay-payment-gateway.php:238
    175 msgid "Only allow payments in EUR"
    176 msgstr ""
    177 
    178 #: visma-pay-payment-gateway.php:240
    179184msgid "Enable this option if you want to allow payments only in EUR."
    180185msgstr ""
    181186
     187#: visma-pay-payment-gateway.php:242
     188msgid "Enable payment method embedding"
     189msgstr ""
     190
    182191#: visma-pay-payment-gateway.php:244
    183 msgid "Enable payment method embedding"
    184 msgstr ""
    185 
    186 #: visma-pay-payment-gateway.php:246
    187192msgid "Enable this if you want to embed the payment methods to the checkout-page."
    188193msgstr ""
    189194
    190 #: visma-pay-payment-gateway.php:252
     195#: visma-pay-payment-gateway.php:250
    191196msgid "Manage payment methods"
    192197msgstr ""
    193198
     199#: visma-pay-payment-gateway.php:255
     200msgid "Banks"
     201msgstr ""
     202
    194203#: visma-pay-payment-gateway.php:257
    195 msgid "Banks"
    196 msgstr ""
    197 
    198 #: visma-pay-payment-gateway.php:259
    199204msgid "Enable bank payments in the Visma Pay payment page."
    200205msgstr ""
    201206
     207#: visma-pay-payment-gateway.php:261
     208msgid "Wallets"
     209msgstr ""
     210
    202211#: visma-pay-payment-gateway.php:263
    203 msgid "Wallets"
    204 msgstr ""
    205 
    206 #: visma-pay-payment-gateway.php:265
    207212msgid "Enable wallet services in the Visma Pay payment page."
    208213msgstr ""
    209214
     215#: visma-pay-payment-gateway.php:267
     216msgid "Card payments"
     217msgstr ""
     218
    210219#: visma-pay-payment-gateway.php:269
    211 msgid "Card payments"
    212 msgstr ""
    213 
    214 #: visma-pay-payment-gateway.php:271
    215220msgid "Enable credit cards in the Visma Pay payment page."
    216221msgstr ""
    217222
     223#: visma-pay-payment-gateway.php:273
     224msgid "Credit invoices"
     225msgstr ""
     226
    218227#: visma-pay-payment-gateway.php:275
    219 msgid "Credit invoices"
    220 msgstr ""
    221 
    222 #: visma-pay-payment-gateway.php:277
    223228msgid "Enable credit invoices in the Visma Pay payment page."
    224229msgstr ""
    225230
    226 #: visma-pay-payment-gateway.php:281
    227 msgid "Alisa Yrityslasku"
    228 msgstr ""
    229 
    230 #: visma-pay-payment-gateway.php:283
    231 msgid "Enable Alisa Yrityslasku in the Visma Pay payment page."
    232 msgstr ""
    233 
    234 #: visma-pay-payment-gateway.php:330
     231#: visma-pay-payment-gateway.php:315
    235232#: build/blocks.js:1
    236233msgid "No payment methods available for the currency: "
    237234msgstr ""
    238235
    239 #: visma-pay-payment-gateway.php:344
     236#: visma-pay-payment-gateway.php:329
    240237#: build/blocks.js:1
    241238msgid "Internet banking"
    242239msgstr ""
    243240
    244 #: visma-pay-payment-gateway.php:347
     241#: visma-pay-payment-gateway.php:332
    245242#: build/blocks.js:1
    246243msgid "Payment card"
    247244msgstr ""
    248245
    249 #: visma-pay-payment-gateway.php:350
     246#: visma-pay-payment-gateway.php:335
    250247#: build/blocks.js:1
    251248msgid "Wallet services"
    252249msgstr ""
    253250
    254 #: visma-pay-payment-gateway.php:353
     251#: visma-pay-payment-gateway.php:338
    255252#: build/blocks.js:1
    256253msgid "Invoice or part payment"
    257254msgstr ""
    258255
     256#: visma-pay-payment-gateway.php:686
     257#: visma-pay-payment-gateway.php:687
     258#: visma-pay-payment-gateway.php:702
     259msgid "Visma Pay: No payment methods available for the currency: "
     260msgstr ""
     261
    259262#: visma-pay-payment-gateway.php:700
    260 #: visma-pay-payment-gateway.php:701
    261 #: visma-pay-payment-gateway.php:716
    262 msgid "Visma Pay: No payment methods available for the currency: "
    263 msgstr ""
    264 
    265 #: visma-pay-payment-gateway.php:714
    266263msgid "Visma Pay: \"Only allow payments in EUR\" is enabled and currency was not EUR for order: "
    267264msgstr ""
    268265
    269 #: visma-pay-payment-gateway.php:739
     266#: visma-pay-payment-gateway.php:725
     267#: visma-pay-payment-gateway.php:886
     268#: visma-pay-payment-gateway.php:889
     269msgid "Visma Pay order"
     270msgstr ""
     271
     272#: visma-pay-payment-gateway.php:725
     273msgid "Payment pending. Waiting for result."
     274msgstr ""
     275
     276#: visma-pay-payment-gateway.php:748
     277msgid "Visma Pay system is currently in maintenance. Please try again in a few minutes."
     278msgstr ""
     279
     280#: visma-pay-payment-gateway.php:755
     281#: visma-pay-payment-gateway.php:769
     282msgid "Payment failed due to an error."
     283msgstr ""
     284
     285#: visma-pay-payment-gateway.php:851
     286msgid "Payment method: Card payment"
     287msgstr ""
     288
     289#: visma-pay-payment-gateway.php:852
     290msgid "Card payment info: "
     291msgstr ""
     292
     293#: visma-pay-payment-gateway.php:857
     294msgid "Verified: "
     295msgstr ""
     296
     297#: visma-pay-payment-gateway.php:860
     298msgid "Card country: "
     299msgstr ""
     300
     301#: visma-pay-payment-gateway.php:861
     302msgid "Client IP country: "
     303msgstr ""
     304
     305#: visma-pay-payment-gateway.php:866
     306msgid "Error: "
     307msgstr ""
     308
     309#: visma-pay-payment-gateway.php:870
     310msgid "Payment method: "
     311msgstr ""
     312
     313#: visma-pay-payment-gateway.php:886
     314msgid "Payment is authorized. Use settle option to capture funds."
     315msgstr ""
     316
     317#: visma-pay-payment-gateway.php:889
     318msgid "Payment accepted."
     319msgstr ""
     320
    270321#: visma-pay-payment-gateway.php:901
    271 #: visma-pay-payment-gateway.php:904
    272 msgid "Visma Pay order"
    273 msgstr ""
    274 
    275 #: visma-pay-payment-gateway.php:739
    276 msgid "Payment pending. Waiting for result."
    277 msgstr ""
    278 
    279 #: visma-pay-payment-gateway.php:762
    280 msgid "Visma Pay system is currently in maintenance. Please try again in a few minutes."
    281 msgstr ""
    282 
    283 #: visma-pay-payment-gateway.php:769
    284 #: visma-pay-payment-gateway.php:783
    285 msgid "Payment failed due to an error."
    286 msgstr ""
    287 
    288 #: visma-pay-payment-gateway.php:866
    289 msgid "Payment method: Card payment"
    290 msgstr ""
    291 
    292 #: visma-pay-payment-gateway.php:867
    293 msgid "Card payment info: "
    294 msgstr ""
    295 
    296 #: visma-pay-payment-gateway.php:872
    297 msgid "Verified: "
    298 msgstr ""
    299 
    300 #: visma-pay-payment-gateway.php:875
    301 msgid "Card country: "
    302 msgstr ""
    303 
    304 #: visma-pay-payment-gateway.php:876
    305 msgid "Client IP country: "
    306 msgstr ""
    307 
    308 #: visma-pay-payment-gateway.php:881
    309 msgid "Error: "
    310 msgstr ""
    311 
    312 #: visma-pay-payment-gateway.php:885
    313 msgid "Payment method: "
    314 msgstr ""
    315 
    316 #: visma-pay-payment-gateway.php:901
    317 msgid "Payment is authorized. Use settle option to capture funds."
    318 msgstr ""
    319 
    320 #: visma-pay-payment-gateway.php:904
    321 msgid "Payment accepted."
    322 msgstr ""
    323 
    324 #: visma-pay-payment-gateway.php:916
    325322msgid "Payment was not accepted."
    326323msgstr ""
    327324
    328 #: visma-pay-payment-gateway.php:924
     325#: visma-pay-payment-gateway.php:909
    329326msgid "Transaction status could not be updated after customer returned from the web page of a bank. Please use the merchant UI to resolve the payment status."
    330327msgstr ""
    331328
    332 #: visma-pay-payment-gateway.php:932
     329#: visma-pay-payment-gateway.php:917
    333330msgid "Maintenance break. The transaction is not created and the user has been notified and transferred back to the cancel address."
    334331msgstr ""
    335332
    336 #: visma-pay-payment-gateway.php:964
     333#: visma-pay-payment-gateway.php:949
    337334msgid "Card payment failed. Your card has not been charged."
    338335msgstr ""
    339336
    340 #: visma-pay-payment-gateway.php:966
     337#: visma-pay-payment-gateway.php:951
    341338msgid "Payment was canceled or charge was not accepted."
    342339msgstr ""
    343340
    344 #: visma-pay-payment-gateway.php:1011
     341#: visma-pay-payment-gateway.php:996
    345342msgid "Payment settled."
    346343msgstr ""
    347344
    348 #: visma-pay-payment-gateway.php:1029
     345#: visma-pay-payment-gateway.php:1014
    349346msgid "Settle payment"
    350347msgstr ""
    351348
    352 #: visma-pay-payment-gateway.php:1053
     349#: visma-pay-payment-gateway.php:1038
    353350msgid "Settlement was successful."
    354351msgstr ""
    355352
    356 #: visma-pay-payment-gateway.php:1056
     353#: visma-pay-payment-gateway.php:1041
    357354msgid "Settlement failed. Validation failed."
    358355msgstr ""
    359356
    360 #: visma-pay-payment-gateway.php:1059
     357#: visma-pay-payment-gateway.php:1044
    361358msgid "Settlement failed. Either the payment has already been settled or the payment gateway refused to settle payment for given transaction."
    362359msgstr ""
    363360
    364 #: visma-pay-payment-gateway.php:1062
     361#: visma-pay-payment-gateway.php:1047
    365362msgid "Settlement failed. Unknown error."
    366363msgstr ""
    367364
    368 #: visma-pay-payment-gateway.php:1069
     365#: visma-pay-payment-gateway.php:1054
    369366msgid "Exception, error: "
    370367msgstr ""
    371368
    372 #: visma-pay-payment-gateway.php:1116
     369#: visma-pay-payment-gateway.php:1101
    373370msgid "The card is reported lost or stolen."
    374371msgstr ""
    375372
    376 #: visma-pay-payment-gateway.php:1118
     373#: visma-pay-payment-gateway.php:1103
    377374msgid "General decline. The card holder should contact the issuer to find out why the payment failed."
    378375msgstr ""
    379376
    380 #: visma-pay-payment-gateway.php:1120
     377#: visma-pay-payment-gateway.php:1105
    381378msgid "Insufficient funds. The card holder should verify that there is balance on the account and the online payments are actived."
    382379msgstr ""
    383380
    384 #: visma-pay-payment-gateway.php:1122
     381#: visma-pay-payment-gateway.php:1107
    385382msgid "Expired card."
    386383msgstr ""
    387384
     385#: visma-pay-payment-gateway.php:1109
     386msgid "Withdrawal amount limit exceeded."
     387msgstr ""
     388
     389#: visma-pay-payment-gateway.php:1111
     390msgid "Restricted card. The card holder should verify that the online payments are actived."
     391msgstr ""
     392
     393#: visma-pay-payment-gateway.php:1113
     394msgid "Timeout communicating with the acquirer. The payment should be tried again later."
     395msgstr ""
     396
    388397#: visma-pay-payment-gateway.php:1124
    389 msgid "Withdrawal amount limit exceeded."
     398msgid "3-D Secure was used."
    390399msgstr ""
    391400
    392401#: visma-pay-payment-gateway.php:1126
    393 msgid "Restricted card. The card holder should verify that the online payments are actived."
     402msgid "3-D Secure was not used."
    394403msgstr ""
    395404
    396405#: visma-pay-payment-gateway.php:1128
    397 msgid "Timeout communicating with the acquirer. The payment should be tried again later."
    398 msgstr ""
    399 
    400 #: visma-pay-payment-gateway.php:1139
    401 msgid "3-D Secure was used."
    402 msgstr ""
    403 
    404 #: visma-pay-payment-gateway.php:1141
    405 msgid "3-D Secure was not used."
    406 msgstr ""
    407 
    408 #: visma-pay-payment-gateway.php:1143
    409406msgid "3-D Secure was attempted but not supported by the card issuer or the card holder is not participating."
    410407msgstr ""
  • visma-pay-payment-gateway/trunk/readme.txt

    r3149116 r3253978  
    44Tags: payment gateway, visma, pay, verkkomaksut, pankit, vismapay
    55Requires at least: 3.3
    6 Tested up to: 6.6.1
     6Tested up to: 6.7.2
    77Stable tag: trunk
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010WC requires at least: 3.0.0
    11 WC tested up to: 9.1.4
     11WC tested up to: 9.7.1
    1212
    1313Visma Pay plugin for Woocommerce.
     
    3939
    4040== Changelog ==
     41
     42= 1.1.6 =
     43* Updated 'tested up to' versions.
     44* Removed Alisa Yrityslasku
    4145
    4246= 1.1.5 =
  • visma-pay-payment-gateway/trunk/visma-pay-payment-gateway.php

    r3149116 r3253978  
    44 * Plugin URI: https://www.vismapay.com/docs
    55 * Description: Visma Pay Payment Gateway Integration for Woocommerce
    6  * Version: 1.1.5
     6 * Version: 1.1.6
    77 * Author: Visma
    88 * Author URI: https://www.visma.fi/vismapay/
     
    1010 * Domain Path: /languages
    1111 * WC requires at least: 3.0.0
    12  * WC tested up to: 9.1.4
     12 * WC tested up to: 9.7.1
    1313 */
    1414
     
    6565        protected $ccards;
    6666        protected $cinvoices;
    67         protected $laskuyritykselle;
    6867        protected $send_items;
    6968        protected $send_receipt;
     
    9897            $this->ccards = $this->get_option('ccards');
    9998            $this->cinvoices = $this->get_option('cinvoices');
    100             $this->laskuyritykselle = $this->get_option('laskuyritykselle');
    10199
    102100            $this->send_items = $this->get_option('send_items');
     
    278276                    'default' => 'yes'
    279277                ),
    280                 'laskuyritykselle' => array(
    281                     'title' => __( 'Alisa Yrityslasku', 'visma-pay-payment-gateway' ),
    282                     'type' => 'checkbox',
    283                     'label' => __( 'Enable Alisa Yrityslasku in the Visma Pay payment page.', 'visma-pay-payment-gateway' ),
    284                     'default' => 'no'
    285                 )
    286278            ));
    287279        }
     
    314306                        else if($method->group == 'creditinvoices')
    315307                        {
    316                             if($method->selected_value == 'laskuyritykselle')
    317                             {
    318                                 $creditinvoices .= '<div id="visma-pay-button-' . $method->selected_value . '" class="bank-button"><img alt="' . $method->name . '" src="' . $method->img_src . '"/></div>';
    319                             }
    320                             else
    321                             {
    322                                 $creditinvoices .= '<div id="visma-pay-button-' . $method->selected_value . '" class="bank-button"><img alt="' . $method->name . '" src="' . $method->img_src . '"/></div>';
    323                             }
     308                            $creditinvoices .= '<div id="visma-pay-button-' . $method->selected_value . '" class="bank-button"><img alt="' . $method->name . '" src="' . $method->img_src . '"/></div>';
    324309                        }
    325310                    }
     
    442427                    }
    443428
    444                     if($method->selected_value == 'laskuyritykselle')
    445                     {
    446                         if($this->laskuyritykselle == 'no')
    447                         {
    448                             continue;
    449                         }
    450                     }
    451                     else if($this->cinvoices == 'no')
     429                    if($this->cinvoices == 'no')
    452430                    {
    453431                        continue;
     
    481459
    482460            $order = new WC_Order($order_id);
    483             $wc_order_id = $order->get_id();
    484461            $wc_order_total = $order->get_total();
    485462
     
    663640                    if($this->cinvoices == 'yes')
    664641                        $vp_selected[] = 'creditinvoices';
    665                     if($this->laskuyritykselle == 'yes')
    666                         $vp_selected[] = 'laskuyritykselle';
    667642                }
    668643                else if($this->limit_currencies == 'no')
     
    698673                                    else if($method->group == 'creditinvoices')
    699674                                    {
    700                                         if($method->selected_value == 'laskuyritykselle' && ((!isset($order) && $cart_total >= $method->min_amount && $cart_total <= $method->max_amount) || ($total >= $method->min_amount && $total <= $method->max_amount)))
    701                                         {
    702                                             if($this->laskuyritykselle == 'yes')
    703                                             {
    704                                                 $vp_selected[] = $method->selected_value;
    705                                             }
    706                                         }
    707                                         else if($this->cinvoices == 'yes' && ((!isset($order) && $cart_total >= $method->min_amount && $cart_total <= $method->max_amount) || ($total >= $method->min_amount && $total <= $method->max_amount)))
     675                                        if($this->cinvoices == 'yes' && ((!isset($order) && $cart_total >= $method->min_amount && $cart_total <= $method->max_amount) || ($total >= $method->min_amount && $total <= $method->max_amount)))
    708676                                        {
    709677                                            $vp_selected[] = $method->selected_value;
     
    864832                    $this->visma_pay_die("Order not found.");
    865833
    866                 $wc_order_id = $order->get_id();
    867834                $wc_order_status = $order->get_status();
    868835
Note: See TracChangeset for help on using the changeset viewer.