Changeset 3284131
- Timestamp:
- 04/29/2025 01:19:34 PM (11 months ago)
- Location:
- imoje/trunk
- Files:
-
- 4 added
- 10 edited
-
assets/images/imoje_wallet.png (added)
-
assets/js/checkout/imoje-wallet-block.js (added)
-
assets/js/checkout/imoje-wallet-block.min.js (added)
-
includes/Helper.php (modified) (1 diff)
-
includes/gateway/WC_Gateway_ImojeWallet.php (added)
-
includes/gateway/WC_Gateway_Imoje_Abstract.php (modified) (4 diffs)
-
includes/gateway/WC_Gateway_Imoje_Api_Abstract.php (modified) (4 diffs)
-
includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php (modified) (10 diffs)
-
includes/libs/payment-core/src/Notification.php (modified) (3 diffs)
-
includes/libs/payment-core/src/Util.php (modified) (3 diffs)
-
langs/imoje-pl_PL.mo (modified) (previous)
-
langs/imoje-pl_PL.po (modified) (10 diffs)
-
readme.txt (modified) (2 diffs)
-
woocommerce-imoje.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imoje/trunk/includes/Helper.php
r3091413 r3284131 327 327 328 328 /** 329 * @param string $service_id330 * @param string $service_key331 * @param string $debug_mode332 *333 * @throws Exception334 */335 public static function check_notification( $service_id, $service_key, $debug_mode ) {336 $notification = new Notification(337 $service_id,338 $service_key,339 self::check_is_config_value_selected( $debug_mode )340 );341 342 // it can be order data or notification code - depends on verification notification343 $result_check_request_notification = $notification->checkRequest();344 345 if ( is_int( $result_check_request_notification ) ) {346 echo $notification->formatResponse( Notification::NS_ERROR, $result_check_request_notification );347 exit();348 }349 350 if ( ! ( $order = wc_get_order( $result_check_request_notification['transaction']['orderId'] ) ) ) {351 352 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_ORDER_NOT_FOUND );353 exit();354 }355 356 $order_status = $order->get_status();357 358 if ( $result_check_request_notification['transaction']['type'] === Notification::TRT_REFUND ) {359 360 if ( $result_check_request_notification['transaction']['status'] !== Notification::TRS_SETTLED ) {361 echo $notification->formatResponse( Notification::NS_OK, Notification::NC_IMOJE_REFUND_IS_NOT_SETTLED );362 363 exit();364 }365 366 if ( $order_status === 'refunded' ) {367 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_ORDER_STATUS_IS_INVALID_FOR_REFUND );368 exit();369 }370 371 $refund = wc_create_refund( [372 'amount' => Util::convertAmountToMain( $result_check_request_notification['transaction']['amount'] ),373 'reason' => 'imoje API',374 'order_id' => $result_check_request_notification['transaction']['orderId'],375 'refund_payment' => true,376 ] );377 378 if ( $refund->errors ) {379 380 echo $notification->formatResponse( Notification::NS_ERROR );381 exit();382 }383 384 $order->add_order_note(385 sprintf(386 __( 'Refund for amount %s with UUID %s has been correctly processed.', 'imoje' ),387 $result_check_request_notification['transaction']['amount'],388 $result_check_request_notification['transaction']['id']389 )390 );391 392 echo $notification->formatResponse( Notification::NS_OK );393 exit;394 }395 396 if ( $order_status === 'completed' || $order_status === 'processing' ) {397 398 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_INVALID_ORDER_STATUS );399 exit();400 }401 402 if ( ! Notification::checkRequestAmount(403 $result_check_request_notification,404 Util::convertAmountToFractional( $order->data['total'] ),405 $order->data['currency']406 ) ) {407 408 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_AMOUNT_NOT_MATCH );409 exit();410 }411 412 $transactionStatuses = Util::getTransactionStatuses();413 414 if ( ! isset( $transactionStatuses[ $result_check_request_notification['transaction']['status'] ] ) ) {415 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_UNHANDLED_STATUS );416 exit;417 }418 419 switch ( $result_check_request_notification['transaction']['status'] ) {420 case Notification::TRS_SETTLED:421 422 $order->update_status( $order->needs_processing()423 ? 'processing'424 : 'completed',425 __( 'Transaction reference', 'imoje' ) . ': ' . $result_check_request_notification['transaction']['id'] );426 427 $order->update_meta_data( 'imoje_transaction_uuid', $result_check_request_notification['transaction']['id'] );428 $order->save_meta_data();429 430 echo $notification->formatResponse( Notification::NS_OK );431 exit;432 case Notification::TRS_REJECTED:433 $order->update_status( 'failed' );434 $order->add_order_note( __( 'Transaction reference', 'imoje' ) . ': ' . $result_check_request_notification['transaction']['id'] );435 echo $notification->formatResponse( Notification::NS_OK );436 exit;437 default:438 echo $notification->formatResponse( Notification::NS_OK, Notification::NC_UNHANDLED_STATUS );439 exit;440 }441 }442 443 /**444 329 * @param int $order_id 445 330 * @param string $authorization_token -
imoje/trunk/includes/gateway/WC_Gateway_Imoje_Abstract.php
r3205609 r3284131 2 2 3 3 use Imoje\Payment\Util; 4 use Imoje\Payment\Notification; 4 5 5 6 /** … … 129 130 true 130 131 ), 131 WC_Gateway_ImojeInstallments::PAYMENT_METHOD_NAME => Helper::get_gateway_details(132 WC_Gateway_ImojeInstallments::PAYMENT_METHOD_NAME => Helper::get_gateway_details( 132 133 __( 'imoje - installments', 'imoje' ), 133 134 __( 'imoje installments', 'imoje' ), 134 135 __( 'imoje installments', 'imoje' ), 136 false 137 ), 138 WC_Gateway_ImojeWallet::PAYMENT_METHOD_NAME => Helper::get_gateway_details( 139 __( 'imoje - electronic wallet', 'imoje' ), 140 __( 'Electronic wallet', 'imoje' ), 141 __( 'Pay with electronic wallet via imoje.', 'imoje' ), 135 142 false 136 143 ), … … 233 240 'type' => 'checkbox', 234 241 'label' => __( 'Enable', 'imoje' ), 235 'default' => 'no',236 ],237 'debug_mode' => [238 'title' => __( 'Debug mode', 'imoje' ),239 'type' => 'checkbox',240 'label' => __( 'Enable debug mode', 'imoje' ),241 242 'default' => 'no', 242 243 ], … … 359 360 public function process_notification() { 360 361 361 Helper::check_notification(362 $notification = new Notification( 362 363 $this->get_option( 'service_id' ), 363 $this->get_option( 'service_key' ), 364 $this->get_option( 'debug_mode' ) 364 $this->get_option( 'service_key' ) 365 365 ); 366 367 // it can be order data or notification code - depends on verification notification 368 $result_check_request_notification = $notification->checkRequest(); 369 370 if ( is_int( $result_check_request_notification ) ) { 371 echo $notification->formatResponse( Notification::NS_ERROR, $result_check_request_notification ); 372 exit(); 373 } 374 375 if ( ! ( $order = wc_get_order( $result_check_request_notification['transaction']['orderId'] ) ) ) { 376 377 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_ORDER_NOT_FOUND ); 378 exit(); 379 } 380 381 $order_status = $order->get_status(); 382 383 if ( $result_check_request_notification['transaction']['type'] === Notification::TRT_REFUND ) { 384 385 if ( $result_check_request_notification['transaction']['status'] !== Notification::TRS_SETTLED ) { 386 echo $notification->formatResponse( Notification::NS_OK, Notification::NC_IMOJE_REFUND_IS_NOT_SETTLED ); 387 388 exit(); 389 } 390 391 if ( $order_status === 'refunded' ) { 392 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_ORDER_STATUS_IS_INVALID_FOR_REFUND ); 393 exit(); 394 } 395 396 $refund = wc_create_refund( [ 397 'amount' => Util::convertAmountToMain( $result_check_request_notification['transaction']['amount'] ), 398 'reason' => 'imoje API', 399 'order_id' => $result_check_request_notification['transaction']['orderId'], 400 'refund_payment' => true, 401 ] ); 402 403 if ( $refund->errors ) { 404 405 echo $notification->formatResponse( Notification::NS_ERROR ); 406 exit(); 407 } 408 409 $order->add_order_note( 410 sprintf( 411 __( 'Refund for amount %s with UUID %s has been correctly processed.', 'imoje' ), 412 $result_check_request_notification['transaction']['amount'], 413 $result_check_request_notification['transaction']['id'] 414 ) 415 ); 416 417 echo $notification->formatResponse( Notification::NS_OK ); 418 exit; 419 } 420 421 if ( $order_status === 'completed' || $order_status === 'processing' ) { 422 423 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_INVALID_ORDER_STATUS ); 424 exit(); 425 } 426 427 if ( ! Notification::checkRequestAmount( 428 $result_check_request_notification, 429 Util::convertAmountToFractional( $order->data['total'] ), 430 $order->data['currency'] 431 ) ) { 432 433 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_AMOUNT_NOT_MATCH ); 434 exit(); 435 } 436 437 $transactionStatuses = Util::getTransactionStatuses(); 438 439 if ( ! isset( $transactionStatuses[ $result_check_request_notification['transaction']['status'] ] ) ) { 440 echo $notification->formatResponse( Notification::NS_ERROR, Notification::NC_UNHANDLED_STATUS ); 441 exit; 442 } 443 444 switch ( $result_check_request_notification['transaction']['status'] ) { 445 case Notification::TRS_SETTLED: 446 447 $order->update_status( $order->needs_processing() 448 ? 'processing' 449 : 'completed', 450 __( 'Transaction reference', 'imoje' ) . ': ' . $result_check_request_notification['transaction']['id'] ); 451 452 if ( Helper::check_is_config_value_selected( $this->get_option( 'override_method_name' ) ) && $order->get_payment_method() !== $this->payment_method_name && $order->get_payment_method_title() !== $this->get_payment_method_data( 'display_name' ) ) { 453 454 $order->set_payment_method( $this->payment_method_name ); 455 $order->set_payment_method_title( $this->get_payment_method_data( 'display_name' ) ); 456 $order->save(); 457 }; 458 459 $order->update_meta_data( 'imoje_transaction_uuid', $result_check_request_notification['transaction']['id'] ); 460 $order->save_meta_data(); 461 462 echo $notification->formatResponse( Notification::NS_OK ); 463 exit; 464 case Notification::TRS_REJECTED: 465 $order->update_status( 'failed' ); 466 $order->add_order_note( __( 'Transaction reference', 'imoje' ) . ': ' . $result_check_request_notification['transaction']['id'] ); 467 echo $notification->formatResponse( Notification::NS_OK ); 468 exit; 469 default: 470 echo $notification->formatResponse( Notification::NS_OK, Notification::NC_UNHANDLED_STATUS ); 471 exit; 472 } 366 473 } 367 474 -
imoje/trunk/includes/gateway/WC_Gateway_Imoje_Api_Abstract.php
r3272390 r3284131 266 266 $payment_method_list_online = []; 267 267 $payment_method_list_no_online = []; 268 $pm_wallet = Util::getPaymentMethod( 'wallet' ); 269 $pmc_gpay = Util::getPaymentMethodCode( 'gpay' ); 270 $pmc_applepay = Util::getPaymentMethodCode( 'applepay' ); 271 $pmc_blik = Util::getPaymentMethodCode( 'blik' ); 268 272 269 273 foreach ( $this->imoje_service['paymentMethods'] as $payment_method ) { … … 272 276 || strtolower( $payment_method['currency'] ) !== strtolower( $currency_iso_code ) 273 277 || ! in_array( $payment_method['paymentMethod'], $pm ) 278 || $this->check_payment_method_with_inclusions( $payment_method['paymentMethod'], $payment_method['paymentMethodCode'], $pm_wallet, [ $pmc_gpay, $pmc_applepay ] ) 279 || $this->check_payment_method_with_inclusions( $payment_method['paymentMethod'], $payment_method['paymentMethodCode'], $pm_blik, [ $pmc_blik ] ) 274 280 ) { 275 281 continue; … … 498 504 protected function prepare_payment_methods_block_checkout( $payment_method_name ) { 499 505 $child_payment_method_name = static::PAYMENT_METHOD_NAME; 500 $currencies = get_option( "woocommerce_{$child_payment_method_name}_settings", [] )['currencies'] ?? []; 501 $cart_total = WC()->cart->get_cart_contents_total(); 506 $settings = get_option( "woocommerce_" . $child_payment_method_name . "_settings" ); 507 $currencies = ( is_array( $settings ) && isset( $settings['currencies'] ) ) 508 ? $settings['currencies'] 509 : []; 510 $cart_total = WC()->cart->get_cart_contents_total() + WC()->cart->get_cart_contents_tax(); 502 511 503 512 if ( ! is_array( $currencies ) ) { … … 520 529 521 530 $prepared_methods = []; 522 foreach ( $filtered_methods as $key => $paymentMethod ) { 523 $prepared_methods[ $key ] = $this->get_payment_channel_to_array( $paymentMethod, $cart_total, true ); 531 $wallet = Util::getPaymentMethod( 'wallet' ); 532 $pmc_gpay = Util::getPaymentMethodCode( 'gpay' ); 533 $pmc_applepay = Util::getPaymentMethodCode( 'applepay' ); 534 $pm_blik = Util::getPaymentMethod( 'blik' ); 535 $pmc_blik = Util::getPaymentMethodCode( 'blik' ); 536 537 foreach ( $filtered_methods as $key => $payment_method ) { 538 539 if ( $this->check_payment_method_with_inclusions( $payment_method['paymentMethod'], $payment_method['paymentMethodCode'], $wallet, [ $pmc_gpay, $pmc_applepay ] ) 540 || $this->check_payment_method_with_inclusions( $payment_method['paymentMethod'], $payment_method['paymentMethodCode'], $pm_blik, [ $pmc_blik ] ) ) { 541 continue; 542 } 543 544 $prepared_methods[ $key ] = $this->get_payment_channel_to_array( $payment_method, $cart_total, true ); 524 545 } 525 546 526 547 return $prepared_methods; 527 548 } 549 550 /** 551 * @param string $payment_method 552 * @param string $payment_method_code 553 * @param string $expected_method 554 * @param array $excluded_payment_method_codes 555 * 556 * @return bool 557 */ 558 private function check_payment_method_with_inclusions( $payment_method, $payment_method_code, $expected_method, $excluded_payment_method_codes ) { 559 return $payment_method === $expected_method 560 && ! in_array( $payment_method_code, $excluded_payment_method_codes ); 561 } 528 562 } -
imoje/trunk/includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php
r3269477 r3284131 52 52 $this->enqueue_imoje_visa_payment_script(); 53 53 $this->enqueue_imoje_installments_payment_script(); 54 $this->enqueue_imoje_wallet_payment_script(); 54 55 } 55 56 } … … 104 105 'imoje_blik_js_object', 105 106 [ 106 'name_blik' => 'imoje_blik',107 'name_blik' => WC_Gateway_ImojeBlik::PAYMENT_METHOD_NAME, 107 108 'logo_blik' => plugins_url( '../../assets/images/imoje_blik.png', __FILE__ ), 108 109 'logo_blik_oneclick' => '', … … 134 135 'imoje_js_object', 135 136 [ 136 'name_imoje' => 'imoje',137 'name_imoje' => WC_Gateway_Imoje::PAYMENT_METHOD_NAME, 137 138 'logo_imoje' => plugins_url( '../../assets/images/imoje.png', __FILE__ ), 138 139 'settings_imoje' => get_option( 'woocommerce_imoje_settings', [] ), … … 156 157 ); 157 158 158 $imojePaylater = new WC_Gateway_ImojePaylater();159 $imojePaylater = new WC_Gateway_ImojePaylater(); 159 160 160 161 wp_localize_script( … … 162 163 'imoje_paylater_js_object', 163 164 [ 164 'name_paylater' => 'imoje_paylater',165 'name_paylater' => WC_Gateway_ImojePaylater::PAYMENT_METHOD_NAME, 165 166 'logo_paylater' => plugins_url( '../../assets/images/imoje_paylater.png', __FILE__ ), 166 167 'settings_paylater' => get_option( 'woocommerce_imoje_paylater_settings', [] ), … … 190 191 'imoje_cards_js_object', 191 192 [ 192 'name_cards' => 'imoje_cards',193 'name_cards' => WC_Gateway_ImojeCards::PAYMENT_METHOD_NAME, 193 194 'logo_cards' => plugins_url( '../../assets/images/imoje_cards.png', __FILE__ ), 194 195 'settings_cards' => get_option( 'woocommerce_imoje_cards_settings', [] ), … … 212 213 ); 213 214 214 $imojePbl = new WC_Gateway_ImojePbl;215 $imojePbl = new WC_Gateway_ImojePbl; 215 216 216 217 wp_localize_script( … … 218 219 'imoje_pbl_js_object', 219 220 [ 220 'name_pbl' => 'imoje_pbl',221 'name_pbl' => WC_Gateway_ImojePbl::PAYMENT_METHOD_NAME, 221 222 'logo_pbl' => plugins_url( '../../assets/images/imoje_pbl.png', __FILE__ ), 222 223 'settings_pbl' => get_option( 'woocommerce_imoje_pbl_settings', [] ), … … 245 246 'imoje_visa_js_object', 246 247 [ 247 'name_visa' => 'imoje_visa',248 'name_visa' => WC_Gateway_ImojeVisa::PAYMENT_METHOD_NAME, 248 249 'logo_visa' => plugins_url( '../../assets/images/imoje_visa.png', __FILE__ ), 249 250 'settings_visa' => get_option( 'woocommerce_imoje_visa_settings', [] ), … … 273 274 'imoje_installments_js_object', 274 275 [ 275 'name_installments' => 'imoje_installments',276 'name_installments' => WC_Gateway_ImojeInstallments::PAYMENT_METHOD_NAME, 276 277 'logo_installments' => plugins_url( '../../assets/images/imoje_installments.png', __FILE__ ), 277 278 'settings_installments' => get_option( 'woocommerce_imoje_installments_settings', [] ), 278 279 'calculator_data' => $imojeInstallments->get_calculator_data(), 280 ] 281 ); 282 } 283 284 /** 285 * @return void 286 */ 287 private function enqueue_imoje_wallet_payment_script() { 288 wp_enqueue_script( 289 'imoje-wallet-payment-block', 290 plugins_url( '../../assets/js/checkout/imoje-wallet-block.min.js', __FILE__ ), 291 [ 292 'wp-element', 293 'wc-blocks-registry', 294 ], 295 '1.0.0', 296 true 297 ); 298 299 $imojeWallet = new WC_Gateway_ImojeWallet(); 300 301 wp_localize_script( 302 'imoje-wallet-payment-block', 303 'imoje_wallet_js_object', 304 [ 305 'name_wallet' => WC_Gateway_ImojeWallet::PAYMENT_METHOD_NAME, 306 'logo_wallet' => plugins_url( '../../assets/images/imoje_wallet.png', __FILE__ ), 307 'settings_wallet' => get_option( 'woocommerce_imoje_wallet_settings', [] ), 308 'payment_methods_wallet' => $this->get_block_checkout_tooltip( $imojeWallet->get_payment_channels() ), 279 309 ] 280 310 ); -
imoje/trunk/includes/libs/payment-core/src/Notification.php
r3116816 r3284131 196 196 197 197 /** 198 * @var string199 */200 private $isDebugMode = '';201 202 /**203 198 * @var string|bool 204 199 */ … … 210 205 * @param string $serviceId 211 206 * @param string $serviceKey 212 * @param bool $isDebugMode 213 */ 214 public function __construct($serviceId, $serviceKey, $isDebugMode, $orderArrangement = false) 207 */ 208 public function __construct($serviceId, $serviceKey, $orderArrangement = false) 215 209 { 216 210 $this->serviceId = $serviceId; 217 211 $this->serviceKey = $serviceKey; 218 $this->isDebugMode = $isDebugMode;219 212 220 213 if($orderArrangement) { … … 237 230 ]; 238 231 239 if($ this->isDebugMode && $code) {232 if($code) { 240 233 $response['data'] = [ 241 234 'code' => $code, -
imoje/trunk/includes/libs/payment-core/src/Util.php
r3116816 r3284131 97 97 'ing' => 'ing', 98 98 'imoje_installments' => 'imoje_installments', 99 'wallet' => 'wallet', 99 100 ]; 100 101 … … 136 137 'inbank' => 'inbank', 137 138 'inbank_0' => 'inbank_0', 139 'applepay' => 'applepay', 140 'gpay' => 'gpay', 138 141 ]; 139 142 … … 165 168 'pragma_go' => 'pragma_go.svg', 166 169 'blik_paylater' => 'blik_paylater.png', 170 'applepay' => 'applepay.png', 171 'gpay' => 'gpay.png', 167 172 ]; 168 173 -
imoje/trunk/langs/imoje-pl_PL.po
r3269477 r3284131 2 2 msgstr "" 3 3 "Project-Id-Version: \n" 4 "POT-Creation-Date: 2025-0 3-04 10:46+0100\n"5 "PO-Revision-Date: 2025-0 3-04 11:11+0100\n"4 "POT-Creation-Date: 2025-04-04 10:35+0200\n" 5 "PO-Revision-Date: 2025-04-04 10:38+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 12 12 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " 13 13 "|| n%100>=20) ? 1 : 2);\n" 14 "X-Generator: Poedit 3. 5\n"14 "X-Generator: Poedit 3.2.2\n" 15 15 "X-Poedit-Basepath: ..\n" 16 16 "X-Poedit-KeywordsList: __;esc_html__;esc_html_e\n" … … 57 57 msgstr "poniżej" 58 58 59 #: includes/gateway/WC_Gateway_ImojeBlik.php:4 960 #: includes/gateway/WC_Gateway_Imoje_Api_Abstract.php:37 459 #: includes/gateway/WC_Gateway_ImojeBlik.php:45 60 #: includes/gateway/WC_Gateway_Imoje_Api_Abstract.php:379 61 61 msgid "Payment error. Contact with shop administrator." 62 62 msgstr "Spróbuj ponownie później lub skontaktuj się z obsługą sklepu." 63 63 64 #: includes/gateway/WC_Gateway_ImojeBlik.php:1 7164 #: includes/gateway/WC_Gateway_ImojeBlik.php:165 65 65 msgid "Display field" 66 66 msgstr "Wyświetlaj pole" 67 67 68 #: includes/gateway/WC_Gateway_ImojeBlik.php:1 7468 #: includes/gateway/WC_Gateway_ImojeBlik.php:168 69 69 msgid "Display field on the checkout" 70 70 msgstr "Wyświetlanie pola BLIK na stronie sklepu" … … 152 152 msgstr "imoje raty" 153 153 154 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:185 154 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:138 155 msgid "imoje - electronic wallet" 156 msgstr "imoje - portfel elektroniczny" 157 158 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:139 159 msgid "Electronic wallet" 160 msgstr "Portfel elektroniczny" 161 162 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:140 163 msgid "Pay with electronic wallet via imoje." 164 msgstr "Płać portfelem elektronicznym z imoje" 165 166 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:191 155 167 msgid "ING Lease Now" 156 168 msgstr "ING Lease Now" 157 169 158 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:1 88159 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 34160 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 59170 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:194 171 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:240 172 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:265 161 173 msgid "Enable" 162 174 msgstr "Włącz" 163 175 164 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:22 1176 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:227 165 177 msgid "Sandbox is enabled" 166 178 msgstr "Tryb sandbox jest włączony" 167 179 168 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 26180 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:232 169 181 msgid "Hint" 170 182 msgstr "Wskazówka" 171 183 172 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 29184 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:235 173 185 msgid "" 174 186 "The module requires a configuration in the imoje administration panel. <br/> " … … 184 196 "opisane poniżej." 185 197 186 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:23 2198 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:238 187 199 msgid "Enable / Disable" 188 200 msgstr "Włącz / Wyłącz" 189 201 190 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 38202 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:244 191 203 msgid "Debug mode" 192 204 msgstr "Tryb debugowania" 193 205 194 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:24 0206 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:246 195 207 msgid "Enable debug mode" 196 208 msgstr "Włącz tryb debugowania" 197 209 198 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 44210 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:250 199 211 msgid "Sandbox" 200 212 msgstr "Tryb sandbox" 201 213 202 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 47214 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:253 203 215 msgid "Enable sandbox" 204 216 msgstr "Włącz tryb sandbox" 205 217 206 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:25 0218 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:256 207 219 msgid "Display brand" 208 220 msgstr "Wyświetlanie loga" 209 221 210 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:25 3222 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:259 211 223 msgid "Hide brand" 212 224 msgstr "Ukryj logo" 213 225 214 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 56226 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:262 215 227 msgid "ING Księgowość" 216 228 msgstr "ING Księgowość" 217 229 218 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:26 2230 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:268 219 231 msgid "Payment title" 220 232 msgstr "Nazwa metody płatności" 221 233 222 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 67234 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:273 223 235 msgid "Description" 224 236 msgstr "Opis" 225 237 226 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 69238 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:275 227 239 msgid "Text that users will see on checkout" 228 240 msgstr "Ten tekst zobaczą użytkownicy na podsumowaniu zamówienia" 229 241 230 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 74242 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:280 231 243 msgid "Merchant ID" 232 244 msgstr "Identyfikator klienta" 233 245 234 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 79246 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:285 235 247 msgid "Service ID" 236 248 msgstr "Identyfikator sklepu" 237 249 238 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 84250 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:290 239 251 msgid "Service Key" 240 252 msgstr "Klucz sklepu" 241 253 242 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:2 89254 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:295 243 255 msgid "Authorization token" 244 256 msgstr "Token autoryzacyjny" 245 257 246 #: includes/gateway/WC_Gateway_Imoje_Abstract.php: 294258 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:300 247 259 msgid "Currency" 248 260 msgstr "Waluta" 249 261 250 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:30 0262 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:306 251 263 msgid "Meta name for VAT" 252 264 msgstr "Nazwa meta dla pola NIP" 253 265 254 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:3 24266 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:330 255 267 msgid "Refund amount must be higher than 0" 256 268 msgstr "Kwota zwrotu musi być większa od 0" 257 269 258 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:4 09270 #: includes/gateway/WC_Gateway_Imoje_Abstract.php:415 259 271 msgid "You must insert exactly 6 numbers as BLIK code!" 260 272 msgstr "Musisz wprowadzić dokładnie 6 cyfr jako kod BLIK!" … … 268 280 msgstr "Sklep jest nieaktywny w imoje" 269 281 270 #: includes/gateway/WC_Gateway_Imoje_Api_Abstract.php:2 74282 #: includes/gateway/WC_Gateway_Imoje_Api_Abstract.php:280 271 283 msgid "No payment channel available. Choose another payment method." 272 284 msgstr "Brak dostępnego kanału płatności. Wybierz inną metodę płatności." 273 285 274 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:75 275 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:114 286 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:81 276 287 #: includes/templates/regulation.php:17 277 288 msgid "Regulations of imoje" 278 289 msgstr "Regulamin imoje" 279 290 280 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:76 281 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:115 291 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:82 282 292 #: includes/templates/regulation.php:22 283 293 msgid "Information on personal data imoje" 284 294 msgstr "Informację o danych osobowych imoje" 285 295 286 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:77 287 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:116 296 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:83 288 297 msgid "I declare that I have read and accept {regulation} and {iodo}." 289 298 msgstr "Oświadczam, że zapoznałem się i akceptuję {regulation} i {iodo}." 290 299 291 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php: 79300 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:85 292 301 #: includes/templates/payment_method_list.php:14 293 302 msgid "" … … 298 307 "inną metodę płatności" 299 308 300 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:11 0309 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:119 301 310 msgid "Enter the correct 6-digit BLIK code." 302 311 msgstr "Wprowadź prawidłowy 6-cyfrowy kod BLIK." 303 312 304 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:18 0313 #: includes/gateway_block/WC_Gateway_Imoje_RestApi_Blocks.php:183 305 314 #: includes/templates/twisto/regulation.php:10 306 315 msgid "" … … 345 354 msgstr "Metoda płatności jest niedostępna, wybierz inną." 346 355 347 #: woocommerce-imoje.php:24 3356 #: woocommerce-imoje.php:244 348 357 msgid "Transaction could not be initialized, error: " 349 358 msgstr "Transakcja nie mogła zostać zainicjowana, błędy: " 350 359 351 #: woocommerce-imoje.php:42 0360 #: woocommerce-imoje.php:421 352 361 msgid "Insert BLIK code." 353 362 msgstr "Wprowadź kod BLIK." 354 363 355 #: woocommerce-imoje.php:42 1364 #: woocommerce-imoje.php:422 356 365 msgid "Please try again." 357 366 msgstr "Proszę spróbować ponownie." 358 367 359 #: woocommerce-imoje.php:42 5 woocommerce-imoje.php:484368 #: woocommerce-imoje.php:426 woocommerce-imoje.php:485 360 369 msgid "Payment failed." 361 370 msgstr "Płatność nieudana." 362 371 363 #: woocommerce-imoje.php:42 7372 #: woocommerce-imoje.php:428 364 373 msgid "" 365 374 "Technical break in your bank. Pay later or use another bank's application." … … 368 377 "innego banku." 369 378 370 #: woocommerce-imoje.php:4 29379 #: woocommerce-imoje.php:430 371 380 msgid "Alias not found. To proceed the payment you need to pay with BLIK code." 372 381 msgstr "" … … 374 383 "BLIK." 375 384 376 #: woocommerce-imoje.php:43 2385 #: woocommerce-imoje.php:433 377 386 msgid "Alias declined. To proceed the payment you need to pay with BLIK code." 378 387 msgstr "" 379 388 "Alias został odrzucony. Aby kontynuować płatność należy zapłacić kodem BLIK." 380 389 381 #: woocommerce-imoje.php:43 4390 #: woocommerce-imoje.php:435 382 391 msgid "You have entered wrong BLIK code." 383 392 msgstr "Wprowadziłeś błędny kod BLIK." 384 393 385 #: woocommerce-imoje.php:43 7394 #: woocommerce-imoje.php:438 386 395 msgid "BLIK code expired." 387 396 msgstr "Kod BLIK stracił ważność." 388 397 389 #: woocommerce-imoje.php:44 1398 #: woocommerce-imoje.php:442 390 399 msgid "Something went wrong with BLIK code." 391 400 msgstr "Coś poszło nie tak z kodem BLIK." 392 401 393 #: woocommerce-imoje.php:44 4402 #: woocommerce-imoje.php:445 394 403 msgid "Payment declined at the banking application." 395 404 msgstr "Płatność została odrzucona w aplikacji bankowej." 396 405 397 #: woocommerce-imoje.php:44 8406 #: woocommerce-imoje.php:449 398 407 msgid "Payment failed - not confirmed on time in the banking application." 399 408 msgstr "" 400 409 "Płatność nie powiodła się - nie potwierdzono na czas w aplikacji bankowej." 401 410 402 #: woocommerce-imoje.php:45 1411 #: woocommerce-imoje.php:452 403 412 msgid "Inserted wrong PIN code in banking application." 404 413 msgstr "Wprowadzono błędny kod PIN w aplikacji bankowej." 405 414 406 #: woocommerce-imoje.php:45 4415 #: woocommerce-imoje.php:455 407 416 msgid "Payment failed (security)." 408 417 msgstr "Płatność nie powiodła się (bezpieczeństwo)." 409 418 410 #: woocommerce-imoje.php:45 7419 #: woocommerce-imoje.php:458 411 420 msgid "Limit exceeded in your banking application." 412 421 msgstr "Przekroczono limit w Twojej aplikacji bankowej." 413 422 414 #: woocommerce-imoje.php:46 0423 #: woocommerce-imoje.php:461 415 424 msgid "Insufficient funds in your bank account." 416 425 msgstr "Niewystarczające środki na Twoim koncie bankowym." 417 426 418 #: woocommerce-imoje.php:46 3427 #: woocommerce-imoje.php:464 419 428 msgid "Issuer declined." 420 429 msgstr "Odmowa issuera." 421 430 422 #: woocommerce-imoje.php:46 6431 #: woocommerce-imoje.php:467 423 432 msgid "Transaction not found." 424 433 msgstr "Transakcja nie została znaleziona." 425 434 426 #: woocommerce-imoje.php:4 69435 #: woocommerce-imoje.php:470 427 436 msgid "Bad IBAN." 428 437 msgstr "Zły IBAN." 429 438 430 #: woocommerce-imoje.php:47 2439 #: woocommerce-imoje.php:473 431 440 msgid "Transfer not possible." 432 441 msgstr "Transfer nie jest możliwy." 433 442 434 #: woocommerce-imoje.php:47 5443 #: woocommerce-imoje.php:476 435 444 msgid "Return late." 436 445 msgstr "Zwrot za późno." 437 446 438 #: woocommerce-imoje.php:47 8447 #: woocommerce-imoje.php:479 439 448 msgid "Return amount exceeded." 440 449 msgstr "Przekroczona kwota zwrotu." 441 450 442 #: woocommerce-imoje.php:48 1451 #: woocommerce-imoje.php:482 443 452 msgid "Transfer late." 444 453 msgstr "Transfer za późno." -
imoje/trunk/readme.txt
r3272390 r3284131 2 2 Contributors: imoje 3 3 Tags: imoje, woocommerce, payments, payment gateway, checkout 4 Tested up to: 6. 7.24 Tested up to: 6.8.0 5 5 Requires PHP: 5.6.0 6 6 License: GPLv2 7 Stable tag: 4. 8.27 Stable tag: 4.9.0 8 8 9 9 Add payment via imoje to WooCommerce … … 73 73 74 74 == Changelog == 75 = 4.9.0 = 76 * added Electronic wallet payment method 77 * minor fixes 75 78 = 4.8.2 = 76 79 * fixed an issue with repayment of unpaid orders -
imoje/trunk/woocommerce-imoje.php
r3272390 r3284131 4 4 Plugin URI: https://imoje.pl 5 5 Description: Add payment via imoje to WooCommerce 6 Version: 4. 8.26 Version: 4.9.0 7 7 Author: imoje <kontakt.tech@imoje.pl> 8 8 Author URI: https://imoje.pl … … 28 28 } 29 29 30 @include_once __DIR__ . "/includes/libs/payment-core/vendor/autoload.php"; 31 @include_once __DIR__ . "/includes/libs/Payment-core/vendor/autoload.php"; 30 $pathToAutoload = __DIR__ . "/includes/libs/payment-core/vendor/autoload.php"; 31 32 if (file_exists($pathToAutoload)) { 33 include_once $pathToAutoload; 34 } else { 35 include_once __DIR__ . "/includes/libs/Payment-core/vendor/autoload.php"; 36 } 37 32 38 @include_once __DIR__ . "/includes/Helper.php"; 33 39 … … 69 75 'WC_Gateway_ImojeVisa', 70 76 'WC_Gateway_ImojeInstallments', 77 'WC_Gateway_ImojeWallet', 71 78 ]; 72 79 }
Note: See TracChangeset
for help on using the changeset viewer.