Changeset 3253978
- Timestamp:
- 03/11/2025 11:35:15 AM (11 months ago)
- Location:
- visma-pay-payment-gateway/trunk
- Files:
-
- 10 edited
-
assets/images/aktia.png (modified) (previous)
-
build/blocks.asset.php (modified) (1 diff)
-
build/blocks.js (modified) (1 diff)
-
includes/lib/Visma/VismaPay.php (modified) (1 diff)
-
languages/visma-pay-payment-gateway-fi-0a194271922d454324b7e88e0bfed673.json (modified) (1 diff)
-
languages/visma-pay-payment-gateway-fi.mo (modified) (previous)
-
languages/visma-pay-payment-gateway-fi.po (modified) (9 diffs)
-
languages/visma-pay-payment-gateway.pot (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
visma-pay-payment-gateway.php (modified) (11 diffs)
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 67 67 $payment_data['plugin_info'] .= '0'; 68 68 69 $payment_data['plugin_info'] .= '|1.1. 5';69 $payment_data['plugin_info'] .= '|1.1.6'; 70 70 71 71 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":"202 3-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 5 5 "gateway\n" 6 6 "POT-Creation-Date: 2023-10-03T13:10:45+00:00\n" 7 "PO-Revision-Date: 202 3-10-03 16:12+0300\n"7 "PO-Revision-Date: 2025-03-06 14:21+0200\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: Suomi\n" … … 13 13 "Content-Transfer-Encoding: 8bit\n" 14 14 "Plural-Forms: nplurals=2; plural=n != 1;\n" 15 "X-Generator: Poedit 3. 4\n"15 "X-Generator: Poedit 3.5\n" 16 16 "X-Loco-Version: 2.5.2; wp-5.8\n" 17 17 … … 84 84 #: visma-pay-payment-gateway.php:177 85 85 msgid "Second part of description" 86 msgstr "Kuvauksen toinen osa ."86 msgstr "Kuvauksen toinen osa" 87 87 88 88 #: visma-pay-payment-gateway.php:178 … … 94 94 #: visma-pay-payment-gateway.php:180 95 95 msgid "Choose your payment method and click Pay for Order" 96 msgstr "Valitse maksutapa ja klikkaa Lähetä Tilaus -painiketta ."96 msgstr "Valitse maksutapa ja klikkaa Lähetä Tilaus -painiketta" 97 97 98 98 #: visma-pay-payment-gateway.php:183 … … 169 169 msgstr "" 170 170 "Maksa Tilaus: Siirtää asiakkaan sivulle jossa hän voi yrittää uudelleen " 171 "maksamattoman tilauksensa maksamista. "171 "maksamattoman tilauksensa maksamista. " 172 172 173 173 #: visma-pay-payment-gateway.php:223 … … 269 269 #: visma-pay-payment-gateway.php:330 build/blocks.js:1 270 270 msgid "No payment methods available for the currency: " 271 msgstr "Ei tuettuja maksutapoja valuutalle: "271 msgstr "Ei tuettuja maksutapoja valuutalle: " 272 272 273 273 #: visma-pay-payment-gateway.php:344 build/blocks.js:1 … … 290 290 #: visma-pay-payment-gateway.php:716 291 291 msgid "Visma Pay: No payment methods available for the currency: " 292 msgstr "Visma Pay: Ei sallittuja maksutapoja valuutalle: "292 msgstr "Visma Pay: Ei sallittuja maksutapoja valuutalle: " 293 293 294 294 #: visma-pay-payment-gateway.php:714 … … 298 298 msgstr "" 299 299 "Visma Pay: \"Salli maksaminen vain euroilla\"-asetus on käytössä ja valuutta " 300 "ei ollut EUR tilauksessa: "300 "ei ollut EUR tilauksessa: " 301 301 302 302 #: visma-pay-payment-gateway.php:739 visma-pay-payment-gateway.php:901 … … 409 409 msgstr "" 410 410 "Maksua ei voitu veloittaa. Joko maksu on jo veloitettu, tai luottolaitos " 411 "hylkäsi veloituspyynnön "411 "hylkäsi veloituspyynnön." 412 412 413 413 #: visma-pay-payment-gateway.php:1062 -
visma-pay-payment-gateway/trunk/languages/visma-pay-payment-gateway.pot
r2974593 r3253978 1 # Copyright (C) 202 3Visma1 # Copyright (C) 2025 Visma 2 2 # This file is distributed under the same license as the Visma Pay Payment Gateway plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Visma Pay Payment Gateway 1.1. 2\n"5 "Project-Id-Version: Visma Pay Payment Gateway 1.1.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/visma-pay-payment-gateway\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-10-03T13:10:45+00:00\n"12 "POT-Creation-Date: 2025-03-06T12:17:39+00:00\n" 13 13 "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" 15 15 "X-Domain: visma-pay-payment-gateway\n" 16 16 17 17 #. Plugin Name of the plugin 18 #: visma-pay-payment-gateway.php 18 19 msgid "Visma Pay Payment Gateway" 19 20 msgstr "" 20 21 21 22 #. Plugin URI of the plugin 23 #: visma-pay-payment-gateway.php 22 24 msgid "https://www.vismapay.com/docs" 23 25 msgstr "" 24 26 25 27 #. Description of the plugin 28 #: visma-pay-payment-gateway.php 26 29 msgid "Visma Pay Payment Gateway Integration for Woocommerce" 27 30 msgstr "" 28 31 29 32 #. Author of the plugin 33 #: visma-pay-payment-gateway.php 30 34 msgid "Visma" 31 35 msgstr "" 32 36 33 37 #. Author URI of the plugin 38 #: visma-pay-payment-gateway.php 34 39 msgid "https://www.visma.fi/vismapay/" 35 40 msgstr "" 36 41 42 #: visma-pay-payment-gateway.php:79 43 #: visma-pay-payment-gateway.php:166 44 msgid "Visma Pay" 45 msgstr "" 46 37 47 #: visma-pay-payment-gateway.php:80 38 #: visma-pay-payment-gateway.php:16839 msgid "Visma Pay"40 msgstr ""41 42 #: visma-pay-payment-gateway.php:8143 48 msgid "Visma Pay Payment API integration for Woocommerce" 44 49 msgstr "" 45 50 46 #: visma-pay-payment-gateway.php:15 451 #: visma-pay-payment-gateway.php:152 47 52 msgid "General options" 48 53 msgstr "" 49 54 55 #: visma-pay-payment-gateway.php:157 56 msgid "Enable/Disable" 57 msgstr "" 58 50 59 #: visma-pay-payment-gateway.php:159 51 msgid "Enable/Disable"52 msgstr ""53 54 #: visma-pay-payment-gateway.php:16155 60 msgid "Enable Visma Pay" 56 61 msgstr "" 57 62 63 #: visma-pay-payment-gateway.php:163 64 msgid "Title" 65 msgstr "" 66 58 67 #: visma-pay-payment-gateway.php:165 59 msgid "Title"60 msgstr ""61 62 #: visma-pay-payment-gateway.php:16763 68 msgid "This controls the title which the user sees during checkout." 64 69 msgstr "" 65 70 66 #: visma-pay-payment-gateway.php:1 7171 #: visma-pay-payment-gateway.php:169 67 72 msgid "Description" 68 73 msgstr "" 69 74 75 #: visma-pay-payment-gateway.php:170 76 msgid "This controls the first part of the description which the user sees during checkout." 77 msgstr "" 78 70 79 #: 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:17475 80 msgid "Pay safely with Finnish internet banking, payment cards, wallet services or credit invoices." 76 81 msgstr "" 77 82 78 #: visma-pay-payment-gateway.php:17 783 #: visma-pay-payment-gateway.php:175 79 84 msgid "Second part of description" 80 85 msgstr "" 81 86 87 #: visma-pay-payment-gateway.php:176 88 msgid "This controls the second part of the description which the user sees during checkout." 89 msgstr "" 90 82 91 #: 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:18087 92 msgid "Choose your payment method and click Pay for Order" 88 93 msgstr "" 89 94 95 #: visma-pay-payment-gateway.php:181 96 msgid "Private key" 97 msgstr "" 98 90 99 #: visma-pay-payment-gateway.php:183 91 msgid "Private key"92 msgstr ""93 94 #: visma-pay-payment-gateway.php:18595 100 msgid "Private key of the sub-merchant" 96 101 msgstr "" 97 102 103 #: visma-pay-payment-gateway.php:187 104 msgid "API key" 105 msgstr "" 106 98 107 #: visma-pay-payment-gateway.php:189 99 msgid "API key"100 msgstr ""101 102 #: visma-pay-payment-gateway.php:191103 108 msgid "API key of the sub-merchant" 104 109 msgstr "" 105 110 111 #: visma-pay-payment-gateway.php:193 112 msgid "Order number prefix" 113 msgstr "" 114 106 115 #: visma-pay-payment-gateway.php:195 107 msgid "Order number prefix"108 msgstr ""109 110 #: visma-pay-payment-gateway.php:197111 116 msgid "Prefix to avoid order number duplication" 112 117 msgstr "" 113 118 119 #: visma-pay-payment-gateway.php:199 120 msgid "Send products" 121 msgstr "" 122 114 123 #: visma-pay-payment-gateway.php:201 115 msgid "Send products"116 msgstr ""117 118 #: visma-pay-payment-gateway.php:203119 124 msgid "Send product breakdown to Visma Pay." 120 125 msgstr "" 121 126 127 #: visma-pay-payment-gateway.php:205 128 msgid "Send payment confirmation" 129 msgstr "" 130 122 131 #: visma-pay-payment-gateway.php:207 123 msgid "Send payment confirmation"124 msgstr ""125 126 #: visma-pay-payment-gateway.php:209127 132 msgid "Send Visma Pay's payment confirmation email to the customer's billing e-mail." 128 133 msgstr "" 129 134 130 #: visma-pay-payment-gateway.php:21 7135 #: visma-pay-payment-gateway.php:215 131 136 msgid "Cancel Page" 132 137 msgstr "" 133 138 139 #: visma-pay-payment-gateway.php:218 140 msgid "Choose the page where the customer is redirected after a canceled/failed payment." 141 msgstr "" 142 143 #: visma-pay-payment-gateway.php:219 144 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." 145 msgstr "" 146 134 147 #: visma-pay-payment-gateway.php:220 135 msgid " Choose the page where the customer is redirected after a canceled/failed payment."148 msgid "Pay for Order: Returns user to a page where they can try to pay their unpaid order again. " 136 149 msgstr "" 137 150 138 151 #: 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."152 msgid "Cart: Customer is redirected back to the shopping cart." 140 153 msgstr "" 141 154 142 155 #: 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."156 msgid "Checkout: Customer is redirected back to the checkout." 144 157 msgstr "" 145 158 146 159 #: 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:224151 msgid "Checkout: Customer is redirected back to the checkout."152 msgstr ""153 154 #: visma-pay-payment-gateway.php:225155 160 msgid "(When using Cart or Checkout as the return page for failed orders, the customer's cart will not be emptied during checkout.)" 156 161 msgstr "" 157 162 163 #: visma-pay-payment-gateway.php:226 164 msgid "Order Received" 165 msgstr "" 166 167 #: visma-pay-payment-gateway.php:227 168 msgid "Pay for Order" 169 msgstr "" 170 158 171 #: visma-pay-payment-gateway.php:228 159 msgid " Order Received"172 msgid "Cart" 160 173 msgstr "" 161 174 162 175 #: visma-pay-payment-gateway.php:229 163 msgid "Pay for Order"164 msgstr ""165 166 #: visma-pay-payment-gateway.php:230167 msgid "Cart"168 msgstr ""169 170 #: visma-pay-payment-gateway.php:231171 176 msgid "Checkout" 172 177 msgstr "" 173 178 179 #: visma-pay-payment-gateway.php:236 180 msgid "Only allow payments in EUR" 181 msgstr "" 182 174 183 #: visma-pay-payment-gateway.php:238 175 msgid "Only allow payments in EUR"176 msgstr ""177 178 #: visma-pay-payment-gateway.php:240179 184 msgid "Enable this option if you want to allow payments only in EUR." 180 185 msgstr "" 181 186 187 #: visma-pay-payment-gateway.php:242 188 msgid "Enable payment method embedding" 189 msgstr "" 190 182 191 #: visma-pay-payment-gateway.php:244 183 msgid "Enable payment method embedding"184 msgstr ""185 186 #: visma-pay-payment-gateway.php:246187 192 msgid "Enable this if you want to embed the payment methods to the checkout-page." 188 193 msgstr "" 189 194 190 #: visma-pay-payment-gateway.php:25 2195 #: visma-pay-payment-gateway.php:250 191 196 msgid "Manage payment methods" 192 197 msgstr "" 193 198 199 #: visma-pay-payment-gateway.php:255 200 msgid "Banks" 201 msgstr "" 202 194 203 #: visma-pay-payment-gateway.php:257 195 msgid "Banks"196 msgstr ""197 198 #: visma-pay-payment-gateway.php:259199 204 msgid "Enable bank payments in the Visma Pay payment page." 200 205 msgstr "" 201 206 207 #: visma-pay-payment-gateway.php:261 208 msgid "Wallets" 209 msgstr "" 210 202 211 #: visma-pay-payment-gateway.php:263 203 msgid "Wallets"204 msgstr ""205 206 #: visma-pay-payment-gateway.php:265207 212 msgid "Enable wallet services in the Visma Pay payment page." 208 213 msgstr "" 209 214 215 #: visma-pay-payment-gateway.php:267 216 msgid "Card payments" 217 msgstr "" 218 210 219 #: visma-pay-payment-gateway.php:269 211 msgid "Card payments"212 msgstr ""213 214 #: visma-pay-payment-gateway.php:271215 220 msgid "Enable credit cards in the Visma Pay payment page." 216 221 msgstr "" 217 222 223 #: visma-pay-payment-gateway.php:273 224 msgid "Credit invoices" 225 msgstr "" 226 218 227 #: visma-pay-payment-gateway.php:275 219 msgid "Credit invoices"220 msgstr ""221 222 #: visma-pay-payment-gateway.php:277223 228 msgid "Enable credit invoices in the Visma Pay payment page." 224 229 msgstr "" 225 230 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 235 232 #: build/blocks.js:1 236 233 msgid "No payment methods available for the currency: " 237 234 msgstr "" 238 235 239 #: visma-pay-payment-gateway.php:3 44236 #: visma-pay-payment-gateway.php:329 240 237 #: build/blocks.js:1 241 238 msgid "Internet banking" 242 239 msgstr "" 243 240 244 #: visma-pay-payment-gateway.php:3 47241 #: visma-pay-payment-gateway.php:332 245 242 #: build/blocks.js:1 246 243 msgid "Payment card" 247 244 msgstr "" 248 245 249 #: visma-pay-payment-gateway.php:3 50246 #: visma-pay-payment-gateway.php:335 250 247 #: build/blocks.js:1 251 248 msgid "Wallet services" 252 249 msgstr "" 253 250 254 #: visma-pay-payment-gateway.php:3 53251 #: visma-pay-payment-gateway.php:338 255 252 #: build/blocks.js:1 256 253 msgid "Invoice or part payment" 257 254 msgstr "" 258 255 256 #: visma-pay-payment-gateway.php:686 257 #: visma-pay-payment-gateway.php:687 258 #: visma-pay-payment-gateway.php:702 259 msgid "Visma Pay: No payment methods available for the currency: " 260 msgstr "" 261 259 262 #: visma-pay-payment-gateway.php:700 260 #: visma-pay-payment-gateway.php:701261 #: visma-pay-payment-gateway.php:716262 msgid "Visma Pay: No payment methods available for the currency: "263 msgstr ""264 265 #: visma-pay-payment-gateway.php:714266 263 msgid "Visma Pay: \"Only allow payments in EUR\" is enabled and currency was not EUR for order: " 267 264 msgstr "" 268 265 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 269 msgid "Visma Pay order" 270 msgstr "" 271 272 #: visma-pay-payment-gateway.php:725 273 msgid "Payment pending. Waiting for result." 274 msgstr "" 275 276 #: visma-pay-payment-gateway.php:748 277 msgid "Visma Pay system is currently in maintenance. Please try again in a few minutes." 278 msgstr "" 279 280 #: visma-pay-payment-gateway.php:755 281 #: visma-pay-payment-gateway.php:769 282 msgid "Payment failed due to an error." 283 msgstr "" 284 285 #: visma-pay-payment-gateway.php:851 286 msgid "Payment method: Card payment" 287 msgstr "" 288 289 #: visma-pay-payment-gateway.php:852 290 msgid "Card payment info: " 291 msgstr "" 292 293 #: visma-pay-payment-gateway.php:857 294 msgid "Verified: " 295 msgstr "" 296 297 #: visma-pay-payment-gateway.php:860 298 msgid "Card country: " 299 msgstr "" 300 301 #: visma-pay-payment-gateway.php:861 302 msgid "Client IP country: " 303 msgstr "" 304 305 #: visma-pay-payment-gateway.php:866 306 msgid "Error: " 307 msgstr "" 308 309 #: visma-pay-payment-gateway.php:870 310 msgid "Payment method: " 311 msgstr "" 312 313 #: visma-pay-payment-gateway.php:886 314 msgid "Payment is authorized. Use settle option to capture funds." 315 msgstr "" 316 317 #: visma-pay-payment-gateway.php:889 318 msgid "Payment accepted." 319 msgstr "" 320 270 321 #: visma-pay-payment-gateway.php:901 271 #: visma-pay-payment-gateway.php:904272 msgid "Visma Pay order"273 msgstr ""274 275 #: visma-pay-payment-gateway.php:739276 msgid "Payment pending. Waiting for result."277 msgstr ""278 279 #: visma-pay-payment-gateway.php:762280 msgid "Visma Pay system is currently in maintenance. Please try again in a few minutes."281 msgstr ""282 283 #: visma-pay-payment-gateway.php:769284 #: visma-pay-payment-gateway.php:783285 msgid "Payment failed due to an error."286 msgstr ""287 288 #: visma-pay-payment-gateway.php:866289 msgid "Payment method: Card payment"290 msgstr ""291 292 #: visma-pay-payment-gateway.php:867293 msgid "Card payment info: "294 msgstr ""295 296 #: visma-pay-payment-gateway.php:872297 msgid "Verified: "298 msgstr ""299 300 #: visma-pay-payment-gateway.php:875301 msgid "Card country: "302 msgstr ""303 304 #: visma-pay-payment-gateway.php:876305 msgid "Client IP country: "306 msgstr ""307 308 #: visma-pay-payment-gateway.php:881309 msgid "Error: "310 msgstr ""311 312 #: visma-pay-payment-gateway.php:885313 msgid "Payment method: "314 msgstr ""315 316 #: visma-pay-payment-gateway.php:901317 msgid "Payment is authorized. Use settle option to capture funds."318 msgstr ""319 320 #: visma-pay-payment-gateway.php:904321 msgid "Payment accepted."322 msgstr ""323 324 #: visma-pay-payment-gateway.php:916325 322 msgid "Payment was not accepted." 326 323 msgstr "" 327 324 328 #: visma-pay-payment-gateway.php:9 24325 #: visma-pay-payment-gateway.php:909 329 326 msgid "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." 330 327 msgstr "" 331 328 332 #: visma-pay-payment-gateway.php:9 32329 #: visma-pay-payment-gateway.php:917 333 330 msgid "Maintenance break. The transaction is not created and the user has been notified and transferred back to the cancel address." 334 331 msgstr "" 335 332 336 #: visma-pay-payment-gateway.php:9 64333 #: visma-pay-payment-gateway.php:949 337 334 msgid "Card payment failed. Your card has not been charged." 338 335 msgstr "" 339 336 340 #: visma-pay-payment-gateway.php:9 66337 #: visma-pay-payment-gateway.php:951 341 338 msgid "Payment was canceled or charge was not accepted." 342 339 msgstr "" 343 340 344 #: visma-pay-payment-gateway.php: 1011341 #: visma-pay-payment-gateway.php:996 345 342 msgid "Payment settled." 346 343 msgstr "" 347 344 348 #: visma-pay-payment-gateway.php:10 29345 #: visma-pay-payment-gateway.php:1014 349 346 msgid "Settle payment" 350 347 msgstr "" 351 348 352 #: visma-pay-payment-gateway.php:10 53349 #: visma-pay-payment-gateway.php:1038 353 350 msgid "Settlement was successful." 354 351 msgstr "" 355 352 356 #: visma-pay-payment-gateway.php:10 56353 #: visma-pay-payment-gateway.php:1041 357 354 msgid "Settlement failed. Validation failed." 358 355 msgstr "" 359 356 360 #: visma-pay-payment-gateway.php:10 59357 #: visma-pay-payment-gateway.php:1044 361 358 msgid "Settlement failed. Either the payment has already been settled or the payment gateway refused to settle payment for given transaction." 362 359 msgstr "" 363 360 364 #: visma-pay-payment-gateway.php:10 62361 #: visma-pay-payment-gateway.php:1047 365 362 msgid "Settlement failed. Unknown error." 366 363 msgstr "" 367 364 368 #: visma-pay-payment-gateway.php:10 69365 #: visma-pay-payment-gateway.php:1054 369 366 msgid "Exception, error: " 370 367 msgstr "" 371 368 372 #: visma-pay-payment-gateway.php:11 16369 #: visma-pay-payment-gateway.php:1101 373 370 msgid "The card is reported lost or stolen." 374 371 msgstr "" 375 372 376 #: visma-pay-payment-gateway.php:11 18373 #: visma-pay-payment-gateway.php:1103 377 374 msgid "General decline. The card holder should contact the issuer to find out why the payment failed." 378 375 msgstr "" 379 376 380 #: visma-pay-payment-gateway.php:11 20377 #: visma-pay-payment-gateway.php:1105 381 378 msgid "Insufficient funds. The card holder should verify that there is balance on the account and the online payments are actived." 382 379 msgstr "" 383 380 384 #: visma-pay-payment-gateway.php:11 22381 #: visma-pay-payment-gateway.php:1107 385 382 msgid "Expired card." 386 383 msgstr "" 387 384 385 #: visma-pay-payment-gateway.php:1109 386 msgid "Withdrawal amount limit exceeded." 387 msgstr "" 388 389 #: visma-pay-payment-gateway.php:1111 390 msgid "Restricted card. The card holder should verify that the online payments are actived." 391 msgstr "" 392 393 #: visma-pay-payment-gateway.php:1113 394 msgid "Timeout communicating with the acquirer. The payment should be tried again later." 395 msgstr "" 396 388 397 #: visma-pay-payment-gateway.php:1124 389 msgid " Withdrawal amount limit exceeded."398 msgid "3-D Secure was used." 390 399 msgstr "" 391 400 392 401 #: visma-pay-payment-gateway.php:1126 393 msgid " Restricted card. The card holder should verify that the online payments are actived."402 msgid "3-D Secure was not used." 394 403 msgstr "" 395 404 396 405 #: 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:1139401 msgid "3-D Secure was used."402 msgstr ""403 404 #: visma-pay-payment-gateway.php:1141405 msgid "3-D Secure was not used."406 msgstr ""407 408 #: visma-pay-payment-gateway.php:1143409 406 msgid "3-D Secure was attempted but not supported by the card issuer or the card holder is not participating." 410 407 msgstr "" -
visma-pay-payment-gateway/trunk/readme.txt
r3149116 r3253978 4 4 Tags: payment gateway, visma, pay, verkkomaksut, pankit, vismapay 5 5 Requires at least: 3.3 6 Tested up to: 6. 6.16 Tested up to: 6.7.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 WC requires at least: 3.0.0 11 WC tested up to: 9. 1.411 WC tested up to: 9.7.1 12 12 13 13 Visma Pay plugin for Woocommerce. … … 39 39 40 40 == Changelog == 41 42 = 1.1.6 = 43 * Updated 'tested up to' versions. 44 * Removed Alisa Yrityslasku 41 45 42 46 = 1.1.5 = -
visma-pay-payment-gateway/trunk/visma-pay-payment-gateway.php
r3149116 r3253978 4 4 * Plugin URI: https://www.vismapay.com/docs 5 5 * Description: Visma Pay Payment Gateway Integration for Woocommerce 6 * Version: 1.1. 56 * Version: 1.1.6 7 7 * Author: Visma 8 8 * Author URI: https://www.visma.fi/vismapay/ … … 10 10 * Domain Path: /languages 11 11 * WC requires at least: 3.0.0 12 * WC tested up to: 9. 1.412 * WC tested up to: 9.7.1 13 13 */ 14 14 … … 65 65 protected $ccards; 66 66 protected $cinvoices; 67 protected $laskuyritykselle;68 67 protected $send_items; 69 68 protected $send_receipt; … … 98 97 $this->ccards = $this->get_option('ccards'); 99 98 $this->cinvoices = $this->get_option('cinvoices'); 100 $this->laskuyritykselle = $this->get_option('laskuyritykselle');101 99 102 100 $this->send_items = $this->get_option('send_items'); … … 278 276 'default' => 'yes' 279 277 ), 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 )286 278 )); 287 279 } … … 314 306 else if($method->group == 'creditinvoices') 315 307 { 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>'; 324 309 } 325 310 } … … 442 427 } 443 428 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') 452 430 { 453 431 continue; … … 481 459 482 460 $order = new WC_Order($order_id); 483 $wc_order_id = $order->get_id();484 461 $wc_order_total = $order->get_total(); 485 462 … … 663 640 if($this->cinvoices == 'yes') 664 641 $vp_selected[] = 'creditinvoices'; 665 if($this->laskuyritykselle == 'yes')666 $vp_selected[] = 'laskuyritykselle';667 642 } 668 643 else if($this->limit_currencies == 'no') … … 698 673 else if($method->group == 'creditinvoices') 699 674 { 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))) 708 676 { 709 677 $vp_selected[] = $method->selected_value; … … 864 832 $this->visma_pay_die("Order not found."); 865 833 866 $wc_order_id = $order->get_id();867 834 $wc_order_status = $order->get_status(); 868 835
Note: See TracChangeset
for help on using the changeset viewer.