Plugin Directory

Changeset 3754606


Ignore:
Timestamp:
10/19/2026 11:28:15 AM (38 hours ago)
Author:
yithemes
Message:

Version 1.62.1

Location:
yith-paypal-express-checkout-for-woocommerce
Files:
388 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • yith-paypal-express-checkout-for-woocommerce/trunk/includes/class.yith-paypal-ec-api-handler.php

    r3182208 r3754606  
    185185                                                'yith_paypal_ec_back' => 1,
    186186                                                'billing_agreement'   => $this->needs_billing_agreement( $order ),
     187                                                'order_key'           => $order->get_order_key(),
    187188                                        )
    188189                                ),
    … …  
    221222                                        'token'               => WC()->session->yith_paypal_session['token'],
    222223                                        'order_id'            => $order_id,
     224                                        'order_key'           => $order->get_order_key(),
    223225                                );
    224226                                $url   = add_query_arg( $keys, WC()->api_request_url( 'yith_paypal_ec' ) );
  • yith-paypal-express-checkout-for-woocommerce/trunk/includes/class.yith-paypal-ec-gateway.php

    r3310990 r3754606  
    388388                        $token = sanitize_text_field( wp_unslash( $request['token'] ) );
    389389
    390                         if ( isset( $request['order_key'] ) ) {
    391                                 $request['order_id'] = wc_get_order_id_by_order_key( sanitize_text_field( wp_unslash( $request['order_key'] ) ) );
    392                         }
    393 
    394                         $order_id = isset( $request['order_id'] ) ? sanitize_text_field( wp_unslash( $request['order_id'] ) ) : 0;
     390                        $order_key        = isset( $request['order_key'] ) ? sanitize_text_field( wp_unslash( $request['order_key'] ) ) : '';
     391                        $request_order_id = isset( $request['order_id'] ) ? absint( $request['order_id'] ) : 0;
    395392
    396393                        try {
    … …  
    406403                                }
    407404
    408                                 $order             = ! $order_id ? $checkout_details->get_order() : wc_get_order( $order_id );
     405                                $paypal_order  = $checkout_details->get_order();
     406                                $paypal_custom = $checkout_details->get_custom();
     407                                $order         = $order_key ? wc_get_order( wc_get_order_id_by_order_key( $order_key ) ) : false;
     408
     409                                if ( ! $order || ! $order->key_is_valid( $order_key ) || ( $request_order_id && (int) $order->get_id() !== $request_order_id ) || ( $paypal_custom && ! $paypal_order ) || ( $paypal_order && (int) $paypal_order->get_id() !== (int) $order->get_id() ) ) {
     410                                        throw new YITH_PayPal_EC_Exception( esc_html__( 'The order could not be verified.', 'yith-paypal-express-checkout-for-woocommerce' ) );
     411                                }
     412
     413                                if ( ! $paypal_order && ( ! isset( WC()->session->yith_paypal_session['token'] ) || WC()->session->yith_paypal_session['token'] !== $token ) ) {
     414                                        throw new YITH_PayPal_EC_Exception( esc_html__( 'The PayPal token could not be verified for this order.', 'yith-paypal-express-checkout-for-woocommerce' ) );
     415                                }
     416
    409417                                $with_subscription = false !== $this->api->needs_billing_agreement( $order );
    410418                                if ( $with_subscription && 1 != $checkout_details->get_billing_agreement_accepted_status() ) { //phpcs:ignore
    … …  
    423431                                        )
    424432                                );
    425                                 $this->save_payer_info( $order, $checkout_details, $with_subscription );
    426433
    427434                                if ( ! is_null( $order ) ) {
    … …  
    468475                                        }
    469476
     477                                        $this->save_payer_info( $order, $checkout_details, $with_subscription );
    470478                                        $with_subscription && $this->save_billing_agreement_id( $order, $payment_response->get_billing_agreement_id() );
    471479
    … …  
    775783
    776784                        foreach ( $args as $key => $value ) {
     785                                $value = 'Payer PayPal address' === $key ? sanitize_email( $value ) : sanitize_text_field( $value );
    777786                                $order->update_meta_data( $key, $value );
    778787                        }
  • yith-paypal-express-checkout-for-woocommerce/trunk/includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php

    r3308451 r3754606  
    364364                        $token = sanitize_text_field( wp_unslash( $request['token'] ) );
    365365
    366                         if ( isset( $request['order_key'] ) ) {
    367                                 $request['order_id'] = wc_get_order_id_by_order_key( sanitize_text_field( wp_unslash( $request['order_key'] ) ) );
    368                         }
    369 
    370                         $order_id = isset( $request['order_id'] ) ? sanitize_text_field( wp_unslash( $request['order_id'] ) ) : 0;
     366                        $order_key        = isset( $request['order_key'] ) ? sanitize_text_field( wp_unslash( $request['order_key'] ) ) : '';
     367                        $request_order_id = isset( $request['order_id'] ) ? absint( $request['order_id'] ) : 0;
    371368
    372369                        try {
    … …  
    382379                                }
    383380
    384                                 $order             = ! $order_id ? $checkout_details->get_order() : wc_get_order( $order_id );
     381                                $paypal_order  = $checkout_details->get_order();
     382                                $paypal_custom = $checkout_details->get_custom();
     383                                $order         = $order_key ? wc_get_order( wc_get_order_id_by_order_key( $order_key ) ) : false;
     384
     385                                if ( ! $order || ! $order->key_is_valid( $order_key ) || ( $request_order_id && (int) $order->get_id() !== $request_order_id ) || ( $paypal_custom && ! $paypal_order ) || ( $paypal_order && (int) $paypal_order->get_id() !== (int) $order->get_id() ) ) {
     386                                        throw new YITH_PayPal_EC_Exception( esc_html__( 'The order could not be verified.', 'yith-paypal-express-checkout-for-woocommerce' ) );
     387                                }
     388
     389                                if ( ! $paypal_order && ( ! isset( WC()->session->yith_paypal_session['token'] ) || WC()->session->yith_paypal_session['token'] !== $token ) ) {
     390                                        throw new YITH_PayPal_EC_Exception( esc_html__( 'The PayPal token could not be verified for this order.', 'yith-paypal-express-checkout-for-woocommerce' ) );
     391                                }
     392
    385393                                $with_subscription = false !== $this->api->needs_billing_agreement( $order );
    386394                                if ( $with_subscription && 1 != $checkout_details->get_billing_agreement_accepted_status() ) { //phpcs:ignore
    … …  
    399407                                        )
    400408                                );
    401                                 $this->save_payer_info( $order, $checkout_details, $with_subscription );
    402409
    403410                                if ( ! is_null( $order ) ) {
    … …  
    444451                                        }
    445452
     453                                        $this->save_payer_info( $order, $checkout_details, $with_subscription );
    446454                                        $with_subscription && $this->save_billing_agreement_id( $order, $payment_response->get_billing_agreement_id() );
    447455
    … …  
    751759
    752760                        foreach ( $args as $key => $value ) {
     761                                $value = 'Payer PayPal address' === $key ? sanitize_email( $value ) : sanitize_text_field( $value );
    753762                                $order->update_meta_data( $key, $value );
    754763                        }
  • yith-paypal-express-checkout-for-woocommerce/trunk/init.php

    r3722761 r3754606  
    44 * Plugin URI: https://yithemes.com/themes/plugins/yith-paypal-express-checkout-for-woocommerce/
    55 * Description: <code><strong>YITH PayPal Express Checkout for WooCommerce</strong></code> allows to make payments immediate with PayPal Express Checkout and forget about customers’ complaints about pending orders. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
    6  * Version: 1.62.0
     6 * Version: 1.62.1
    77 * Author: YITH
    88 * Author URI: https://yithemes.com/
    … …  
    2525        return;
    2626} else {
    27         define( 'YITH_PAYPAL_EC_VERSION', '1.62.0' );
     27        define( 'YITH_PAYPAL_EC_VERSION', '1.62.1' );
    2828}
    2929
  • yith-paypal-express-checkout-for-woocommerce/trunk/languages/yith-paypal-express-checkout-for-woocommerce.pot

    r3722761 r3754606  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: YITH PayPal Express Checkout for WooCommerce 1.62.0\n"
     5"Project-Id-Version: YITH PayPal Express Checkout for WooCommerce 1.62.1\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/yith-paypal-express-checkout-for-"
    88"woocommerce\n"
    9 "POT-Creation-Date: 2026-10-01 09:11:27+00:00\n"
     9"POT-Creation-Date: 2026-10-19 11:23:38+00:00\n"
    1010"MIME-Version: 1.0\n"
    1111"Content-Type: text/plain; charset=utf-8\n"
    … …  
    455455#: includes/class.yith-paypal-ec-gateway.php:340
    456456#: includes/class.yith-paypal-ec-gateway.php:375
    457 #: includes/class.yith-paypal-ec-gateway.php:486
    458 #: includes/class.yith-paypal-ec-gateway.php:819
     457#: includes/class.yith-paypal-ec-gateway.php:494
     458#: includes/class.yith-paypal-ec-gateway.php:828
    459459#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:288
    460460#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:316
    461461#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:351
    462 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:462
    463 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:795
     462#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:470
     463#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:804
    464464#. translators: Placeholder is the error message.
    465465#. translators: placeholder error message.
    … …  
    467467msgstr ""
    468468
    469 #: includes/class.yith-paypal-ec-gateway.php:412
    470 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:388
     469#: includes/class.yith-paypal-ec-gateway.php:410
     470#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:386
     471msgid "The order could not be verified."
     472msgstr ""
     473
     474#: includes/class.yith-paypal-ec-gateway.php:414
     475#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:390
     476msgid "The PayPal token could not be verified for this order."
     477msgstr ""
     478
     479#: includes/class.yith-paypal-ec-gateway.php:420
     480#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:396
    471481#. translators: Placeholder is number of order.
    472482msgid "Billing Agreement was not accepted for the order %d"
    473483msgstr ""
    474484
    475 #: includes/class.yith-paypal-ec-gateway.php:414
    476 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:390
     485#: includes/class.yith-paypal-ec-gateway.php:422
     486#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:398
    477487msgid "Billing Agreement was not accepted."
    478488msgstr ""
    479489
    480 #: includes/class.yith-paypal-ec-gateway.php:464
    481 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:440
     490#: includes/class.yith-paypal-ec-gateway.php:471
     491#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:447
    482492#. translators: Placeholder 1. error code 2. error message.
    483493msgid "YITH PayPal EC error: (%1$d) %2$s"
    484494msgstr ""
    485495
    486 #: includes/class.yith-paypal-ec-gateway.php:466
    487 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:442
     496#: includes/class.yith-paypal-ec-gateway.php:473
     497#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:449
    488498#. translators: Placeholder 1. order id 2. error code 3. error message.
    489499msgid "Failed payment for order %1$d - %2$s - %3$s"
    490500msgstr ""
    491501
    492 #: includes/class.yith-paypal-ec-gateway.php:521
    493 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:497
     502#: includes/class.yith-paypal-ec-gateway.php:529
     503#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:505
    494504#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:177
    495505#: includes/integrations/class.yith-paypal-ec-subscription.php:159
    … …  
    498508msgstr ""
    499509
    500 #: includes/class.yith-paypal-ec-gateway.php:522
    501 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:498
     510#: includes/class.yith-paypal-ec-gateway.php:530
     511#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:506
    502512#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:178
    503513#: includes/integrations/class.yith-paypal-ec-subscription.php:160
    … …  
    507517msgstr ""
    508518
    509 #: includes/class.yith-paypal-ec-gateway.php:525
    510 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:501
     519#: includes/class.yith-paypal-ec-gateway.php:533
     520#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:509
    511521#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:181
    512522#: includes/integrations/class.yith-paypal-ec-subscription.php:163
    … …  
    515525msgstr ""
    516526
    517 #: includes/class.yith-paypal-ec-gateway.php:527
    518 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:503
     527#: includes/class.yith-paypal-ec-gateway.php:535
     528#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:511
    519529#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:172
    520530#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:183
    … …  
    528538msgstr ""
    529539
    530 #: includes/class.yith-paypal-ec-gateway.php:532
    531 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:508
     540#: includes/class.yith-paypal-ec-gateway.php:540
     541#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:516
    532542#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:195
    533543#: includes/integrations/class.yith-paypal-ec-subscription.php:177
    … …  
    539549msgstr ""
    540550
    541 #: includes/class.yith-paypal-ec-gateway.php:534
    542 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:510
     551#: includes/class.yith-paypal-ec-gateway.php:542
     552#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:518
    543553#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:197
    544554#: includes/integrations/class.yith-paypal-ec-subscription.php:179
    … …  
    550560msgstr ""
    551561
    552 #: includes/class.yith-paypal-ec-gateway.php:565
    553 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:541
     562#: includes/class.yith-paypal-ec-gateway.php:573
     563#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:549
    554564#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:231
    555565#: includes/integrations/class.yith-paypal-ec-subscription.php:213
    … …  
    561571msgstr ""
    562572
    563 #: includes/class.yith-paypal-ec-gateway.php:567
    564 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:543
     573#: includes/class.yith-paypal-ec-gateway.php:575
     574#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:551
    565575#. translators: Placeholder status of payment.
    566576msgid "YITH PayPal EC payment failed: %s"
    567577msgstr ""
    568578
    569 #: includes/class.yith-paypal-ec-gateway.php:571
    570 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:547
     579#: includes/class.yith-paypal-ec-gateway.php:579
     580#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:555
    571581#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions.php:241
    572582#: includes/integrations/class.yith-paypal-ec-subscription.php:223
    … …  
    578588msgstr ""
    579589
    580 #: includes/class.yith-paypal-ec-gateway.php:573
    581 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:549
     590#: includes/class.yith-paypal-ec-gateway.php:581
     591#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:557
    582592#. translators: Placeholder 1. order id 2.transaction id.
    583593msgid "Payment done for order %1$d (ID: %2$s)"
    584594msgstr ""
    585595
    586 #: includes/class.yith-paypal-ec-gateway.php:620
    587 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:596
     596#: includes/class.yith-paypal-ec-gateway.php:628
     597#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:604
    588598#. translators: 1 order id 2. error code 3. error message.
    589599msgid "Unable to complete payment for order %1$d, %2$s - %3$s"
    590600msgstr ""
    591601
    592 #: includes/class.yith-paypal-ec-gateway.php:621
    593 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:597
    594 msgid "Unable to complete payment"
    595 msgstr ""
    596 
    597602#: includes/class.yith-paypal-ec-gateway.php:629
    598603#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:605
     604msgid "Unable to complete payment"
     605msgstr ""
     606
     607#: includes/class.yith-paypal-ec-gateway.php:637
     608#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:613
    599609#. translators: 1 order id 2.transaction id.
    600610msgid "YITH PayPal EC - payment completed for order %1$d - Transaction id: %2$s"
    601611msgstr ""
    602612
    603 #: includes/class.yith-paypal-ec-gateway.php:631
    604 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:607
     613#: includes/class.yith-paypal-ec-gateway.php:639
     614#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:615
    605615#. translators: 1. transaction id.
    606616msgid "YITH PayPal EC - payment completed. Transaction ID: %s"
    607617msgstr ""
    608618
    609 #: includes/class.yith-paypal-ec-gateway.php:636
    610 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:612
     619#: includes/class.yith-paypal-ec-gateway.php:644
     620#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:620
    611621#. translators: 1 order id 2.transaction id.
    612622msgid ""
    … …  
    615625msgstr ""
    616626
    617 #: includes/class.yith-paypal-ec-gateway.php:637
    618 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:613
     627#: includes/class.yith-paypal-ec-gateway.php:645
     628#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:621
    619629msgid "YITH PayPal EC payment - new transaction_id not saved."
    620630msgstr ""
    621631
    622 #: includes/class.yith-paypal-ec-gateway.php:673
    623 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:649
     632#: includes/class.yith-paypal-ec-gateway.php:681
     633#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:657
    624634#. translators: 1. order id 2. error code 3. error message.
    625635msgid "Unable to delete payment for order %1$d, %2$s - %3$s"
    626636msgstr ""
    627637
    628 #: includes/class.yith-paypal-ec-gateway.php:674
    629 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:650
     638#: includes/class.yith-paypal-ec-gateway.php:682
     639#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:658
    630640msgid "Unable to delete payment"
    631641msgstr ""
    632642
    633 #: includes/class.yith-paypal-ec-gateway.php:677
    634 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:653
     643#: includes/class.yith-paypal-ec-gateway.php:685
     644#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:661
    635645#. translators: 1. order id .
    636646msgid "YITH PayPal EC - payment deleted for order %d"
    637647msgstr ""
    638648
    639 #: includes/class.yith-paypal-ec-gateway.php:679
    640 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:655
     649#: includes/class.yith-paypal-ec-gateway.php:687
     650#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:663
    641651#. translators: 1. transaction id .
    642652msgid "YITH PayPal EC - payment deleted (ID: %s)"
    643653msgstr ""
    644654
    645 #: includes/class.yith-paypal-ec-gateway.php:702
    646 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:678
     655#: includes/class.yith-paypal-ec-gateway.php:710
     656#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:686
    647657#. translators: Placeholder is the order id.
    648658msgid "Refund failed for order %d"
    649659msgstr ""
    650660
    651 #: includes/class.yith-paypal-ec-gateway.php:704
    652 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:680
     661#: includes/class.yith-paypal-ec-gateway.php:712
     662#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:688
    653663msgid "Refund failed."
    654664msgstr ""
    655665
    656 #: includes/class.yith-paypal-ec-gateway.php:713
    657 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:689
     666#: includes/class.yith-paypal-ec-gateway.php:721
     667#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:697
    658668#. translators: Placeholder 1. amount of refund 2. transaction id 3. order id.
    659669msgid "Refunded %1$s - Refund ID: %2$s for order %3$d"
    660670msgstr ""
    661671
    662 #: includes/class.yith-paypal-ec-gateway.php:715
    663 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:691
     672#: includes/class.yith-paypal-ec-gateway.php:723
     673#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:699
    664674#. translators: Placeholder 1. amount of refund 2. transaction id.
    665675msgid "Refunded %1$s - Refund ID: %2$s"
    666676msgstr ""
    667677
    668 #: includes/class.yith-paypal-ec-gateway.php:719
    669 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:695
     678#: includes/class.yith-paypal-ec-gateway.php:727
     679#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:703
    670680#. translators: Placeholder 1. order id 2. error message  3. error code.
    671681msgid "An error occurred while refunding order %1$d: %2$s - Code: %3$s"
    672682msgstr ""
    673683
    674 #: includes/class.yith-paypal-ec-gateway.php:721
    675 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:697
     684#: includes/class.yith-paypal-ec-gateway.php:729
     685#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:705
    676686#. translators: Placeholder 1.error message.
    677687msgid "An error occurred during the refund: %s"
    678688msgstr ""
    679689
    680 #: includes/class.yith-paypal-ec-gateway.php:810
    681 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:786
     690#: includes/class.yith-paypal-ec-gateway.php:819
     691#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:795
    682692msgid "New payment request for order: #"
    683693msgstr ""
    684694
    685 #: includes/class.yith-paypal-ec-gateway.php:817
    686 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:793
     695#: includes/class.yith-paypal-ec-gateway.php:826
     696#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:802
    687697#. translators: placeholder error message.
    688698msgid "An error occurred during the payment: %s"
    689699msgstr ""
    690700
    691 #: includes/class.yith-paypal-ec-gateway.php:877
    692 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:853
     701#: includes/class.yith-paypal-ec-gateway.php:886
     702#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:862
    693703msgid "Proceed order"
    694704msgstr ""
    695705
    696 #: includes/class.yith-paypal-ec-gateway.php:880
    697 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:856
     706#: includes/class.yith-paypal-ec-gateway.php:889
     707#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:865
    698708msgid "Proceed to PayPal"
    699709msgstr ""
    700710
    701 #: includes/class.yith-paypal-ec-gateway.php:883
    702 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:859
     711#: includes/class.yith-paypal-ec-gateway.php:892
     712#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:868
    703713msgid "Complete Order"
    704714msgstr ""
    705715
    706 #: includes/class.yith-paypal-ec-gateway.php:926
    707 #: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:902
     716#: includes/class.yith-paypal-ec-gateway.php:935
     717#: includes/integrations/bh-subscriptions/class.yith-paypal-ec-bh-subscriptions-gateway.php:911
    708718msgid "PayPal Fee:"
    709719msgstr ""
  • yith-paypal-express-checkout-for-woocommerce/trunk/plugin-fw/init.php

    r3722761 r3754606  
    22/**
    33 * Framework Name: YIT Plugin Framework
    4  * Version: 4.7.9
     4 * Version: 4.7.10
    55 * Author: YITH
    66 * Text Domain: yith-plugin-fw
    … …  
    88 *
    99 * @author  YITH <plugins@yithemes.com>
    10  * @version 4.7.9
     10 * @version 4.7.10
    1111 * @package YITH\PluginFramework
    1212 */
  • yith-paypal-express-checkout-for-woocommerce/trunk/plugin-fw/templates/fields/inline-fields.php

    r3209937 r3754606  
    3232                        $default = isset( $inline_field['default'] ) ? $inline_field['default'] : '';
    3333
    34                         $inline_field['value'] = isset( $value[ $key ] ) ? maybe_unserialize( $value[ $key ] ) : $default;
     34                        if ( isset( $value[ $key ] ) ) {
     35                                $inline_field['value'] = $value[ $key ];
     36
     37                                if ( is_serialized( $value[ $key ] ) ) {
     38                                        $inline_field['value'] = unserialize(
     39                                                trim( $value[ $key ] ),
     40                                                array( 'allowed_classes' => false )
     41                                        );
     42                                }
     43                        } else {
     44                                $inline_field['value'] = $default;
     45                        }
     46
    3547                        $inline_field['class'] = isset( $inline_field['class'] ) ? $inline_field['class'] : '';
    3648                        $inline_field['id']    = $field_id . '_' . $key;
  • yith-paypal-express-checkout-for-woocommerce/trunk/readme.txt

    r3722761 r3754606  
    66Requires at least: 6.9
    77Tested up to: 7.1
    8 Stable tag: 1.62.0
     8Stable tag: 1.62.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html/
    … …  
    8686== Changelog ==
    8787
     88= 1.62.1 - Released on 01 October 2026 =
     89* Security: remediate vulnerable to Broken Access Control
     90
    8891= 1.62.0 - Released on 01 October 2026 =
    8992* New: Support for WooCommerce 11.2
Note: See TracChangeset for help on using the changeset viewer.