Changeset 2932350
- Timestamp:
- 06/29/2023 03:21:48 PM (3 years ago)
- Location:
- sprinque
- Files:
-
- 38 edited
- 1 copied
-
tags/1.3.6 (copied) (copied from sprinque/trunk)
-
tags/1.3.6/assets/js/frontend.js (modified) (3 diffs)
-
tags/1.3.6/include/payment_method.php (modified) (9 diffs)
-
tags/1.3.6/languages/sprinque-de_DE.mo (modified) (previous)
-
tags/1.3.6/languages/sprinque-de_DE.po (modified) (4 diffs)
-
tags/1.3.6/languages/sprinque-en_US.mo (modified) (previous)
-
tags/1.3.6/languages/sprinque-en_US.po (modified) (1 diff)
-
tags/1.3.6/languages/sprinque-es_ES.mo (modified) (previous)
-
tags/1.3.6/languages/sprinque-es_ES.po (modified) (1 diff)
-
tags/1.3.6/languages/sprinque-fr_FR.mo (modified) (previous)
-
tags/1.3.6/languages/sprinque-fr_FR.po (modified) (1 diff)
-
tags/1.3.6/languages/sprinque-nl_NL.mo (modified) (previous)
-
tags/1.3.6/languages/sprinque-nl_NL.po (modified) (1 diff)
-
tags/1.3.6/languages/sprinque-pl_PL.mo (modified) (previous)
-
tags/1.3.6/languages/sprinque-pl_PL.po (modified) (13 diffs)
-
tags/1.3.6/languages/sprinque.po (modified) (1 diff)
-
tags/1.3.6/languages/sprinque.pot (modified) (1 diff)
-
tags/1.3.6/readme.txt (modified) (2 diffs)
-
tags/1.3.6/sprinque.php (modified) (4 diffs)
-
tags/1.3.6/templates/frontend/srinque_pay_modal_form.php (modified) (1 diff)
-
trunk/assets/js/frontend.js (modified) (3 diffs)
-
trunk/include/payment_method.php (modified) (9 diffs)
-
trunk/languages/sprinque-de_DE.mo (modified) (previous)
-
trunk/languages/sprinque-de_DE.po (modified) (4 diffs)
-
trunk/languages/sprinque-en_US.mo (modified) (previous)
-
trunk/languages/sprinque-en_US.po (modified) (1 diff)
-
trunk/languages/sprinque-es_ES.mo (modified) (previous)
-
trunk/languages/sprinque-es_ES.po (modified) (1 diff)
-
trunk/languages/sprinque-fr_FR.mo (modified) (previous)
-
trunk/languages/sprinque-fr_FR.po (modified) (1 diff)
-
trunk/languages/sprinque-nl_NL.mo (modified) (previous)
-
trunk/languages/sprinque-nl_NL.po (modified) (1 diff)
-
trunk/languages/sprinque-pl_PL.mo (modified) (previous)
-
trunk/languages/sprinque-pl_PL.po (modified) (13 diffs)
-
trunk/languages/sprinque.po (modified) (1 diff)
-
trunk/languages/sprinque.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sprinque.php (modified) (4 diffs)
-
trunk/templates/frontend/srinque_pay_modal_form.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sprinque/tags/1.3.6/assets/js/frontend.js
r2920051 r2932350 826 826 error: function (response) { 827 827 if( response.status === 403 ) { 828 const currentErrorClass = 'message' in response.responseJSON ? response.responseJSON.message : ''; 828 829 let language = document.documentElement.lang; 830 language = language.replace('_', '-'); 831 language = language.split('-'); 832 language = language.shift(); 833 834 const $currentError = 'message' in response.responseJSON ? response.responseJSON.message : ''; 829 835 const $newBusinessContainer = $('.search_already_added_company'); 830 836 const $errorsContainer = $('.verifying_your_account'); 831 837 const $spinner = $errorsContainer.find('.wpm-loader'); 832 838 const $errorsList = $errorsContainer.find('.cant-complete-autorization'); 833 const $error s = $errorsContainer.find('.verify-error-explanation');834 const $currentError = $errorsList.find(currentErrorClass);839 const $errorMessageElement = $errorsContainer.find('.verify-error'); 840 const errorMessage = Sprinque.getTranslatedApiError(language, $currentError); 835 841 836 842 if($currentError.length) { 837 843 $newBusinessContainer.hide(); 838 $errors.hide();839 844 $spinner.hide(); 840 845 $errorsList.show(); 841 $currentError.show();842 846 $errorsContainer.show(); 847 $errorMessageElement.show().html(errorMessage); 843 848 } 844 849 } … … 985 990 }, 1000); 986 991 } else { 987 var modal_class = 'modal-middle';988 989 992 showTab('.verifying_your_account'); 990 993 $('.cant-complete-autorization').show(); … … 993 996 $('.verify-error-explanation, .verify-error').hide(); 994 997 995 if(response.result.error_code === 'auth-credit-exceeded') {996 $('.verify-credit-exceeded').show(); 997 } else if (response.result.error_code === 'auth-credit-rejected') {998 $('.auth-credit-rejected-error').show();999 } else if (response.result.error_code === 'auth-amount-exceeded') {1000 $('.auth-amount-more-then-default-error').show();1001 } else if (response.result.error_code === 'auth-credit-not-found') { 1002 $('.auth-credit-not-found-error').show();1003 } else if (response.result.error_code === 'auth-buyer-inactive') {1004 $('.auth-buyer-inactive-error').show();1005 } else if (response.result.error_code === 'auth-buyer-blocked') {1006 $('.auth-buyer-blocked-error').show();1007 } else if (response.result.error_code === 'auth-buyer-not-found') {1008 $('.auth-buyer-not-found-error').show();998 const is_error_by_code = typeof response.result.error_code !== "undefined" && response.result.error_code.length > 0; 999 1000 let language = document.documentElement.lang; 1001 language = language.replace('_', '-'); 1002 language = language.split('-'); 1003 language = language.shift(); 1004 1005 const modal_class = is_error_by_code ? 'modal-middle' : ''; 1006 if (is_error_by_code) { 1007 const errors = []; 1008 for (let key in response.result.errors) { 1009 errors.push(Sprinque.getTranslatedApiError(language, key)); 1010 } 1011 message = errors.join("<br>"); 1009 1012 } else { 1010 $('.verify-error').show() 1011 .html(response.message); 1012 modal_class = ''; 1013 message = response.message; 1013 1014 } 1015 1016 $('.verify-error').show().html(message); 1014 1017 1015 1018 if (modal_class.length > 0) { -
sprinque/tags/1.3.6/include/payment_method.php
r2919712 r2932350 232 232 */ 233 233 public function sprinque_register_buyer_api() { 234 if ( ! session_id() ) { 235 session_cache_limiter('public'); 236 session_start(); 237 } 234 238 235 if (! isset( $_POST['business_name'] ) ) { 239 236 return false; 237 } 238 239 // Dont start a sessions unless we are going to do things with the business name. 240 if ( ! session_id() ) { 241 session_start(); 240 242 } 241 243 … … 365 367 // See the error classes /templates/frontend/srinque_pay_modal_form.php:109 366 368 $error = [ 367 'REJECTED' => ' .auth-credit-rejected-error',368 'BLOCKED' => ' .auth-buyer-blocked-error',369 'INACTIVE' => ' .auth-buyer-inactive-error',369 'REJECTED' => 'AuthCreditRejectedError', 370 'BLOCKED' => 'AuthBuyerBlockedError', 371 'INACTIVE' => 'AuthBuyerInactiveError', 370 372 ]; 371 373 … … 383 385 public function sprinque_authorize_company_order() { 384 386 if ( ! session_id() ) { 385 session_cache_limiter('public');386 387 session_start(); 387 388 } … … 396 397 $buyer_id = sanitize_text_field($_SESSION['buyer_id']); 397 398 } 399 400 $buyer = $this->srinque_api( [], 'GET', "/buyers/{$buyer_id}" ); 398 401 399 402 // Get the user's IP address … … 416 419 'metadata' => [ 417 420 'IPv4' => !strpos($ip, ':') !== false ? $ip : '', 418 'IPv6' => strpos($ip, ':') !== false ? $ip : '' 421 'IPv6' => strpos($ip, ':') !== false ? $ip : '', 422 'business_name' => $buyer['business_name'] 419 423 ] 420 424 ]; … … 486 490 { 487 491 if ( ! session_id() ) { 488 session_cache_limiter('public');489 492 session_start(); 490 493 } … … 518 521 { 519 522 if ( ! session_id() ) { 520 session_cache_limiter('public');521 523 session_start(); 522 524 } … … 573 575 public function sprinque_get_buyer_info() { 574 576 if ( ! session_id() ) { 575 session_cache_limiter('public');576 577 session_start(); 577 578 } … … 756 757 public function process_payment( $order_id ) { 757 758 if ( ! session_id() ) { 758 session_cache_limiter('public');759 759 session_start(); 760 760 } -
sprinque/tags/1.3.6/languages/sprinque-de_DE.po
r2919808 r2932350 56 56 msgstr "Überprüft" 57 57 58 #, fuzzy59 58 msgid "Billing or Accounts Payable email" 60 msgstr "E-Mail für Rechnungsstellung oder Kreditorenbuchhaltung"59 msgstr "E-Mail für Rechnungsstellung oder Buchhaltung" 61 60 62 61 #: templates/frontend/srinque_pay_modal_form.php:36 … … 163 162 #: sprinque.php:259 164 163 #: sprinque.php:451 165 #, fuzzy166 164 msgid "Net terms fee" 167 msgstr "Netto- Laufzeitgebühr"165 msgstr "Netto-Zahlungsziel Gebühr" 168 166 169 167 #: templates/frontend/srinque_pay_modal_form.php:53 … … 256 254 #: templates/frontend/srinque_pay_modal_form.php:113 257 255 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 258 msgstr "Die Genehmigung kann bis zu 24 Stunden dauern. Ihre Bestellung ist nicht bestätigt, bis eine Entscheidung getroffen ist. <br>Wir werden Sie per E-Mail benachrichtigen, sobald die Prüfung abgeschlossen ist."256 msgstr "Die Genehmigung kann bis zu 24 Stunden dauern. Ihre Bestellung ist nicht bestätigt, bis eine Entscheidung getroffen ist. Wir werden Sie per E-Mail benachrichtigen, sobald die Prüfung abgeschlossen ist." 259 257 260 258 #: include/payment_method.php:481 … … 264 262 #: templates/frontend/srinque_pay_modal_form.php:12 265 263 msgid "To approve a payment term for you we need your company information to run a credit assessment" 266 msgstr "Um Ihnen ein Zahlungsziel zu gewähren, benötigen wir Ihre Unternehmensdaten, um eine Bonitätsprüfung durchzuführen "264 msgstr "Um Ihnen ein Zahlungsziel zu gewähren, benötigen wir Ihre Unternehmensdaten, um eine Bonitätsprüfung durchzuführen." 267 265 268 266 #: templates/frontend/srinque_pay_modal_form.php:64 -
sprinque/tags/1.3.6/languages/sprinque-en_US.po
r2919808 r2932350 32 32 msgstr "Apartment, suite, etc. (optional)" 33 33 34 #: templates/frontend/srinque_pay_modal_form.php:9135 msgid "AuthCreditExceededError"36 msgstr "Authorization request exceeds the available credit limit"37 38 #: templates/frontend/srinque_pay_modal_form.php:9139 msgid "AuthBuyerNotFoundError"40 msgstr "Business does not exist"41 42 #: templates/frontend/srinque_pay_modal_form.php:9143 msgid "AuthBuyerBlockedError"44 msgstr "Business has been blocked"45 46 #: templates/frontend/srinque_pay_modal_form.php:9147 msgid "AuthBuyerInactiveError"48 msgstr "Business is inactive"49 50 #: templates/frontend/srinque_pay_modal_form.php:9151 msgid "AuthCreditNotFoundError"52 msgstr "Credit limit for this buyer is not set"53 54 #: templates/frontend/srinque_pay_modal_form.php:9155 msgid "AuthCreditRejectedError"56 msgstr "Business rejected for credit"57 58 #: templates/frontend/srinque_pay_modal_form.php:9159 msgid "AuthAmountMoreThanDefault"60 msgstr "Authorized amount is more then default setting"61 62 34 msgid "VAT ID" 63 35 msgstr "VAT ID" -
sprinque/tags/1.3.6/languages/sprinque-es_ES.po
r2919808 r2932350 256 256 #: templates/frontend/srinque_pay_modal_form.php:113 257 257 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 258 msgstr "La aprobación puede tardar hasta 24 horas. Tu pedido no estará confirmado hasta que se tome una decisión. <br>Te notificaremos por email una vez finalizada la revisión."258 msgstr "La aprobación puede tardar hasta 24 horas. Tu pedido no estará confirmado hasta que se tome una decisión. Te notificaremos por email una vez finalizada la revisión." 259 259 260 260 #: include/payment_method.php:481 -
sprinque/tags/1.3.6/languages/sprinque-fr_FR.po
r2919808 r2932350 256 256 #: templates/frontend/srinque_pay_modal_form.php:113 257 257 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 258 msgstr "L'approbation peut prendre jusqu'à 24 heures. Votre commande n'est pas confirmée tant qu'une décision n'a pas été prise. <br>Nous vous informerons par courriel une fois l'examen terminé."258 msgstr "L'approbation peut prendre jusqu'à 24 heures. Votre commande n'est pas confirmée tant qu'une décision n'a pas été prise. Nous vous informerons par courriel une fois l'examen terminé." 259 259 260 260 #: include/payment_method.php:481 -
sprinque/tags/1.3.6/languages/sprinque-nl_NL.po
r2920051 r2932350 256 256 #: templates/frontend/srinque_pay_modal_form.php:113 257 257 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 258 msgstr "Je verzoek om op factuur te betalen wordt behandeld, dit kan 24 uur duren. Je bestelling is nog niet bevestigd tot beoordeling is afgerond. <br>We sturen je een bericht zodra de beoordeling voltooid is."258 msgstr "Je verzoek om op factuur te betalen wordt behandeld, dit kan 24 uur duren. Je bestelling is nog niet bevestigd tot beoordeling is afgerond. We sturen je een bericht zodra de beoordeling voltooid is." 259 259 260 260 #: include/payment_method.php:481 -
sprinque/tags/1.3.6/languages/sprinque-pl_PL.po
r2919808 r2932350 9 9 10 10 #: templates/frontend/srinque_pay_modal_form.php:102 11 #, fuzzy12 11 msgid "(in :sec seconds)" 13 12 msgstr "(w :sek sekundach)" 14 13 15 14 #: sprinque.php:442 templates/ajax/founded_companies.php:22 16 #, fuzzy17 15 msgid "Add buyer manually" 18 16 msgstr "Dodaj kupującego ręcznie" 19 17 20 18 #: templates/frontend/srinque_pay_modal_form.php:38 21 #, fuzzy22 19 msgid "Address" 23 20 msgstr "Adres" 24 21 25 22 #: templates/frontend/srinque_pay_modal_form.php:42 26 #, fuzzy27 23 msgid "Apartment, suite, etc (optional)" 28 24 msgstr "Mieszkanie, apartament itp. (opcjonalnie)" 29 25 30 26 #: templates/frontend/srinque_pay_modal_form.php:91 31 #, fuzzy32 27 msgid "AuthAmountMoreThanDefault" 33 28 msgstr "Autoryzowana kwota jest wyższa niż ustawienie domyślne" 34 29 35 30 #: templates/frontend/srinque_pay_modal_form.php:91 36 #, fuzzy37 31 msgid "AuthBuyerBlockedError" 38 msgstr "Działalność została zablokowana" 39 40 #: templates/frontend/srinque_pay_modal_form.php:91 41 #, fuzzy 32 msgstr "Firma została zablokowana" 33 34 #: templates/frontend/srinque_pay_modal_form.php:91 42 35 msgid "AuthBuyerInactiveError" 43 36 msgstr "Firma jest nieaktywna" 44 37 45 38 #: templates/frontend/srinque_pay_modal_form.php:91 46 #, fuzzy47 39 msgid "AuthBuyerNotFoundError" 48 msgstr " Biznesnie istnieje"40 msgstr "Firma nie istnieje" 49 41 50 42 # When the order amount is larger than the available credit limit 51 #, fuzzy52 43 msgid "AuthCreditExceededError" 53 44 msgstr "Żądanie autoryzacji przekracza dostępny limit kredytowy" 54 45 55 46 #: templates/frontend/srinque_pay_modal_form.php:91 56 #, fuzzy57 47 msgid "AuthCreditNotFoundError" 58 48 msgstr "Limit kredytowy dla tego kupującego nie został ustawiony" 59 49 60 50 #: templates/frontend/srinque_pay_modal_form.php:91 61 #, fuzzy62 51 msgid "AuthCreditRejectedError" 63 52 msgstr "Odrzucenie wniosku o kredyt dla firmy" 64 53 65 54 #: sprinque.php:392 sprinque.php:418 66 #, fuzzy67 55 msgid "Awaiting Review" 68 msgstr "Oczekiwanie na recenzję" 69 70 #, fuzzy 56 msgstr "Oczekiwanie na weryfikację" 57 71 58 msgid "Billing or Accounts Payable email" 72 59 msgstr "Wiadomość e-mail dotycząca rozliczeń lub zobowiązań" 73 60 74 61 #: templates/frontend/srinque_pay_modal_form.php:36 75 #, fuzzy76 62 msgid "Business address" 77 63 msgstr "Adres firmy" … … 79 65 #: sprinque.php:439 include/payment_method.php:111 80 66 #: include/payment_method.php:119 81 #, fuzzy82 67 msgid "Buy now and pay later for businesses" 83 68 msgstr "Kup teraz i zapłać później dla firm" 84 69 85 70 #: sprinque.php:441 templates/ajax/founded_companies.php:17 86 #, fuzzy87 71 msgid "Can't find the business you are looking for?" 88 72 msgstr "Nie możesz znaleźć firmy, której szukasz?" … … 91 75 #: templates/frontend/srinque_pay_modal_form.php:108 92 76 #: templates/frontend/srinque_pay_modal_form.php:116 93 #, fuzzy94 77 msgid "Choose another payment method" 95 78 msgstr "Wybierz inną metodę płatności" 96 79 97 80 #: templates/frontend/srinque_pay_modal_form.php:46 98 #, fuzzy99 81 msgid "City" 100 82 msgstr "Miasto" 101 83 102 84 #: sprinque.php:440 templates/ajax/founded_companies.php:3 103 #, fuzzy104 85 msgid "Click here" 105 86 msgstr "Kliknij tutaj" … … 107 88 #: templates/frontend/srinque_pay_modal_form.php:21 108 89 #: templates/frontend/srinque_pay_modal_form.php:22 109 #, fuzzy110 90 msgid "Company Name" 111 91 msgstr "Nazwa firmy" 112 92 113 93 #: sprinque.php:440 templates/ajax/founded_companies.php:3 114 #, fuzzy115 94 msgid "Company not found" 116 95 msgstr "Nie znaleziono firmy?" 117 96 118 97 #: templates/frontend/srinque_pay_modal_form.php:29 119 #, fuzzy120 98 msgid "Company VAT ID" 121 msgstr "NIP spółki"99 msgstr "NIP firmy" 122 100 123 101 #: templates/frontend/srinque_pay_modal_form.php:31 124 102 #: templates/frontend/srinque_pay_modal_form.php:56 125 103 #: templates/frontend/srinque_pay_modal_form.php:75 126 #, fuzzy127 104 msgid "Confirm" 128 105 msgstr "Potwierdź" … … 130 107 #: templates/frontend/srinque_pay_modal_form.php:131 131 108 #: templates/frontend/cancel_order_sprinque.php:11 132 #, fuzzy133 109 msgid "Confirm cancelation" 134 msgstr "Potwierd zenie anulowania"110 msgstr "Potwierdź anulowanie" 135 111 136 112 #: templates/frontend/srinque_pay_modal_form.php:137 137 #, fuzzy138 113 msgid "Confirm order" 139 msgstr "Potwierd zenie zamówienia"114 msgstr "Potwierdź zamówienie" 140 115 141 116 #: templates/frontend/srinque_pay_modal_form.php:129 142 #, fuzzy143 117 msgid "Congratulations!" 144 118 msgstr "Gratulacje!" … … 146 120 #: templates/frontend/srinque_pay_modal_form.php:107 147 121 #: templates/frontend/srinque_pay_modal_form.php:114 148 #, fuzzy149 122 msgid "Continue and wait" 150 123 msgstr "Kontynuuj i czekaj" 151 124 152 125 #: templates/frontend/srinque_pay_modal_form.php:11 153 #, fuzzy154 126 msgid "Country" 155 127 msgstr "Kraj" 156 128 157 129 #: sprinque.php:546 158 #, fuzzy159 130 msgid "days" 160 msgstr " czasy"131 msgstr "dni" 161 132 162 133 #: templates/frontend/srinque_pay_modal_form.php:100 163 #, fuzzy164 134 msgid "days by Sprinque!" 165 135 msgstr "dni przez Sprinque!" 166 136 167 137 #: include/payment_method.php:501 168 #, fuzzy169 138 msgid "Enable Pay by Invoice" 170 msgstr "Włącz płatność przez fakturę"139 msgstr "Włącz płatność na podstawie faktury" 171 140 172 141 #: include/payment_method.php:499 173 #, fuzzy174 142 msgid "Enable/Disable" 175 msgstr "Włącz/ Wyłącz"143 msgstr "Włącz/wyłącz" 176 144 177 145 #: templates/frontend/srinque_pay_modal_form.php:82 178 146 #: templates/frontend/srinque_pay_modal_form.php:92 179 #, fuzzy180 147 msgid "Go Back" 181 148 msgstr "Wróć" 182 149 183 150 #. URI of the plugin 184 #, fuzzy185 151 msgid "https://sprinque.com/" 186 152 msgstr "https://sprinque.com/" 187 153 188 154 #: templates/frontend/srinque_pay_modal_form.php:79 189 #, fuzzy190 155 msgid "If you have not received the code, please check your spam folder or" 191 156 msgstr "Jeśli nie otrzymałeś kodu, sprawdź folder spamu lub" 192 157 193 158 #: sprinque.php:444 194 #, fuzzy195 159 msgid "Loading..." 196 160 msgstr "Ładowanie..." … … 198 162 #: sprinque.php:259 199 163 #: sprinque.php:451 200 #, fuzzy201 164 msgid "Net terms fee" 202 165 msgstr "Opłata za warunki netto" 203 166 204 167 #: templates/frontend/srinque_pay_modal_form.php:53 205 #, fuzzy206 168 msgid "Not all fields filled on Billing or Modal" 207 169 msgstr "Nie wszystkie pola są wypełnione na stronie Billing lub Modal" 208 170 209 171 #: sprinque.php:443 210 #, fuzzy211 172 msgid "Not all required fields are filled" 212 173 msgstr "Nie wszystkie wymagane pola są wypełnione" 213 174 214 175 #: include/payment_method.php:120 215 #, fuzzy216 176 msgid "Order finished with Pay by Invoice" 217 msgstr "Zamówienie zakończone z płatnością przez fakturę"177 msgstr "Zamówienie zakończone płatnością na podstawie faktury" 218 178 219 179 #: sprinque.php:438 include/payment_method.php:110 220 180 #: include/payment_method.php:118 221 #, fuzzy222 181 msgid "Pay by Invoice" 223 msgstr "Płatność fakturąprzez Sprinque"182 msgstr "Płatność na podstawie faktury przez Sprinque" 224 183 225 184 #: include/payment_method.php:549 include/payment_method.php:553 226 #, fuzzy227 185 msgid "Pay by Invoice - Business only" 228 msgstr "Płatność fakturą -tylko dla firm"186 msgstr "Płatność na podstawie faktury — tylko dla firm" 229 187 230 188 #: sprinque.php:211 231 #, fuzzy232 189 msgid "Pay by Invoice - Cancelled" 233 msgstr "Płatność fakturą - anulowane"190 msgstr "Płatność na podstawie faktury — anulowana" 234 191 235 192 #: templates/frontend/srinque_pay_modal_form.php:101 236 193 #: templates/frontend/srinque_pay_modal_form.php:122 237 #, fuzzy238 194 msgid "Place order" 239 195 msgstr "Złóż zamówienie" 240 196 241 197 #: templates/frontend/srinque_pay_modal_form.php:126 242 #, fuzzy243 198 msgid "Placing your order" 244 199 msgstr "Składanie zamówienia" 245 200 246 201 #: templates/frontend/srinque_pay_modal_form.php:9 247 #, fuzzy248 202 msgid "Please select your business" 249 203 msgstr "Wybierz swoją firmę" 250 204 251 205 #: templates/frontend/srinque_pay_modal_form.php:50 252 #, fuzzy253 206 msgid "Postal code" 254 207 msgstr "Kod pocztowy" 255 208 256 209 #: templates/frontend/srinque_pay_modal_form.php:55 257 #, fuzzy258 210 msgid "Previous step" 259 211 msgstr "Poprzedni krok" … … 261 213 #: templates/frontend/srinque_pay_modal_form.php:99 262 214 #: templates/frontend/srinque_pay_modal_form.php:120 263 #, fuzzy264 215 msgid "Purchase approved" 265 216 msgstr "Zakup zatwierdzony" … … 267 218 #: templates/frontend/srinque_pay_modal_form.php:105 268 219 #: templates/frontend/srinque_pay_modal_form.php:112 269 #, fuzzy270 220 msgid "Purchase under review" 271 221 msgstr "Zakup w trakcie przeglądu" … … 273 223 #: templates/frontend/srinque_pay_modal_form.php:26 274 224 #: templates/frontend/srinque_pay_modal_form.php:27 275 #, fuzzy276 225 msgid "Registration number" 277 226 msgstr "Numer rejestracyjny" 278 227 279 228 #: include/payment_method.php:301 280 #, fuzzy281 229 msgid "Registration number is already used" 282 230 msgstr "Numer rejestracyjny jest już używany" 283 231 284 232 #: templates/frontend/srinque_pay_modal_form.php:79 285 #, fuzzy286 233 msgid "Resend Code" 287 234 msgstr "Wyślij ponownie kod" 288 235 289 236 #: templates/frontend/srinque_pay_modal_form.php:12 290 #, fuzzy291 237 msgid "Select a country" 292 238 msgstr "Wybierz kraj" 293 239 294 240 #: sprinque.php:419 295 #, fuzzy296 241 msgid "Shipping" 297 242 msgstr "Wysyłka" … … 299 244 #. Name of the plugin 300 245 #. Author of the plugin 301 #, fuzzy302 246 msgid "Sprinque" 303 247 msgstr "Sprinque" 304 248 305 249 #. Description of the plugin 306 #, fuzzy307 250 msgid "Sprinque for WordPress is a plugin that allows you to offer your business buyers net payment terms (15, 30, 60, 90 days) and thereby grow conversion and retention." 308 251 msgstr "Sprinque dla WordPress to wtyczka, która pozwala zaoferować kupującym warunki płatności netto (15, 30, 60, 90 dni), a tym samym zwiększyć konwersję i retencję." … … 310 253 #: templates/frontend/srinque_pay_modal_form.php:106 311 254 #: templates/frontend/srinque_pay_modal_form.php:113 312 #, fuzzy313 255 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 314 msgstr "Zatwierdzenie może potrwać do 24 godzin. Zamówienie nie zostanie potwierdzone do momentu podjęcia decyzji. <br>Po zakończeniu weryfikacji powiadomimy Cię e-mailem."256 msgstr "Zatwierdzenie może potrwać do 24 godzin. Zamówienie nie zostanie potwierdzone do momentu podjęcia decyzji. Po zakończeniu weryfikacji otrzymasz wiadomość e-mail." 315 257 316 258 #: include/payment_method.php:481 317 #, fuzzy318 259 msgid "Title" 319 260 msgstr "Tytuł" 320 261 321 262 #: templates/frontend/srinque_pay_modal_form.php:12 322 #, fuzzy323 263 msgid "To approve a payment term for you we need your company information to run a credit assessment" 324 264 msgstr "Aby zatwierdzić termin płatności, potrzebujemy informacji o firmie w celu przeprowadzenia oceny kredytowej" 325 265 326 266 #: templates/frontend/srinque_pay_modal_form.php:64 327 #, fuzzy328 267 msgid "To make sure it's really you we have sent a code to" 329 268 msgstr "Aby upewnić się, że to naprawdę Ty, wysłaliśmy kod na adres" 330 269 331 270 #: sprinque.php:440 templates/ajax/founded_companies.php:3 332 #, fuzzy333 271 msgid "to use it anyway" 334 272 msgstr "i tak go używać" 335 273 336 274 #: templates/frontend/srinque_pay_modal_form.php:133 337 #, fuzzy338 275 msgid "Total amount" 339 276 msgstr "Łączna kwota" 340 277 341 #, fuzzy342 278 msgid "VAT ID" 343 msgstr " VAT ID"279 msgstr "NIP" 344 280 345 281 #: templates/frontend/srinque_pay_modal_form.php:62 346 #, fuzzy347 282 msgid "Verify your email" 348 283 msgstr "Zweryfikuj swój adres e-mail" 349 284 350 285 #: templates/frontend/srinque_pay_modal_form.php:87 351 #, fuzzy352 286 msgid "We are verifying your account" 353 287 msgstr "Weryfikujemy konto użytkownika" 354 288 355 289 #: templates/frontend/srinque_pay_modal_form.php:77 356 #, fuzzy357 290 msgid "Wrong code number" 358 291 msgstr "Nieprawidłowy numer kodu" 359 292 360 293 #: templates/frontend/srinque_pay_modal_form.php:121 361 #, fuzzy362 294 msgid "You have been approved for a credit limit of €xx and a payment term of 30 days by Sprinque!" 363 msgstr "Otrzymałeś zgodę na limit kredytowy w wysokości €xx i termin płatności 30 dni odSprinque!"295 msgstr "Otrzymałeś zgodę na limit kredytowy w wysokości xx EUR i termin płatności 30 dni przez Sprinque!" 364 296 365 297 #: templates/frontend/srinque_pay_modal_form.php:100 366 #, fuzzy367 298 msgid "You have been approved for a payment term of" 368 299 msgstr "Zostałeś zatwierdzony na okres płatności wynoszący" … … 370 301 #: include/payment_method.php:420 include/payment_method.php:450 371 302 #, php-format 372 #, fuzzy373 303 msgid "You have been approved for a payment term of %s days by Sprinque!" 374 304 msgstr "Zostałeś zatwierdzony na okres płatności %s dni przez Sprinque!" 375 305 376 306 #: templates/frontend/srinque_pay_modal_form.php:130 377 #, fuzzy378 307 msgid "You've been approved to pay with net terms. Select the payment term that best suits your company" 379 msgstr "Zostałeś zatwierdzony do płatności netto. Wybierz termin płatności, który najlepiej pasuje do Twojej firmy"308 msgstr "Zostałeś zatwierdzony do płatności netto. Wybierz termin płatności, który najlepiej pasuje Twojej firmie" -
sprinque/tags/1.3.6/languages/sprinque.po
r2919808 r2932350 69 69 msgstr "" 70 70 71 72 #: templates/frontend/srinque_pay_modal_form.php:9173 msgid "AuthCreditExceededError"74 msgstr ""75 76 #: templates/frontend/srinque_pay_modal_form.php:9177 msgid "AuthBuyerNotFoundError"78 msgstr ""79 80 #: templates/frontend/srinque_pay_modal_form.php:9181 msgid "AuthBuyerBlockedError"82 msgstr ""83 84 #: templates/frontend/srinque_pay_modal_form.php:9185 msgid "AuthBuyerInactiveError"86 msgstr ""87 88 #: templates/frontend/srinque_pay_modal_form.php:9189 msgid "AuthCreditNotFoundError"90 msgstr ""91 92 #: templates/frontend/srinque_pay_modal_form.php:9193 msgid "AuthCreditRejectedError"94 msgstr ""95 96 #: templates/frontend/srinque_pay_modal_form.php:9197 msgid "AuthAmountMoreThanDefault"98 msgstr ""99 100 71 #: templates/frontend/srinque_pay_modal_form.php:31 101 72 msgid "VAT ID" -
sprinque/tags/1.3.6/languages/sprinque.pot
r2919808 r2932350 33 33 msgstr "" 34 34 35 #: templates/frontend/srinque_pay_modal_form.php:11636 msgid "AuthAmountMoreThanDefault"37 msgstr ""38 39 #: templates/frontend/srinque_pay_modal_form.php:11940 msgid "AuthBuyerBlockedError"41 msgstr ""42 43 #: templates/frontend/srinque_pay_modal_form.php:11844 msgid "AuthBuyerInactiveError"45 msgstr ""46 47 #: templates/frontend/srinque_pay_modal_form.php:12048 msgid "AuthBuyerNotFoundError"49 msgstr ""50 51 #: templates/frontend/srinque_pay_modal_form.php:11452 msgid "AuthCreditExceededError"53 msgstr ""54 55 #: templates/frontend/srinque_pay_modal_form.php:11756 msgid "AuthCreditNotFoundError"57 msgstr ""58 59 #: templates/frontend/srinque_pay_modal_form.php:11560 msgid "AuthCreditRejectedError"61 msgstr ""62 63 35 #: sprinque.php:499 sprinque.php:525 64 36 msgid "Awaiting Review" -
sprinque/tags/1.3.6/readme.txt
r2922962 r2932350 6 6 Tested up to: 6.0 7 7 Requires PHP: 5.3 8 Stable tag: 1.3. 58 Stable tag: 1.3.6 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 50 50 51 51 == Changelog == 52 53 = 1.3.6 - June 29, 2023 = 54 * Deleted session_cache_limiter('public') in requests; 55 * Verified Polish translations; 56 * Used b2b-sprinque-tools for local errors translations; 57 * Pass business buyer name to metadata for auth call; 58 * Bumped b2b-sprinque-tools to v.1.3.6; 52 59 53 60 = 1.3.5 - June 7, 2023 = -
sprinque/tags/1.3.6/sprinque.php
r2922962 r2932350 5 5 Description: Sprinque for WordPress is a plugin that allows you to offer your business buyers net payment terms (15, 30, 60, 90 days) and thereby grow conversion and retention. 6 6 Author: Sprinque 7 Version: 1.3. 57 Version: 1.3.6 8 8 Text Domain: sprinque 9 9 Domain Path: /languages 10 10 */ 11 11 12 define( 'PLUGIN_SRINQUE_VERSION', '1.3. 5' );12 define( 'PLUGIN_SRINQUE_VERSION', '1.3.6' ); 13 13 define( 'PLUGIN_SRINQUE_DIR', __DIR__ ); 14 14 define( 'PLUGIN_SRINQUE_PATH', plugins_url( '', __FILE__ ) ); … … 421 421 $total = round($total, 2); 422 422 423 // Get buyer 424 $buyer = $this->srinque_api( [], 'GET', "/buyers/{$webhook['buyer_id']}" ); 425 423 426 // Prepare Data to Send 424 427 $data = [ … … 435 438 'metadata' => [ 436 439 'IPv4' => !strpos($ip_address, ':') !== false ? $ip_address : '', 437 'IPv6' => strpos($ip_address, ':') !== false ? $ip_address : '' 440 'IPv6' => strpos($ip_address, ':') !== false ? $ip_address : '', 441 'business_name' => $buyer['business_name'] 438 442 ] 439 443 ]; … … 614 618 // Register scripts 615 619 $settings = get_option( 'woocommerce_wpm_srinque_pay_settings', true ); 616 wp_enqueue_script( 'wpm_srinque_tools', 'https://unpkg.com/b2b-sprinque-tools@1.3. 2/dist/index.umd.min.js', array( ), PLUGIN_SRINQUE_VERSION, 'all' );620 wp_enqueue_script( 'wpm_srinque_tools', 'https://unpkg.com/b2b-sprinque-tools@1.3.6/dist/index.umd.min.js', array( ), PLUGIN_SRINQUE_VERSION, 'all' ); 617 621 wp_enqueue_script( 'wpm_srinque_pay', PLUGIN_SRINQUE_PATH . '/assets/js/frontend.js', array( 'jquery', 'wpm_srinque_tools' ), PLUGIN_SRINQUE_VERSION, 'all' ); 618 622 -
sprinque/tags/1.3.6/templates/frontend/srinque_pay_modal_form.php
r2919712 r2932350 119 119 <div class="cant-complete-autorization" style="display: none;"> 120 120 <div class="verify-error"></div> 121 <div class="verify-error-explanation verify-credit-exceeded"><?php _e( "AuthCreditExceededError", 'sprinque' ); ?></div>122 <div class="verify-error-explanation auth-credit-rejected-error"><?php _e( "AuthCreditRejectedError", 'sprinque' ); ?></div>123 <div class="verify-error-explanation auth-amount-more-then-default-error"><?php _e( "AuthAmountMoreThanDefault", 'sprinque' ); ?></div>124 <div class="verify-error-explanation auth-credit-not-found-error"><?php _e( "AuthCreditNotFoundError", 'sprinque' ); ?></div>125 <div class="verify-error-explanation auth-buyer-inactive-error"><?php _e( "AuthBuyerInactiveError", 'sprinque' ); ?></div>126 <div class="verify-error-explanation auth-buyer-blocked-error"><?php _e( "AuthBuyerBlockedError", 'sprinque' ); ?></div>127 <div class="verify-error-explanation auth-buyer-not-found-error"><?php _e( "AuthBuyerNotFoundError", 'sprinque' ); ?></div>128 121 <div class="pagination-btns"> 129 122 <button type="button" class="wpm-btn wpm-btn_outline-primary white_btn_pay to_select_companies"><?php _e( "Go Back", 'sprinque' ); ?></button> -
sprinque/trunk/assets/js/frontend.js
r2920051 r2932350 826 826 error: function (response) { 827 827 if( response.status === 403 ) { 828 const currentErrorClass = 'message' in response.responseJSON ? response.responseJSON.message : ''; 828 829 let language = document.documentElement.lang; 830 language = language.replace('_', '-'); 831 language = language.split('-'); 832 language = language.shift(); 833 834 const $currentError = 'message' in response.responseJSON ? response.responseJSON.message : ''; 829 835 const $newBusinessContainer = $('.search_already_added_company'); 830 836 const $errorsContainer = $('.verifying_your_account'); 831 837 const $spinner = $errorsContainer.find('.wpm-loader'); 832 838 const $errorsList = $errorsContainer.find('.cant-complete-autorization'); 833 const $error s = $errorsContainer.find('.verify-error-explanation');834 const $currentError = $errorsList.find(currentErrorClass);839 const $errorMessageElement = $errorsContainer.find('.verify-error'); 840 const errorMessage = Sprinque.getTranslatedApiError(language, $currentError); 835 841 836 842 if($currentError.length) { 837 843 $newBusinessContainer.hide(); 838 $errors.hide();839 844 $spinner.hide(); 840 845 $errorsList.show(); 841 $currentError.show();842 846 $errorsContainer.show(); 847 $errorMessageElement.show().html(errorMessage); 843 848 } 844 849 } … … 985 990 }, 1000); 986 991 } else { 987 var modal_class = 'modal-middle';988 989 992 showTab('.verifying_your_account'); 990 993 $('.cant-complete-autorization').show(); … … 993 996 $('.verify-error-explanation, .verify-error').hide(); 994 997 995 if(response.result.error_code === 'auth-credit-exceeded') {996 $('.verify-credit-exceeded').show(); 997 } else if (response.result.error_code === 'auth-credit-rejected') {998 $('.auth-credit-rejected-error').show();999 } else if (response.result.error_code === 'auth-amount-exceeded') {1000 $('.auth-amount-more-then-default-error').show();1001 } else if (response.result.error_code === 'auth-credit-not-found') { 1002 $('.auth-credit-not-found-error').show();1003 } else if (response.result.error_code === 'auth-buyer-inactive') {1004 $('.auth-buyer-inactive-error').show();1005 } else if (response.result.error_code === 'auth-buyer-blocked') {1006 $('.auth-buyer-blocked-error').show();1007 } else if (response.result.error_code === 'auth-buyer-not-found') {1008 $('.auth-buyer-not-found-error').show();998 const is_error_by_code = typeof response.result.error_code !== "undefined" && response.result.error_code.length > 0; 999 1000 let language = document.documentElement.lang; 1001 language = language.replace('_', '-'); 1002 language = language.split('-'); 1003 language = language.shift(); 1004 1005 const modal_class = is_error_by_code ? 'modal-middle' : ''; 1006 if (is_error_by_code) { 1007 const errors = []; 1008 for (let key in response.result.errors) { 1009 errors.push(Sprinque.getTranslatedApiError(language, key)); 1010 } 1011 message = errors.join("<br>"); 1009 1012 } else { 1010 $('.verify-error').show() 1011 .html(response.message); 1012 modal_class = ''; 1013 message = response.message; 1013 1014 } 1015 1016 $('.verify-error').show().html(message); 1014 1017 1015 1018 if (modal_class.length > 0) { -
sprinque/trunk/include/payment_method.php
r2919712 r2932350 232 232 */ 233 233 public function sprinque_register_buyer_api() { 234 if ( ! session_id() ) { 235 session_cache_limiter('public'); 236 session_start(); 237 } 234 238 235 if (! isset( $_POST['business_name'] ) ) { 239 236 return false; 237 } 238 239 // Dont start a sessions unless we are going to do things with the business name. 240 if ( ! session_id() ) { 241 session_start(); 240 242 } 241 243 … … 365 367 // See the error classes /templates/frontend/srinque_pay_modal_form.php:109 366 368 $error = [ 367 'REJECTED' => ' .auth-credit-rejected-error',368 'BLOCKED' => ' .auth-buyer-blocked-error',369 'INACTIVE' => ' .auth-buyer-inactive-error',369 'REJECTED' => 'AuthCreditRejectedError', 370 'BLOCKED' => 'AuthBuyerBlockedError', 371 'INACTIVE' => 'AuthBuyerInactiveError', 370 372 ]; 371 373 … … 383 385 public function sprinque_authorize_company_order() { 384 386 if ( ! session_id() ) { 385 session_cache_limiter('public');386 387 session_start(); 387 388 } … … 396 397 $buyer_id = sanitize_text_field($_SESSION['buyer_id']); 397 398 } 399 400 $buyer = $this->srinque_api( [], 'GET', "/buyers/{$buyer_id}" ); 398 401 399 402 // Get the user's IP address … … 416 419 'metadata' => [ 417 420 'IPv4' => !strpos($ip, ':') !== false ? $ip : '', 418 'IPv6' => strpos($ip, ':') !== false ? $ip : '' 421 'IPv6' => strpos($ip, ':') !== false ? $ip : '', 422 'business_name' => $buyer['business_name'] 419 423 ] 420 424 ]; … … 486 490 { 487 491 if ( ! session_id() ) { 488 session_cache_limiter('public');489 492 session_start(); 490 493 } … … 518 521 { 519 522 if ( ! session_id() ) { 520 session_cache_limiter('public');521 523 session_start(); 522 524 } … … 573 575 public function sprinque_get_buyer_info() { 574 576 if ( ! session_id() ) { 575 session_cache_limiter('public');576 577 session_start(); 577 578 } … … 756 757 public function process_payment( $order_id ) { 757 758 if ( ! session_id() ) { 758 session_cache_limiter('public');759 759 session_start(); 760 760 } -
sprinque/trunk/languages/sprinque-de_DE.po
r2919808 r2932350 56 56 msgstr "Überprüft" 57 57 58 #, fuzzy59 58 msgid "Billing or Accounts Payable email" 60 msgstr "E-Mail für Rechnungsstellung oder Kreditorenbuchhaltung"59 msgstr "E-Mail für Rechnungsstellung oder Buchhaltung" 61 60 62 61 #: templates/frontend/srinque_pay_modal_form.php:36 … … 163 162 #: sprinque.php:259 164 163 #: sprinque.php:451 165 #, fuzzy166 164 msgid "Net terms fee" 167 msgstr "Netto- Laufzeitgebühr"165 msgstr "Netto-Zahlungsziel Gebühr" 168 166 169 167 #: templates/frontend/srinque_pay_modal_form.php:53 … … 256 254 #: templates/frontend/srinque_pay_modal_form.php:113 257 255 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 258 msgstr "Die Genehmigung kann bis zu 24 Stunden dauern. Ihre Bestellung ist nicht bestätigt, bis eine Entscheidung getroffen ist. <br>Wir werden Sie per E-Mail benachrichtigen, sobald die Prüfung abgeschlossen ist."256 msgstr "Die Genehmigung kann bis zu 24 Stunden dauern. Ihre Bestellung ist nicht bestätigt, bis eine Entscheidung getroffen ist. Wir werden Sie per E-Mail benachrichtigen, sobald die Prüfung abgeschlossen ist." 259 257 260 258 #: include/payment_method.php:481 … … 264 262 #: templates/frontend/srinque_pay_modal_form.php:12 265 263 msgid "To approve a payment term for you we need your company information to run a credit assessment" 266 msgstr "Um Ihnen ein Zahlungsziel zu gewähren, benötigen wir Ihre Unternehmensdaten, um eine Bonitätsprüfung durchzuführen "264 msgstr "Um Ihnen ein Zahlungsziel zu gewähren, benötigen wir Ihre Unternehmensdaten, um eine Bonitätsprüfung durchzuführen." 267 265 268 266 #: templates/frontend/srinque_pay_modal_form.php:64 -
sprinque/trunk/languages/sprinque-en_US.po
r2919808 r2932350 32 32 msgstr "Apartment, suite, etc. (optional)" 33 33 34 #: templates/frontend/srinque_pay_modal_form.php:9135 msgid "AuthCreditExceededError"36 msgstr "Authorization request exceeds the available credit limit"37 38 #: templates/frontend/srinque_pay_modal_form.php:9139 msgid "AuthBuyerNotFoundError"40 msgstr "Business does not exist"41 42 #: templates/frontend/srinque_pay_modal_form.php:9143 msgid "AuthBuyerBlockedError"44 msgstr "Business has been blocked"45 46 #: templates/frontend/srinque_pay_modal_form.php:9147 msgid "AuthBuyerInactiveError"48 msgstr "Business is inactive"49 50 #: templates/frontend/srinque_pay_modal_form.php:9151 msgid "AuthCreditNotFoundError"52 msgstr "Credit limit for this buyer is not set"53 54 #: templates/frontend/srinque_pay_modal_form.php:9155 msgid "AuthCreditRejectedError"56 msgstr "Business rejected for credit"57 58 #: templates/frontend/srinque_pay_modal_form.php:9159 msgid "AuthAmountMoreThanDefault"60 msgstr "Authorized amount is more then default setting"61 62 34 msgid "VAT ID" 63 35 msgstr "VAT ID" -
sprinque/trunk/languages/sprinque-es_ES.po
r2919808 r2932350 256 256 #: templates/frontend/srinque_pay_modal_form.php:113 257 257 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 258 msgstr "La aprobación puede tardar hasta 24 horas. Tu pedido no estará confirmado hasta que se tome una decisión. <br>Te notificaremos por email una vez finalizada la revisión."258 msgstr "La aprobación puede tardar hasta 24 horas. Tu pedido no estará confirmado hasta que se tome una decisión. Te notificaremos por email una vez finalizada la revisión." 259 259 260 260 #: include/payment_method.php:481 -
sprinque/trunk/languages/sprinque-fr_FR.po
r2919808 r2932350 256 256 #: templates/frontend/srinque_pay_modal_form.php:113 257 257 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 258 msgstr "L'approbation peut prendre jusqu'à 24 heures. Votre commande n'est pas confirmée tant qu'une décision n'a pas été prise. <br>Nous vous informerons par courriel une fois l'examen terminé."258 msgstr "L'approbation peut prendre jusqu'à 24 heures. Votre commande n'est pas confirmée tant qu'une décision n'a pas été prise. Nous vous informerons par courriel une fois l'examen terminé." 259 259 260 260 #: include/payment_method.php:481 -
sprinque/trunk/languages/sprinque-nl_NL.po
r2920051 r2932350 256 256 #: templates/frontend/srinque_pay_modal_form.php:113 257 257 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 258 msgstr "Je verzoek om op factuur te betalen wordt behandeld, dit kan 24 uur duren. Je bestelling is nog niet bevestigd tot beoordeling is afgerond. <br>We sturen je een bericht zodra de beoordeling voltooid is."258 msgstr "Je verzoek om op factuur te betalen wordt behandeld, dit kan 24 uur duren. Je bestelling is nog niet bevestigd tot beoordeling is afgerond. We sturen je een bericht zodra de beoordeling voltooid is." 259 259 260 260 #: include/payment_method.php:481 -
sprinque/trunk/languages/sprinque-pl_PL.po
r2919808 r2932350 9 9 10 10 #: templates/frontend/srinque_pay_modal_form.php:102 11 #, fuzzy12 11 msgid "(in :sec seconds)" 13 12 msgstr "(w :sek sekundach)" 14 13 15 14 #: sprinque.php:442 templates/ajax/founded_companies.php:22 16 #, fuzzy17 15 msgid "Add buyer manually" 18 16 msgstr "Dodaj kupującego ręcznie" 19 17 20 18 #: templates/frontend/srinque_pay_modal_form.php:38 21 #, fuzzy22 19 msgid "Address" 23 20 msgstr "Adres" 24 21 25 22 #: templates/frontend/srinque_pay_modal_form.php:42 26 #, fuzzy27 23 msgid "Apartment, suite, etc (optional)" 28 24 msgstr "Mieszkanie, apartament itp. (opcjonalnie)" 29 25 30 26 #: templates/frontend/srinque_pay_modal_form.php:91 31 #, fuzzy32 27 msgid "AuthAmountMoreThanDefault" 33 28 msgstr "Autoryzowana kwota jest wyższa niż ustawienie domyślne" 34 29 35 30 #: templates/frontend/srinque_pay_modal_form.php:91 36 #, fuzzy37 31 msgid "AuthBuyerBlockedError" 38 msgstr "Działalność została zablokowana" 39 40 #: templates/frontend/srinque_pay_modal_form.php:91 41 #, fuzzy 32 msgstr "Firma została zablokowana" 33 34 #: templates/frontend/srinque_pay_modal_form.php:91 42 35 msgid "AuthBuyerInactiveError" 43 36 msgstr "Firma jest nieaktywna" 44 37 45 38 #: templates/frontend/srinque_pay_modal_form.php:91 46 #, fuzzy47 39 msgid "AuthBuyerNotFoundError" 48 msgstr " Biznesnie istnieje"40 msgstr "Firma nie istnieje" 49 41 50 42 # When the order amount is larger than the available credit limit 51 #, fuzzy52 43 msgid "AuthCreditExceededError" 53 44 msgstr "Żądanie autoryzacji przekracza dostępny limit kredytowy" 54 45 55 46 #: templates/frontend/srinque_pay_modal_form.php:91 56 #, fuzzy57 47 msgid "AuthCreditNotFoundError" 58 48 msgstr "Limit kredytowy dla tego kupującego nie został ustawiony" 59 49 60 50 #: templates/frontend/srinque_pay_modal_form.php:91 61 #, fuzzy62 51 msgid "AuthCreditRejectedError" 63 52 msgstr "Odrzucenie wniosku o kredyt dla firmy" 64 53 65 54 #: sprinque.php:392 sprinque.php:418 66 #, fuzzy67 55 msgid "Awaiting Review" 68 msgstr "Oczekiwanie na recenzję" 69 70 #, fuzzy 56 msgstr "Oczekiwanie na weryfikację" 57 71 58 msgid "Billing or Accounts Payable email" 72 59 msgstr "Wiadomość e-mail dotycząca rozliczeń lub zobowiązań" 73 60 74 61 #: templates/frontend/srinque_pay_modal_form.php:36 75 #, fuzzy76 62 msgid "Business address" 77 63 msgstr "Adres firmy" … … 79 65 #: sprinque.php:439 include/payment_method.php:111 80 66 #: include/payment_method.php:119 81 #, fuzzy82 67 msgid "Buy now and pay later for businesses" 83 68 msgstr "Kup teraz i zapłać później dla firm" 84 69 85 70 #: sprinque.php:441 templates/ajax/founded_companies.php:17 86 #, fuzzy87 71 msgid "Can't find the business you are looking for?" 88 72 msgstr "Nie możesz znaleźć firmy, której szukasz?" … … 91 75 #: templates/frontend/srinque_pay_modal_form.php:108 92 76 #: templates/frontend/srinque_pay_modal_form.php:116 93 #, fuzzy94 77 msgid "Choose another payment method" 95 78 msgstr "Wybierz inną metodę płatności" 96 79 97 80 #: templates/frontend/srinque_pay_modal_form.php:46 98 #, fuzzy99 81 msgid "City" 100 82 msgstr "Miasto" 101 83 102 84 #: sprinque.php:440 templates/ajax/founded_companies.php:3 103 #, fuzzy104 85 msgid "Click here" 105 86 msgstr "Kliknij tutaj" … … 107 88 #: templates/frontend/srinque_pay_modal_form.php:21 108 89 #: templates/frontend/srinque_pay_modal_form.php:22 109 #, fuzzy110 90 msgid "Company Name" 111 91 msgstr "Nazwa firmy" 112 92 113 93 #: sprinque.php:440 templates/ajax/founded_companies.php:3 114 #, fuzzy115 94 msgid "Company not found" 116 95 msgstr "Nie znaleziono firmy?" 117 96 118 97 #: templates/frontend/srinque_pay_modal_form.php:29 119 #, fuzzy120 98 msgid "Company VAT ID" 121 msgstr "NIP spółki"99 msgstr "NIP firmy" 122 100 123 101 #: templates/frontend/srinque_pay_modal_form.php:31 124 102 #: templates/frontend/srinque_pay_modal_form.php:56 125 103 #: templates/frontend/srinque_pay_modal_form.php:75 126 #, fuzzy127 104 msgid "Confirm" 128 105 msgstr "Potwierdź" … … 130 107 #: templates/frontend/srinque_pay_modal_form.php:131 131 108 #: templates/frontend/cancel_order_sprinque.php:11 132 #, fuzzy133 109 msgid "Confirm cancelation" 134 msgstr "Potwierd zenie anulowania"110 msgstr "Potwierdź anulowanie" 135 111 136 112 #: templates/frontend/srinque_pay_modal_form.php:137 137 #, fuzzy138 113 msgid "Confirm order" 139 msgstr "Potwierd zenie zamówienia"114 msgstr "Potwierdź zamówienie" 140 115 141 116 #: templates/frontend/srinque_pay_modal_form.php:129 142 #, fuzzy143 117 msgid "Congratulations!" 144 118 msgstr "Gratulacje!" … … 146 120 #: templates/frontend/srinque_pay_modal_form.php:107 147 121 #: templates/frontend/srinque_pay_modal_form.php:114 148 #, fuzzy149 122 msgid "Continue and wait" 150 123 msgstr "Kontynuuj i czekaj" 151 124 152 125 #: templates/frontend/srinque_pay_modal_form.php:11 153 #, fuzzy154 126 msgid "Country" 155 127 msgstr "Kraj" 156 128 157 129 #: sprinque.php:546 158 #, fuzzy159 130 msgid "days" 160 msgstr " czasy"131 msgstr "dni" 161 132 162 133 #: templates/frontend/srinque_pay_modal_form.php:100 163 #, fuzzy164 134 msgid "days by Sprinque!" 165 135 msgstr "dni przez Sprinque!" 166 136 167 137 #: include/payment_method.php:501 168 #, fuzzy169 138 msgid "Enable Pay by Invoice" 170 msgstr "Włącz płatność przez fakturę"139 msgstr "Włącz płatność na podstawie faktury" 171 140 172 141 #: include/payment_method.php:499 173 #, fuzzy174 142 msgid "Enable/Disable" 175 msgstr "Włącz/ Wyłącz"143 msgstr "Włącz/wyłącz" 176 144 177 145 #: templates/frontend/srinque_pay_modal_form.php:82 178 146 #: templates/frontend/srinque_pay_modal_form.php:92 179 #, fuzzy180 147 msgid "Go Back" 181 148 msgstr "Wróć" 182 149 183 150 #. URI of the plugin 184 #, fuzzy185 151 msgid "https://sprinque.com/" 186 152 msgstr "https://sprinque.com/" 187 153 188 154 #: templates/frontend/srinque_pay_modal_form.php:79 189 #, fuzzy190 155 msgid "If you have not received the code, please check your spam folder or" 191 156 msgstr "Jeśli nie otrzymałeś kodu, sprawdź folder spamu lub" 192 157 193 158 #: sprinque.php:444 194 #, fuzzy195 159 msgid "Loading..." 196 160 msgstr "Ładowanie..." … … 198 162 #: sprinque.php:259 199 163 #: sprinque.php:451 200 #, fuzzy201 164 msgid "Net terms fee" 202 165 msgstr "Opłata za warunki netto" 203 166 204 167 #: templates/frontend/srinque_pay_modal_form.php:53 205 #, fuzzy206 168 msgid "Not all fields filled on Billing or Modal" 207 169 msgstr "Nie wszystkie pola są wypełnione na stronie Billing lub Modal" 208 170 209 171 #: sprinque.php:443 210 #, fuzzy211 172 msgid "Not all required fields are filled" 212 173 msgstr "Nie wszystkie wymagane pola są wypełnione" 213 174 214 175 #: include/payment_method.php:120 215 #, fuzzy216 176 msgid "Order finished with Pay by Invoice" 217 msgstr "Zamówienie zakończone z płatnością przez fakturę"177 msgstr "Zamówienie zakończone płatnością na podstawie faktury" 218 178 219 179 #: sprinque.php:438 include/payment_method.php:110 220 180 #: include/payment_method.php:118 221 #, fuzzy222 181 msgid "Pay by Invoice" 223 msgstr "Płatność fakturąprzez Sprinque"182 msgstr "Płatność na podstawie faktury przez Sprinque" 224 183 225 184 #: include/payment_method.php:549 include/payment_method.php:553 226 #, fuzzy227 185 msgid "Pay by Invoice - Business only" 228 msgstr "Płatność fakturą -tylko dla firm"186 msgstr "Płatność na podstawie faktury — tylko dla firm" 229 187 230 188 #: sprinque.php:211 231 #, fuzzy232 189 msgid "Pay by Invoice - Cancelled" 233 msgstr "Płatność fakturą - anulowane"190 msgstr "Płatność na podstawie faktury — anulowana" 234 191 235 192 #: templates/frontend/srinque_pay_modal_form.php:101 236 193 #: templates/frontend/srinque_pay_modal_form.php:122 237 #, fuzzy238 194 msgid "Place order" 239 195 msgstr "Złóż zamówienie" 240 196 241 197 #: templates/frontend/srinque_pay_modal_form.php:126 242 #, fuzzy243 198 msgid "Placing your order" 244 199 msgstr "Składanie zamówienia" 245 200 246 201 #: templates/frontend/srinque_pay_modal_form.php:9 247 #, fuzzy248 202 msgid "Please select your business" 249 203 msgstr "Wybierz swoją firmę" 250 204 251 205 #: templates/frontend/srinque_pay_modal_form.php:50 252 #, fuzzy253 206 msgid "Postal code" 254 207 msgstr "Kod pocztowy" 255 208 256 209 #: templates/frontend/srinque_pay_modal_form.php:55 257 #, fuzzy258 210 msgid "Previous step" 259 211 msgstr "Poprzedni krok" … … 261 213 #: templates/frontend/srinque_pay_modal_form.php:99 262 214 #: templates/frontend/srinque_pay_modal_form.php:120 263 #, fuzzy264 215 msgid "Purchase approved" 265 216 msgstr "Zakup zatwierdzony" … … 267 218 #: templates/frontend/srinque_pay_modal_form.php:105 268 219 #: templates/frontend/srinque_pay_modal_form.php:112 269 #, fuzzy270 220 msgid "Purchase under review" 271 221 msgstr "Zakup w trakcie przeglądu" … … 273 223 #: templates/frontend/srinque_pay_modal_form.php:26 274 224 #: templates/frontend/srinque_pay_modal_form.php:27 275 #, fuzzy276 225 msgid "Registration number" 277 226 msgstr "Numer rejestracyjny" 278 227 279 228 #: include/payment_method.php:301 280 #, fuzzy281 229 msgid "Registration number is already used" 282 230 msgstr "Numer rejestracyjny jest już używany" 283 231 284 232 #: templates/frontend/srinque_pay_modal_form.php:79 285 #, fuzzy286 233 msgid "Resend Code" 287 234 msgstr "Wyślij ponownie kod" 288 235 289 236 #: templates/frontend/srinque_pay_modal_form.php:12 290 #, fuzzy291 237 msgid "Select a country" 292 238 msgstr "Wybierz kraj" 293 239 294 240 #: sprinque.php:419 295 #, fuzzy296 241 msgid "Shipping" 297 242 msgstr "Wysyłka" … … 299 244 #. Name of the plugin 300 245 #. Author of the plugin 301 #, fuzzy302 246 msgid "Sprinque" 303 247 msgstr "Sprinque" 304 248 305 249 #. Description of the plugin 306 #, fuzzy307 250 msgid "Sprinque for WordPress is a plugin that allows you to offer your business buyers net payment terms (15, 30, 60, 90 days) and thereby grow conversion and retention." 308 251 msgstr "Sprinque dla WordPress to wtyczka, która pozwala zaoferować kupującym warunki płatności netto (15, 30, 60, 90 dni), a tym samym zwiększyć konwersję i retencję." … … 310 253 #: templates/frontend/srinque_pay_modal_form.php:106 311 254 #: templates/frontend/srinque_pay_modal_form.php:113 312 #, fuzzy313 255 msgid "This may take upto 24 hours for approval. Your Order is not confirmed until a decision is made. <br>We will notify you by email once the review is complete." 314 msgstr "Zatwierdzenie może potrwać do 24 godzin. Zamówienie nie zostanie potwierdzone do momentu podjęcia decyzji. <br>Po zakończeniu weryfikacji powiadomimy Cię e-mailem."256 msgstr "Zatwierdzenie może potrwać do 24 godzin. Zamówienie nie zostanie potwierdzone do momentu podjęcia decyzji. Po zakończeniu weryfikacji otrzymasz wiadomość e-mail." 315 257 316 258 #: include/payment_method.php:481 317 #, fuzzy318 259 msgid "Title" 319 260 msgstr "Tytuł" 320 261 321 262 #: templates/frontend/srinque_pay_modal_form.php:12 322 #, fuzzy323 263 msgid "To approve a payment term for you we need your company information to run a credit assessment" 324 264 msgstr "Aby zatwierdzić termin płatności, potrzebujemy informacji o firmie w celu przeprowadzenia oceny kredytowej" 325 265 326 266 #: templates/frontend/srinque_pay_modal_form.php:64 327 #, fuzzy328 267 msgid "To make sure it's really you we have sent a code to" 329 268 msgstr "Aby upewnić się, że to naprawdę Ty, wysłaliśmy kod na adres" 330 269 331 270 #: sprinque.php:440 templates/ajax/founded_companies.php:3 332 #, fuzzy333 271 msgid "to use it anyway" 334 272 msgstr "i tak go używać" 335 273 336 274 #: templates/frontend/srinque_pay_modal_form.php:133 337 #, fuzzy338 275 msgid "Total amount" 339 276 msgstr "Łączna kwota" 340 277 341 #, fuzzy342 278 msgid "VAT ID" 343 msgstr " VAT ID"279 msgstr "NIP" 344 280 345 281 #: templates/frontend/srinque_pay_modal_form.php:62 346 #, fuzzy347 282 msgid "Verify your email" 348 283 msgstr "Zweryfikuj swój adres e-mail" 349 284 350 285 #: templates/frontend/srinque_pay_modal_form.php:87 351 #, fuzzy352 286 msgid "We are verifying your account" 353 287 msgstr "Weryfikujemy konto użytkownika" 354 288 355 289 #: templates/frontend/srinque_pay_modal_form.php:77 356 #, fuzzy357 290 msgid "Wrong code number" 358 291 msgstr "Nieprawidłowy numer kodu" 359 292 360 293 #: templates/frontend/srinque_pay_modal_form.php:121 361 #, fuzzy362 294 msgid "You have been approved for a credit limit of €xx and a payment term of 30 days by Sprinque!" 363 msgstr "Otrzymałeś zgodę na limit kredytowy w wysokości €xx i termin płatności 30 dni odSprinque!"295 msgstr "Otrzymałeś zgodę na limit kredytowy w wysokości xx EUR i termin płatności 30 dni przez Sprinque!" 364 296 365 297 #: templates/frontend/srinque_pay_modal_form.php:100 366 #, fuzzy367 298 msgid "You have been approved for a payment term of" 368 299 msgstr "Zostałeś zatwierdzony na okres płatności wynoszący" … … 370 301 #: include/payment_method.php:420 include/payment_method.php:450 371 302 #, php-format 372 #, fuzzy373 303 msgid "You have been approved for a payment term of %s days by Sprinque!" 374 304 msgstr "Zostałeś zatwierdzony na okres płatności %s dni przez Sprinque!" 375 305 376 306 #: templates/frontend/srinque_pay_modal_form.php:130 377 #, fuzzy378 307 msgid "You've been approved to pay with net terms. Select the payment term that best suits your company" 379 msgstr "Zostałeś zatwierdzony do płatności netto. Wybierz termin płatności, który najlepiej pasuje do Twojej firmy"308 msgstr "Zostałeś zatwierdzony do płatności netto. Wybierz termin płatności, który najlepiej pasuje Twojej firmie" -
sprinque/trunk/languages/sprinque.po
r2919808 r2932350 69 69 msgstr "" 70 70 71 72 #: templates/frontend/srinque_pay_modal_form.php:9173 msgid "AuthCreditExceededError"74 msgstr ""75 76 #: templates/frontend/srinque_pay_modal_form.php:9177 msgid "AuthBuyerNotFoundError"78 msgstr ""79 80 #: templates/frontend/srinque_pay_modal_form.php:9181 msgid "AuthBuyerBlockedError"82 msgstr ""83 84 #: templates/frontend/srinque_pay_modal_form.php:9185 msgid "AuthBuyerInactiveError"86 msgstr ""87 88 #: templates/frontend/srinque_pay_modal_form.php:9189 msgid "AuthCreditNotFoundError"90 msgstr ""91 92 #: templates/frontend/srinque_pay_modal_form.php:9193 msgid "AuthCreditRejectedError"94 msgstr ""95 96 #: templates/frontend/srinque_pay_modal_form.php:9197 msgid "AuthAmountMoreThanDefault"98 msgstr ""99 100 71 #: templates/frontend/srinque_pay_modal_form.php:31 101 72 msgid "VAT ID" -
sprinque/trunk/languages/sprinque.pot
r2919808 r2932350 33 33 msgstr "" 34 34 35 #: templates/frontend/srinque_pay_modal_form.php:11636 msgid "AuthAmountMoreThanDefault"37 msgstr ""38 39 #: templates/frontend/srinque_pay_modal_form.php:11940 msgid "AuthBuyerBlockedError"41 msgstr ""42 43 #: templates/frontend/srinque_pay_modal_form.php:11844 msgid "AuthBuyerInactiveError"45 msgstr ""46 47 #: templates/frontend/srinque_pay_modal_form.php:12048 msgid "AuthBuyerNotFoundError"49 msgstr ""50 51 #: templates/frontend/srinque_pay_modal_form.php:11452 msgid "AuthCreditExceededError"53 msgstr ""54 55 #: templates/frontend/srinque_pay_modal_form.php:11756 msgid "AuthCreditNotFoundError"57 msgstr ""58 59 #: templates/frontend/srinque_pay_modal_form.php:11560 msgid "AuthCreditRejectedError"61 msgstr ""62 63 35 #: sprinque.php:499 sprinque.php:525 64 36 msgid "Awaiting Review" -
sprinque/trunk/readme.txt
r2922962 r2932350 6 6 Tested up to: 6.0 7 7 Requires PHP: 5.3 8 Stable tag: 1.3. 58 Stable tag: 1.3.6 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 50 50 51 51 == Changelog == 52 53 = 1.3.6 - June 29, 2023 = 54 * Deleted session_cache_limiter('public') in requests; 55 * Verified Polish translations; 56 * Used b2b-sprinque-tools for local errors translations; 57 * Pass business buyer name to metadata for auth call; 58 * Bumped b2b-sprinque-tools to v.1.3.6; 52 59 53 60 = 1.3.5 - June 7, 2023 = -
sprinque/trunk/sprinque.php
r2922962 r2932350 5 5 Description: Sprinque for WordPress is a plugin that allows you to offer your business buyers net payment terms (15, 30, 60, 90 days) and thereby grow conversion and retention. 6 6 Author: Sprinque 7 Version: 1.3. 57 Version: 1.3.6 8 8 Text Domain: sprinque 9 9 Domain Path: /languages 10 10 */ 11 11 12 define( 'PLUGIN_SRINQUE_VERSION', '1.3. 5' );12 define( 'PLUGIN_SRINQUE_VERSION', '1.3.6' ); 13 13 define( 'PLUGIN_SRINQUE_DIR', __DIR__ ); 14 14 define( 'PLUGIN_SRINQUE_PATH', plugins_url( '', __FILE__ ) ); … … 421 421 $total = round($total, 2); 422 422 423 // Get buyer 424 $buyer = $this->srinque_api( [], 'GET', "/buyers/{$webhook['buyer_id']}" ); 425 423 426 // Prepare Data to Send 424 427 $data = [ … … 435 438 'metadata' => [ 436 439 'IPv4' => !strpos($ip_address, ':') !== false ? $ip_address : '', 437 'IPv6' => strpos($ip_address, ':') !== false ? $ip_address : '' 440 'IPv6' => strpos($ip_address, ':') !== false ? $ip_address : '', 441 'business_name' => $buyer['business_name'] 438 442 ] 439 443 ]; … … 614 618 // Register scripts 615 619 $settings = get_option( 'woocommerce_wpm_srinque_pay_settings', true ); 616 wp_enqueue_script( 'wpm_srinque_tools', 'https://unpkg.com/b2b-sprinque-tools@1.3. 2/dist/index.umd.min.js', array( ), PLUGIN_SRINQUE_VERSION, 'all' );620 wp_enqueue_script( 'wpm_srinque_tools', 'https://unpkg.com/b2b-sprinque-tools@1.3.6/dist/index.umd.min.js', array( ), PLUGIN_SRINQUE_VERSION, 'all' ); 617 621 wp_enqueue_script( 'wpm_srinque_pay', PLUGIN_SRINQUE_PATH . '/assets/js/frontend.js', array( 'jquery', 'wpm_srinque_tools' ), PLUGIN_SRINQUE_VERSION, 'all' ); 618 622 -
sprinque/trunk/templates/frontend/srinque_pay_modal_form.php
r2919712 r2932350 119 119 <div class="cant-complete-autorization" style="display: none;"> 120 120 <div class="verify-error"></div> 121 <div class="verify-error-explanation verify-credit-exceeded"><?php _e( "AuthCreditExceededError", 'sprinque' ); ?></div>122 <div class="verify-error-explanation auth-credit-rejected-error"><?php _e( "AuthCreditRejectedError", 'sprinque' ); ?></div>123 <div class="verify-error-explanation auth-amount-more-then-default-error"><?php _e( "AuthAmountMoreThanDefault", 'sprinque' ); ?></div>124 <div class="verify-error-explanation auth-credit-not-found-error"><?php _e( "AuthCreditNotFoundError", 'sprinque' ); ?></div>125 <div class="verify-error-explanation auth-buyer-inactive-error"><?php _e( "AuthBuyerInactiveError", 'sprinque' ); ?></div>126 <div class="verify-error-explanation auth-buyer-blocked-error"><?php _e( "AuthBuyerBlockedError", 'sprinque' ); ?></div>127 <div class="verify-error-explanation auth-buyer-not-found-error"><?php _e( "AuthBuyerNotFoundError", 'sprinque' ); ?></div>128 121 <div class="pagination-btns"> 129 122 <button type="button" class="wpm-btn wpm-btn_outline-primary white_btn_pay to_select_companies"><?php _e( "Go Back", 'sprinque' ); ?></button>
Note: See TracChangeset
for help on using the changeset viewer.