Plugin Directory

Changeset 2680327


Ignore:
Timestamp:
02/17/2022 12:44:45 AM (4 years ago)
Author:
woothemes
Message:

Tagging version 6.2.0

Location:
woocommerce-gateway-stripe
Files:
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-gateway-stripe/tags/6.2.0/build/payment_gateways.asset.php

    r2666455 r2680327  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '8cec8ac706a3066dab1bf95c3ea3f8f7');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'b4b8e86ff3d285f29625e368e9c51bbf');
  • woocommerce-gateway-stripe/tags/6.2.0/build/payment_requests_settings.asset.php

    r2666455 r2680327  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c560474cde9517938d81521a40d66d0f');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'd04f553a7fb5521ec266f6ef95e914d1');
  • woocommerce-gateway-stripe/tags/6.2.0/build/upe_settings.asset.php

    r2666455 r2680327  
    1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-currency', 'wc-navigation', 'wc-store-data', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '67278aebfc9b1c6347177f28be1734b2');
     1<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-currency', 'wc-navigation', 'wc-store-data', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '517c9b8a15dfa040788de3e3faf4309b');
  • woocommerce-gateway-stripe/tags/6.2.0/changelog.txt

    r2666455 r2680327  
    11*** Changelog ***
     2
     3= 6.2.0 - 2022-02-17 =
     4* Add - Add onboarding payment gateway setup methods.
     5* Fix - Enable Stripe payment method after connecting account.
     6* Fix - Missing statement descriptor in account summary API when not set in Stripe.
    27
    38= 6.1.0 - 2022-01-26 =
  • woocommerce-gateway-stripe/tags/6.2.0/includes/admin/class-wc-rest-stripe-account-controller.php

    r2666455 r2680327  
    2626    private $account;
    2727
    28     public function __construct( WC_Stripe_Account $account ) {
     28    /**
     29     * Stripe payment gateway.
     30     *
     31     * @var WC_Gateway_Stripe
     32     */
     33    private $gateway;
     34
     35    public function __construct( WC_Gateway_Stripe $gateway, WC_Stripe_Account $account ) {
     36        $this->gateway = $gateway;
    2937        $this->account = $account;
    3038    }
     
    99107        $account = $this->account->get_cached_account_data();
    100108
     109        // Use statement descriptor from settings, falling back to Stripe account statement descriptor if needed.
     110        $statement_descriptor = WC_Stripe_Helper::clean_statement_descriptor( $this->gateway->get_option( 'statement_descriptor' ) );
     111        if ( empty( $statement_descriptor ) ) {
     112            $statement_descriptor = $account['settings']['payments']['statement_descriptor'];
     113        }
     114        if ( empty( $statement_descriptor ) ) {
     115            $statement_descriptor = null;
     116        }
     117
    101118        return new WP_REST_Response(
    102119            [
     
    105122                'current_deadline'         => $account['requirements']['current_deadline'] ?? null,
    106123                'status'                   => $this->account->get_account_status(),
    107                 'statement_descriptor'     => $account['settings']['payments']['statement_descriptor'] ?? '',
     124                'statement_descriptor'     => $statement_descriptor,
    108125                'store_currencies'         => [
    109126                    'default'   => $account['default_currency'] ?? get_woocommerce_currency(),
  • woocommerce-gateway-stripe/tags/6.2.0/includes/admin/class-wc-rest-stripe-account-keys-controller.php

    r2653262 r2680327  
    194194
    195195        // If all keys were empty, then is a new account; we need to set the test/live mode.
    196         $new_account = ! trim( $settings['publishable_key'] ) && ! trim( $settings['secret_key'] ) && ! trim( $settings['test_publishable_key'] ) && ! trim( $settings['test_secret_key'] );
     196        $new_account = ! trim( $settings['publishable_key'] )
     197                    && ! trim( $settings['secret_key'] )
     198                    && ! trim( $settings['test_publishable_key'] )
     199                    && ! trim( $settings['test_secret_key'] );
     200        // If all new keys are empty, then account is being disconnected. We should disable the payment gateway.
     201        $is_deleting_account = ! trim( $publishable_key )
     202                            && ! trim( $secret_key )
     203                            && ! trim( $test_publishable_key )
     204                            && ! trim( $test_secret_key );
    197205
    198206        $settings['publishable_key']      = is_null( $publishable_key ) ? $settings['publishable_key'] : $publishable_key;
     
    204212
    205213        if ( $new_account ) {
     214            $settings['enabled'] = 'yes';
    206215            if ( trim( $settings['publishable_key'] ) && trim( $settings['secret_key'] ) ) {
    207216                $settings['testmode'] = 'no';
    208             } else if ( trim( $settings['test_publishable_key'] ) && trim( $settings['test_secret_key'] ) ) {
     217            } elseif ( trim( $settings['test_publishable_key'] ) && trim( $settings['test_secret_key'] ) ) {
    209218                $settings['testmode'] = 'yes';
    210219            }
     220        } elseif ( $is_deleting_account ) {
     221            $settings['enabled'] = 'no';
    211222        }
    212223
  • woocommerce-gateway-stripe/tags/6.2.0/includes/class-wc-gateway-stripe.php

    r2666455 r2680327  
    124124        add_filter( 'woocommerce_get_checkout_payment_url', [ $this, 'get_checkout_payment_url' ], 10, 2 );
    125125        add_filter( 'woocommerce_settings_api_sanitized_fields_' . $this->id, [ $this, 'settings_api_sanitized_fields' ] );
     126        add_filter( 'woocommerce_gateway_' . $this->id . '_settings_values', [ $this, 'update_onboarding_settings' ] );
    126127
    127128        // Note: display error is in the parent class.
     
    11631164        return $value;
    11641165    }
     1166
     1167    /**
     1168     * Get required setting keys for setup.
     1169     *
     1170     * @return array Array of setting keys used for setup.
     1171     */
     1172    public function get_required_settings_keys() {
     1173        return [ 'publishable_key', 'secret_key' ];
     1174    }
     1175
     1176    /**
     1177     * Get the connection URL.
     1178     *
     1179     * @return string Connection URL.
     1180     */
     1181    public function get_connection_url( $return_url = '' ) {
     1182        $api     = new WC_Stripe_Connect_API();
     1183        $connect = new WC_Stripe_Connect( $api );
     1184
     1185        $url = $connect->get_oauth_url( $return_url );
     1186
     1187        return is_wp_error( $url ) ? null : $url;
     1188    }
     1189
     1190    /**
     1191     * Get help text to display during quick setup.
     1192     *
     1193     * @return string
     1194     */
     1195    public function get_setup_help_text() {
     1196        return sprintf(
     1197            /* translators: %1$s Link to Stripe API details, %2$s Link to register a Stripe account */
     1198            __( 'Your API details can be obtained from your <a href="%1$s">Stripe account</a>. Don’t have a Stripe account? <a href="%2$s">Create one.</a>', 'woocommerce-gateway-stripe' ),
     1199            'https://dashboard.stripe.com/apikeys',
     1200            'https://dashboard.stripe.com/register'
     1201        );
     1202    }
     1203
     1204    /**
     1205     * Determine if the gateway still requires setup.
     1206     *
     1207     * @return bool
     1208     */
     1209    public function needs_setup() {
     1210        return ! $this->get_option( 'publishable_key' ) || ! $this->get_option( 'secret_key' );
     1211    }
     1212
     1213    /**
     1214     * Updates the test mode based on keys provided when setting up the gateway via onboarding.
     1215     *
     1216     * @return array
     1217     */
     1218    public function update_onboarding_settings( $settings ) {
     1219        if ( ! isset( $_SERVER['HTTP_REFERER'] ) ) {
     1220            return;
     1221        }
     1222
     1223        parse_str( wp_parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_QUERY ), $queries ); // phpcs:ignore sanitization ok.
     1224
     1225        // Determine if merchant is onboarding (page='wc-admin' and task='payments').
     1226        if (
     1227            ! isset( $queries ) ||
     1228            ! isset( $queries['page'] ) ||
     1229            ! isset( $queries['task'] ) ||
     1230            'wc-admin' !== $queries['page'] ||
     1231            'payments' !== $queries['task']
     1232        ) {
     1233            return;
     1234        }
     1235
     1236        if ( ! empty( $settings['publishable_key'] ) && ! empty( $settings['secret_key'] ) ) {
     1237            if ( strpos( $settings['publishable_key'], 'pk_test_' ) === 0 || strpos( $settings['secret_key'], 'sk_test_' ) === 0 ) {
     1238                $settings['test_publishable_key'] = $settings['publishable_key'];
     1239                $settings['test_secret_key']      = $settings['secret_key'];
     1240                unset( $settings['publishable_key'] );
     1241                unset( $settings['secret_key'] );
     1242                $settings['testmode'] = 'yes';
     1243            } else {
     1244                $settings['testmode'] = 'no';
     1245            }
     1246        }
     1247
     1248        return $settings;
     1249    }
    11651250}
  • woocommerce-gateway-stripe/tags/6.2.0/includes/class-wc-stripe-intent-controller.php

    r2642120 r2680327  
    408408                'currency'    => strtolower( $currency ),
    409409                'metadata'    => $gateway->get_metadata_from_order( $order ),
    410                 'description' => __( 'Stripe - Order', 'woocommerce-gateway-stripe' ) . ' ' . $order->get_id(),
     410                /* translators: 1) blog name 2) order number */
     411                'description' => sprintf( __( '%1$s - Order %2$s', 'woocommerce-gateway-stripe' ), wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ), $order->get_order_number() ),
    411412            ];
    412413
  • woocommerce-gateway-stripe/tags/6.2.0/includes/connect/class-wc-stripe-connect.php

    r2653262 r2680327  
    129129            $default_options                        = $this->get_default_stripe_config();
    130130            $options                                = array_merge( $default_options, get_option( self::SETTINGS_OPTION, [] ) );
     131            $options['enabled']                     = 'yes';
    131132            $options['testmode']                    = $is_test ? 'yes' : 'no';
    132133            $options[ $prefix . 'publishable_key' ] = $result->publishableKey; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
  • woocommerce-gateway-stripe/tags/6.2.0/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php

    r2666455 r2680327  
    122122
    123123        $main_settings              = get_option( 'woocommerce_stripe_settings' );
    124         $this->title                = $this->get_option( 'title_upe' );
     124        $this->title                = ! empty( $this->get_option( 'title_upe' ) ) ? $this->get_option( 'title_upe' ) : $this->form_fields['title_upe']['default'];
    125125        $this->description          = '';
    126126        $this->enabled              = $this->get_option( 'enabled' );
  • woocommerce-gateway-stripe/tags/6.2.0/languages/woocommerce-gateway-stripe.pot

    r2666455 r2680327  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Stripe Gateway 6.1.0\n"
     5"Project-Id-Version: WooCommerce Stripe Gateway 6.2.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2022-01-26T22:33:57+00:00\n"
     12"POT-Creation-Date: 2022-02-17T00:44:10+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.5.0\n"
     
    5555#: includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php:245
    5656#: includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php:353
    57 #: includes/class-wc-stripe-intent-controller.php:434
     57#: includes/class-wc-stripe-intent-controller.php:435
    5858#: includes/class-wc-stripe-webhook-handler.php:832
    5959#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:557
     
    9999#. translators: 1) blog name 2) order number
    100100#: includes/abstracts/abstract-wc-stripe-payment-gateway.php:421
     101#: includes/class-wc-stripe-intent-controller.php:411
    101102#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:528
    102103msgid "%1$s - Order %2$s"
     
    219220
    220221#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:139
    221 #: includes/class-wc-gateway-stripe.php:994
     222#: includes/class-wc-gateway-stripe.php:995
    222223msgid "The \"Live Publishable Key\" should start with \"pk_live\", enter the correct key."
    223224msgstr ""
    224225
    225226#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:151
    226 #: includes/class-wc-gateway-stripe.php:1002
     227#: includes/class-wc-gateway-stripe.php:1003
    227228msgid "The \"Live Secret Key\" should start with \"sk_live\" or \"rk_live\", enter the correct key."
    228229msgstr ""
    229230
    230231#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:163
    231 #: includes/class-wc-gateway-stripe.php:1010
     232#: includes/class-wc-gateway-stripe.php:1011
    232233msgid "The \"Test Publishable Key\" should start with \"pk_test\", enter the correct key."
    233234msgstr ""
    234235
    235236#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:175
    236 #: includes/class-wc-gateway-stripe.php:1018
     237#: includes/class-wc-gateway-stripe.php:1019
    237238msgid "The \"Test Secret Key\" should start with \"sk_test\" or \"rk_test\", enter the correct key."
    238239msgstr ""
     
    268269msgstr ""
    269270
     271#. translators: %s: the error message.
    270272#: includes/admin/class-wc-rest-stripe-orders-controller.php:163
    271273msgid "Unknown error"
     
    12881290
    12891291#. translators: 1) Opening anchor tag 2) closing anchor tag
    1290 #: includes/class-wc-gateway-stripe.php:157
     1292#: includes/class-wc-gateway-stripe.php:158
    12911293msgid "If your billing address has been changed for saved payment methods, be sure to remove any %1$ssaved payment methods%2$s on file and re-add them."
    12921294msgstr ""
    12931295
    12941296#. translators: link to Stripe testing page
    1295 #: includes/class-wc-gateway-stripe.php:221
     1297#: includes/class-wc-gateway-stripe.php:222
    12961298msgid "TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the <a href=\"%s\" target=\"_blank\">Testing Stripe documentation</a> for more card numbers."
    12971299msgstr ""
    12981300
    1299 #: includes/class-wc-gateway-stripe.php:260
     1301#: includes/class-wc-gateway-stripe.php:261
    13001302msgid "Credit or debit card"
    13011303msgstr ""
    13021304
    13031305#: build/index.js:1
    1304 #: includes/class-wc-gateway-stripe.php:268
     1306#: includes/class-wc-gateway-stripe.php:269
    13051307#: client/blocks/credit-card/elements.js:117
    13061308msgid "Card Number"
     
    13081310
    13091311#: build/index.js:1
    1310 #: includes/class-wc-gateway-stripe.php:279
     1312#: includes/class-wc-gateway-stripe.php:280
    13111313#: client/blocks/credit-card/elements.js:134
    13121314msgid "Expiry Date"
    13131315msgstr ""
    13141316
    1315 #: includes/class-wc-gateway-stripe.php:287
     1317#: includes/class-wc-gateway-stripe.php:288
    13161318msgid "Card Code (CVC)"
    13171319msgstr ""
    13181320
    1319 #: includes/class-wc-gateway-stripe.php:558
     1321#: includes/class-wc-gateway-stripe.php:559
    13201322msgid "This represents the fee Stripe collects for the transaction."
    13211323msgstr ""
    13221324
    1323 #: includes/class-wc-gateway-stripe.php:559
     1325#: includes/class-wc-gateway-stripe.php:560
    13241326msgid "Stripe Fee:"
    13251327msgstr ""
    13261328
    1327 #: includes/class-wc-gateway-stripe.php:595
     1329#: includes/class-wc-gateway-stripe.php:596
    13281330msgid "This represents the net total that will be credited to your Stripe bank account. This may be in the currency that is set in your Stripe account."
    13291331msgstr ""
    13301332
    1331 #: includes/class-wc-gateway-stripe.php:596
     1333#: includes/class-wc-gateway-stripe.php:597
    13321334msgid "Stripe Payout:"
    13331335msgstr ""
    13341336
    1335 #: includes/class-wc-gateway-stripe.php:622
     1337#: includes/class-wc-gateway-stripe.php:623
    13361338#: includes/class-wc-stripe-order-handler.php:153
    13371339#: includes/class-wc-stripe-webhook-handler.php:256
     
    13421344msgstr ""
    13431345
    1344 #: includes/class-wc-gateway-stripe.php:675
     1346#: includes/class-wc-gateway-stripe.php:676
    13451347msgid ""
    13461348"Almost there!\n"
     
    13501352
    13511353#. translators: %s is the order Id
    1352 #: includes/class-wc-gateway-stripe.php:697
     1354#: includes/class-wc-gateway-stripe.php:698
    13531355msgid "Payment Intent not found for order #%s"
    13541356msgstr ""
    13551357
    13561358#. translators: 1) The error message that was received from Stripe.
    1357 #: includes/class-wc-gateway-stripe.php:936
     1359#: includes/class-wc-gateway-stripe.php:937
    13581360#: includes/class-wc-stripe-webhook-handler.php:856
    13591361#: includes/class-wc-stripe-webhook-handler.php:907
     
    13611363msgstr ""
    13621364
    1363 #: includes/class-wc-gateway-stripe.php:937
     1365#: includes/class-wc-gateway-stripe.php:938
    13641366msgid "Stripe SCA authentication failed."
    13651367msgstr ""
    13661368
    13671369#. translators: %1, %2, %3, and %4 are all HTML markup tags
    1368 #: includes/class-wc-gateway-stripe.php:1058
     1370#: includes/class-wc-gateway-stripe.php:1059
    13691371#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:1226
    13701372msgid "%1$sClear all Stripe account keys.%2$s %3$sThis will disable any connection to Stripe.%4$s"
     
    13721374
    13731375#. translators: %1, %2 and %3 are all HTML markup tags
    1374 #: includes/class-wc-gateway-stripe.php:1070
     1376#: includes/class-wc-gateway-stripe.php:1071
    13751377msgid "%1$sSet up or link an existing Stripe account.%2$s By clicking this button you agree to the %3$sTerms of Service%2$s. Or, manually enter Stripe account keys below."
    13761378msgstr ""
    13771379
    1378 #: includes/class-wc-gateway-stripe.php:1076
     1380#: includes/class-wc-gateway-stripe.php:1077
    13791381#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:1244
    13801382msgid "Manually enter Stripe keys below."
    13811383msgstr ""
    13821384
    1383 #: includes/class-wc-gateway-stripe.php:1137
     1385#: includes/class-wc-gateway-stripe.php:1138
    13841386msgid "customer bank statement"
    13851387msgstr ""
    13861388
    1387 #: includes/class-wc-gateway-stripe.php:1140
     1389#: includes/class-wc-gateway-stripe.php:1141
    13881390msgid "shortened customer bank statement"
    13891391msgstr ""
    13901392
    13911393#. translators: %1 field name, %2 Number of the maximum characters allowed
    1392 #: includes/class-wc-gateway-stripe.php:1156
     1394#: includes/class-wc-gateway-stripe.php:1157
    13931395msgid "The %1$s is invalid. The bank statement must contain only Latin characters, be between 5 and %2$u characters, contain at least one letter, and not contain any of the special characters: ' \" * &lt; &gt;"
     1396msgstr ""
     1397
     1398#. translators: %1$s Link to Stripe API details, %2$s Link to register a Stripe account
     1399#: includes/class-wc-gateway-stripe.php:1198
     1400msgid "Your API details can be obtained from your <a href=\"%1$s\">Stripe account</a>. Don’t have a Stripe account? <a href=\"%2$s\">Create one.</a>"
    13941401msgstr ""
    13951402
     
    16331640
    16341641#: includes/class-wc-stripe-intent-controller.php:84
    1635 #: includes/class-wc-stripe-intent-controller.php:564
    1636 #: includes/class-wc-stripe-intent-controller.php:624
     1642#: includes/class-wc-stripe-intent-controller.php:565
     1643#: includes/class-wc-stripe-intent-controller.php:625
    16371644msgid "CSRF verification failed."
    16381645msgstr ""
     
    16591666msgstr ""
    16601667
    1661 #: includes/class-wc-stripe-intent-controller.php:410
    1662 msgid "Stripe - Order"
    1663 msgstr ""
    1664 
    1665 #: includes/class-wc-stripe-intent-controller.php:454
     1668#: includes/class-wc-stripe-intent-controller.php:455
    16661669msgid "We're not able to add this payment method. Please refresh the page and try again."
    16671670msgstr ""
    16681671
    1669 #: includes/class-wc-stripe-intent-controller.php:520
     1672#: includes/class-wc-stripe-intent-controller.php:521
    16701673msgid "Unable to update UPE appearance values at this time."
    16711674msgstr ""
    16721675
    1673 #: includes/class-wc-stripe-intent-controller.php:570
    1674 #: includes/class-wc-stripe-intent-controller.php:582
    1675 #: includes/class-wc-stripe-intent-controller.php:642
     1676#: includes/class-wc-stripe-intent-controller.php:571
     1677#: includes/class-wc-stripe-intent-controller.php:583
     1678#: includes/class-wc-stripe-intent-controller.php:643
    16761679#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:884
    16771680msgid "We're not able to process this payment. Please try again later."
     
    16791682
    16801683#. translators: %1: transaction ID of the payment or a translated string indicating an unknown ID.
    1681 #: includes/class-wc-stripe-intent-controller.php:578
     1684#: includes/class-wc-stripe-intent-controller.php:579
    16821685msgid "A payment with ID %s was used in an attempt to pay for this order. This payment intent ID does not match any payments for this order, so it was ignored and the order was not updated."
    16831686msgstr ""
     
    24552458msgstr ""
    24562459
     2460#. translators: %s is a link to the payment re-authentication URL.
    24572461#: templates/emails/failed-preorder-authentication.php:20
    24582462msgid "Authorize the payment now &raquo;"
  • woocommerce-gateway-stripe/tags/6.2.0/readme.txt

    r2666455 r2680327  
    55Tested up to: 5.9
    66Requires PHP: 7.0
    7 Stable tag: 6.1.0
     7Stable tag: 6.2.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    129129== Changelog ==
    130130
    131 = 6.1.0 - 2022-01-26 =
    132 * Tweak - Use the newly exposed LoadableMask component provided by WooCommerce Blocks to trigger the loading state for Payment Request Buttons.
    133 * Fix - Response type for account summary API.
    134 * Fix - Invalid response in account summary API when missing account data.
    135 * Add - Live and test mode information in account summary API.
    136 * Add - Add filter call when updating an existent intent (wc_stripe_update_existing_intent_request).
    137 * Add - Add ability to test Stripe account keys' validity.
    138 * Fix - Fixed full bank statement field description.
    139 * Fix - Notification messages are placed on top of the account keys modal.
    140 * Fix - Express checkout with 3DS card on product page when new checkout experience is enabled.
    141 * Fix - Remove duplicate call to `payment_scripts`.
    142 * Fix - Send bank statement descriptors to payment intents.
     131= 6.2.0 - 2022-02-17 =
     132* Add - Add onboarding payment gateway setup methods.
     133* Fix - Enable Stripe payment method after connecting account.
     134* Fix - Missing statement descriptor in account summary API when not set in Stripe.
    143135
    144136[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
  • woocommerce-gateway-stripe/tags/6.2.0/woocommerce-gateway-stripe.php

    r2666455 r2680327  
    66 * Author: WooCommerce
    77 * Author URI: https://woocommerce.com/
    8  * Version: 6.1.0
     8 * Version: 6.2.0
    99 * Requires at least: 5.6
    1010 * Tested up to: 5.9
    1111 * WC requires at least: 5.7
    12  * WC tested up to: 6.1.1
     12 * WC tested up to: 6.2
    1313 * Text Domain: woocommerce-gateway-stripe
    1414 * Domain Path: /languages
     
    2222 * Required minimums and constants
    2323 */
    24 define( 'WC_STRIPE_VERSION', '6.1.0' ); // WRCS: DEFINED_VERSION.
     24define( 'WC_STRIPE_VERSION', '6.2.0' ); // WRCS: DEFINED_VERSION.
    2525define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' );
    2626define( 'WC_STRIPE_MIN_WC_VER', '5.7' );
     
    593593                $oauth_init                   = new WC_Stripe_Connect_REST_Oauth_Init_Controller( $this->connect, $this->api );
    594594                $oauth_connect                = new WC_Stripe_Connect_REST_Oauth_Connect_Controller( $this->connect, $this->api );
    595                 $stripe_account_controller    = new WC_REST_Stripe_Account_Controller( $this->account );
     595                $stripe_account_controller    = new WC_REST_Stripe_Account_Controller( $this->get_main_stripe_gateway(), $this->account );
    596596
    597597                $connection_tokens_controller->register_routes();
  • woocommerce-gateway-stripe/trunk/build/payment_gateways.asset.php

    r2666455 r2680327  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '8cec8ac706a3066dab1bf95c3ea3f8f7');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'b4b8e86ff3d285f29625e368e9c51bbf');
  • woocommerce-gateway-stripe/trunk/build/payment_requests_settings.asset.php

    r2666455 r2680327  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c560474cde9517938d81521a40d66d0f');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'd04f553a7fb5521ec266f6ef95e914d1');
  • woocommerce-gateway-stripe/trunk/build/upe_settings.asset.php

    r2666455 r2680327  
    1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-currency', 'wc-navigation', 'wc-store-data', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '67278aebfc9b1c6347177f28be1734b2');
     1<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-currency', 'wc-navigation', 'wc-store-data', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '517c9b8a15dfa040788de3e3faf4309b');
  • woocommerce-gateway-stripe/trunk/changelog.txt

    r2666455 r2680327  
    11*** Changelog ***
     2
     3= 6.2.0 - 2022-02-17 =
     4* Add - Add onboarding payment gateway setup methods.
     5* Fix - Enable Stripe payment method after connecting account.
     6* Fix - Missing statement descriptor in account summary API when not set in Stripe.
    27
    38= 6.1.0 - 2022-01-26 =
  • woocommerce-gateway-stripe/trunk/includes/admin/class-wc-rest-stripe-account-controller.php

    r2666455 r2680327  
    2626    private $account;
    2727
    28     public function __construct( WC_Stripe_Account $account ) {
     28    /**
     29     * Stripe payment gateway.
     30     *
     31     * @var WC_Gateway_Stripe
     32     */
     33    private $gateway;
     34
     35    public function __construct( WC_Gateway_Stripe $gateway, WC_Stripe_Account $account ) {
     36        $this->gateway = $gateway;
    2937        $this->account = $account;
    3038    }
     
    99107        $account = $this->account->get_cached_account_data();
    100108
     109        // Use statement descriptor from settings, falling back to Stripe account statement descriptor if needed.
     110        $statement_descriptor = WC_Stripe_Helper::clean_statement_descriptor( $this->gateway->get_option( 'statement_descriptor' ) );
     111        if ( empty( $statement_descriptor ) ) {
     112            $statement_descriptor = $account['settings']['payments']['statement_descriptor'];
     113        }
     114        if ( empty( $statement_descriptor ) ) {
     115            $statement_descriptor = null;
     116        }
     117
    101118        return new WP_REST_Response(
    102119            [
     
    105122                'current_deadline'         => $account['requirements']['current_deadline'] ?? null,
    106123                'status'                   => $this->account->get_account_status(),
    107                 'statement_descriptor'     => $account['settings']['payments']['statement_descriptor'] ?? '',
     124                'statement_descriptor'     => $statement_descriptor,
    108125                'store_currencies'         => [
    109126                    'default'   => $account['default_currency'] ?? get_woocommerce_currency(),
  • woocommerce-gateway-stripe/trunk/includes/admin/class-wc-rest-stripe-account-keys-controller.php

    r2653262 r2680327  
    194194
    195195        // If all keys were empty, then is a new account; we need to set the test/live mode.
    196         $new_account = ! trim( $settings['publishable_key'] ) && ! trim( $settings['secret_key'] ) && ! trim( $settings['test_publishable_key'] ) && ! trim( $settings['test_secret_key'] );
     196        $new_account = ! trim( $settings['publishable_key'] )
     197                    && ! trim( $settings['secret_key'] )
     198                    && ! trim( $settings['test_publishable_key'] )
     199                    && ! trim( $settings['test_secret_key'] );
     200        // If all new keys are empty, then account is being disconnected. We should disable the payment gateway.
     201        $is_deleting_account = ! trim( $publishable_key )
     202                            && ! trim( $secret_key )
     203                            && ! trim( $test_publishable_key )
     204                            && ! trim( $test_secret_key );
    197205
    198206        $settings['publishable_key']      = is_null( $publishable_key ) ? $settings['publishable_key'] : $publishable_key;
     
    204212
    205213        if ( $new_account ) {
     214            $settings['enabled'] = 'yes';
    206215            if ( trim( $settings['publishable_key'] ) && trim( $settings['secret_key'] ) ) {
    207216                $settings['testmode'] = 'no';
    208             } else if ( trim( $settings['test_publishable_key'] ) && trim( $settings['test_secret_key'] ) ) {
     217            } elseif ( trim( $settings['test_publishable_key'] ) && trim( $settings['test_secret_key'] ) ) {
    209218                $settings['testmode'] = 'yes';
    210219            }
     220        } elseif ( $is_deleting_account ) {
     221            $settings['enabled'] = 'no';
    211222        }
    212223
  • woocommerce-gateway-stripe/trunk/includes/class-wc-gateway-stripe.php

    r2666455 r2680327  
    124124        add_filter( 'woocommerce_get_checkout_payment_url', [ $this, 'get_checkout_payment_url' ], 10, 2 );
    125125        add_filter( 'woocommerce_settings_api_sanitized_fields_' . $this->id, [ $this, 'settings_api_sanitized_fields' ] );
     126        add_filter( 'woocommerce_gateway_' . $this->id . '_settings_values', [ $this, 'update_onboarding_settings' ] );
    126127
    127128        // Note: display error is in the parent class.
     
    11631164        return $value;
    11641165    }
     1166
     1167    /**
     1168     * Get required setting keys for setup.
     1169     *
     1170     * @return array Array of setting keys used for setup.
     1171     */
     1172    public function get_required_settings_keys() {
     1173        return [ 'publishable_key', 'secret_key' ];
     1174    }
     1175
     1176    /**
     1177     * Get the connection URL.
     1178     *
     1179     * @return string Connection URL.
     1180     */
     1181    public function get_connection_url( $return_url = '' ) {
     1182        $api     = new WC_Stripe_Connect_API();
     1183        $connect = new WC_Stripe_Connect( $api );
     1184
     1185        $url = $connect->get_oauth_url( $return_url );
     1186
     1187        return is_wp_error( $url ) ? null : $url;
     1188    }
     1189
     1190    /**
     1191     * Get help text to display during quick setup.
     1192     *
     1193     * @return string
     1194     */
     1195    public function get_setup_help_text() {
     1196        return sprintf(
     1197            /* translators: %1$s Link to Stripe API details, %2$s Link to register a Stripe account */
     1198            __( 'Your API details can be obtained from your <a href="%1$s">Stripe account</a>. Don’t have a Stripe account? <a href="%2$s">Create one.</a>', 'woocommerce-gateway-stripe' ),
     1199            'https://dashboard.stripe.com/apikeys',
     1200            'https://dashboard.stripe.com/register'
     1201        );
     1202    }
     1203
     1204    /**
     1205     * Determine if the gateway still requires setup.
     1206     *
     1207     * @return bool
     1208     */
     1209    public function needs_setup() {
     1210        return ! $this->get_option( 'publishable_key' ) || ! $this->get_option( 'secret_key' );
     1211    }
     1212
     1213    /**
     1214     * Updates the test mode based on keys provided when setting up the gateway via onboarding.
     1215     *
     1216     * @return array
     1217     */
     1218    public function update_onboarding_settings( $settings ) {
     1219        if ( ! isset( $_SERVER['HTTP_REFERER'] ) ) {
     1220            return;
     1221        }
     1222
     1223        parse_str( wp_parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_QUERY ), $queries ); // phpcs:ignore sanitization ok.
     1224
     1225        // Determine if merchant is onboarding (page='wc-admin' and task='payments').
     1226        if (
     1227            ! isset( $queries ) ||
     1228            ! isset( $queries['page'] ) ||
     1229            ! isset( $queries['task'] ) ||
     1230            'wc-admin' !== $queries['page'] ||
     1231            'payments' !== $queries['task']
     1232        ) {
     1233            return;
     1234        }
     1235
     1236        if ( ! empty( $settings['publishable_key'] ) && ! empty( $settings['secret_key'] ) ) {
     1237            if ( strpos( $settings['publishable_key'], 'pk_test_' ) === 0 || strpos( $settings['secret_key'], 'sk_test_' ) === 0 ) {
     1238                $settings['test_publishable_key'] = $settings['publishable_key'];
     1239                $settings['test_secret_key']      = $settings['secret_key'];
     1240                unset( $settings['publishable_key'] );
     1241                unset( $settings['secret_key'] );
     1242                $settings['testmode'] = 'yes';
     1243            } else {
     1244                $settings['testmode'] = 'no';
     1245            }
     1246        }
     1247
     1248        return $settings;
     1249    }
    11651250}
  • woocommerce-gateway-stripe/trunk/includes/class-wc-stripe-intent-controller.php

    r2642120 r2680327  
    408408                'currency'    => strtolower( $currency ),
    409409                'metadata'    => $gateway->get_metadata_from_order( $order ),
    410                 'description' => __( 'Stripe - Order', 'woocommerce-gateway-stripe' ) . ' ' . $order->get_id(),
     410                /* translators: 1) blog name 2) order number */
     411                'description' => sprintf( __( '%1$s - Order %2$s', 'woocommerce-gateway-stripe' ), wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ), $order->get_order_number() ),
    411412            ];
    412413
  • woocommerce-gateway-stripe/trunk/includes/connect/class-wc-stripe-connect.php

    r2653262 r2680327  
    129129            $default_options                        = $this->get_default_stripe_config();
    130130            $options                                = array_merge( $default_options, get_option( self::SETTINGS_OPTION, [] ) );
     131            $options['enabled']                     = 'yes';
    131132            $options['testmode']                    = $is_test ? 'yes' : 'no';
    132133            $options[ $prefix . 'publishable_key' ] = $result->publishableKey; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
  • woocommerce-gateway-stripe/trunk/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php

    r2666455 r2680327  
    122122
    123123        $main_settings              = get_option( 'woocommerce_stripe_settings' );
    124         $this->title                = $this->get_option( 'title_upe' );
     124        $this->title                = ! empty( $this->get_option( 'title_upe' ) ) ? $this->get_option( 'title_upe' ) : $this->form_fields['title_upe']['default'];
    125125        $this->description          = '';
    126126        $this->enabled              = $this->get_option( 'enabled' );
  • woocommerce-gateway-stripe/trunk/languages/woocommerce-gateway-stripe.pot

    r2666455 r2680327  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Stripe Gateway 6.1.0\n"
     5"Project-Id-Version: WooCommerce Stripe Gateway 6.2.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2022-01-26T22:33:57+00:00\n"
     12"POT-Creation-Date: 2022-02-17T00:44:10+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.5.0\n"
     
    5555#: includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php:245
    5656#: includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php:353
    57 #: includes/class-wc-stripe-intent-controller.php:434
     57#: includes/class-wc-stripe-intent-controller.php:435
    5858#: includes/class-wc-stripe-webhook-handler.php:832
    5959#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:557
     
    9999#. translators: 1) blog name 2) order number
    100100#: includes/abstracts/abstract-wc-stripe-payment-gateway.php:421
     101#: includes/class-wc-stripe-intent-controller.php:411
    101102#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:528
    102103msgid "%1$s - Order %2$s"
     
    219220
    220221#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:139
    221 #: includes/class-wc-gateway-stripe.php:994
     222#: includes/class-wc-gateway-stripe.php:995
    222223msgid "The \"Live Publishable Key\" should start with \"pk_live\", enter the correct key."
    223224msgstr ""
    224225
    225226#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:151
    226 #: includes/class-wc-gateway-stripe.php:1002
     227#: includes/class-wc-gateway-stripe.php:1003
    227228msgid "The \"Live Secret Key\" should start with \"sk_live\" or \"rk_live\", enter the correct key."
    228229msgstr ""
    229230
    230231#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:163
    231 #: includes/class-wc-gateway-stripe.php:1010
     232#: includes/class-wc-gateway-stripe.php:1011
    232233msgid "The \"Test Publishable Key\" should start with \"pk_test\", enter the correct key."
    233234msgstr ""
    234235
    235236#: includes/admin/class-wc-rest-stripe-account-keys-controller.php:175
    236 #: includes/class-wc-gateway-stripe.php:1018
     237#: includes/class-wc-gateway-stripe.php:1019
    237238msgid "The \"Test Secret Key\" should start with \"sk_test\" or \"rk_test\", enter the correct key."
    238239msgstr ""
     
    268269msgstr ""
    269270
     271#. translators: %s: the error message.
    270272#: includes/admin/class-wc-rest-stripe-orders-controller.php:163
    271273msgid "Unknown error"
     
    12881290
    12891291#. translators: 1) Opening anchor tag 2) closing anchor tag
    1290 #: includes/class-wc-gateway-stripe.php:157
     1292#: includes/class-wc-gateway-stripe.php:158
    12911293msgid "If your billing address has been changed for saved payment methods, be sure to remove any %1$ssaved payment methods%2$s on file and re-add them."
    12921294msgstr ""
    12931295
    12941296#. translators: link to Stripe testing page
    1295 #: includes/class-wc-gateway-stripe.php:221
     1297#: includes/class-wc-gateway-stripe.php:222
    12961298msgid "TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the <a href=\"%s\" target=\"_blank\">Testing Stripe documentation</a> for more card numbers."
    12971299msgstr ""
    12981300
    1299 #: includes/class-wc-gateway-stripe.php:260
     1301#: includes/class-wc-gateway-stripe.php:261
    13001302msgid "Credit or debit card"
    13011303msgstr ""
    13021304
    13031305#: build/index.js:1
    1304 #: includes/class-wc-gateway-stripe.php:268
     1306#: includes/class-wc-gateway-stripe.php:269
    13051307#: client/blocks/credit-card/elements.js:117
    13061308msgid "Card Number"
     
    13081310
    13091311#: build/index.js:1
    1310 #: includes/class-wc-gateway-stripe.php:279
     1312#: includes/class-wc-gateway-stripe.php:280
    13111313#: client/blocks/credit-card/elements.js:134
    13121314msgid "Expiry Date"
    13131315msgstr ""
    13141316
    1315 #: includes/class-wc-gateway-stripe.php:287
     1317#: includes/class-wc-gateway-stripe.php:288
    13161318msgid "Card Code (CVC)"
    13171319msgstr ""
    13181320
    1319 #: includes/class-wc-gateway-stripe.php:558
     1321#: includes/class-wc-gateway-stripe.php:559
    13201322msgid "This represents the fee Stripe collects for the transaction."
    13211323msgstr ""
    13221324
    1323 #: includes/class-wc-gateway-stripe.php:559
     1325#: includes/class-wc-gateway-stripe.php:560
    13241326msgid "Stripe Fee:"
    13251327msgstr ""
    13261328
    1327 #: includes/class-wc-gateway-stripe.php:595
     1329#: includes/class-wc-gateway-stripe.php:596
    13281330msgid "This represents the net total that will be credited to your Stripe bank account. This may be in the currency that is set in your Stripe account."
    13291331msgstr ""
    13301332
    1331 #: includes/class-wc-gateway-stripe.php:596
     1333#: includes/class-wc-gateway-stripe.php:597
    13321334msgid "Stripe Payout:"
    13331335msgstr ""
    13341336
    1335 #: includes/class-wc-gateway-stripe.php:622
     1337#: includes/class-wc-gateway-stripe.php:623
    13361338#: includes/class-wc-stripe-order-handler.php:153
    13371339#: includes/class-wc-stripe-webhook-handler.php:256
     
    13421344msgstr ""
    13431345
    1344 #: includes/class-wc-gateway-stripe.php:675
     1346#: includes/class-wc-gateway-stripe.php:676
    13451347msgid ""
    13461348"Almost there!\n"
     
    13501352
    13511353#. translators: %s is the order Id
    1352 #: includes/class-wc-gateway-stripe.php:697
     1354#: includes/class-wc-gateway-stripe.php:698
    13531355msgid "Payment Intent not found for order #%s"
    13541356msgstr ""
    13551357
    13561358#. translators: 1) The error message that was received from Stripe.
    1357 #: includes/class-wc-gateway-stripe.php:936
     1359#: includes/class-wc-gateway-stripe.php:937
    13581360#: includes/class-wc-stripe-webhook-handler.php:856
    13591361#: includes/class-wc-stripe-webhook-handler.php:907
     
    13611363msgstr ""
    13621364
    1363 #: includes/class-wc-gateway-stripe.php:937
     1365#: includes/class-wc-gateway-stripe.php:938
    13641366msgid "Stripe SCA authentication failed."
    13651367msgstr ""
    13661368
    13671369#. translators: %1, %2, %3, and %4 are all HTML markup tags
    1368 #: includes/class-wc-gateway-stripe.php:1058
     1370#: includes/class-wc-gateway-stripe.php:1059
    13691371#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:1226
    13701372msgid "%1$sClear all Stripe account keys.%2$s %3$sThis will disable any connection to Stripe.%4$s"
     
    13721374
    13731375#. translators: %1, %2 and %3 are all HTML markup tags
    1374 #: includes/class-wc-gateway-stripe.php:1070
     1376#: includes/class-wc-gateway-stripe.php:1071
    13751377msgid "%1$sSet up or link an existing Stripe account.%2$s By clicking this button you agree to the %3$sTerms of Service%2$s. Or, manually enter Stripe account keys below."
    13761378msgstr ""
    13771379
    1378 #: includes/class-wc-gateway-stripe.php:1076
     1380#: includes/class-wc-gateway-stripe.php:1077
    13791381#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:1244
    13801382msgid "Manually enter Stripe keys below."
    13811383msgstr ""
    13821384
    1383 #: includes/class-wc-gateway-stripe.php:1137
     1385#: includes/class-wc-gateway-stripe.php:1138
    13841386msgid "customer bank statement"
    13851387msgstr ""
    13861388
    1387 #: includes/class-wc-gateway-stripe.php:1140
     1389#: includes/class-wc-gateway-stripe.php:1141
    13881390msgid "shortened customer bank statement"
    13891391msgstr ""
    13901392
    13911393#. translators: %1 field name, %2 Number of the maximum characters allowed
    1392 #: includes/class-wc-gateway-stripe.php:1156
     1394#: includes/class-wc-gateway-stripe.php:1157
    13931395msgid "The %1$s is invalid. The bank statement must contain only Latin characters, be between 5 and %2$u characters, contain at least one letter, and not contain any of the special characters: ' \" * &lt; &gt;"
     1396msgstr ""
     1397
     1398#. translators: %1$s Link to Stripe API details, %2$s Link to register a Stripe account
     1399#: includes/class-wc-gateway-stripe.php:1198
     1400msgid "Your API details can be obtained from your <a href=\"%1$s\">Stripe account</a>. Don’t have a Stripe account? <a href=\"%2$s\">Create one.</a>"
    13941401msgstr ""
    13951402
     
    16331640
    16341641#: includes/class-wc-stripe-intent-controller.php:84
    1635 #: includes/class-wc-stripe-intent-controller.php:564
    1636 #: includes/class-wc-stripe-intent-controller.php:624
     1642#: includes/class-wc-stripe-intent-controller.php:565
     1643#: includes/class-wc-stripe-intent-controller.php:625
    16371644msgid "CSRF verification failed."
    16381645msgstr ""
     
    16591666msgstr ""
    16601667
    1661 #: includes/class-wc-stripe-intent-controller.php:410
    1662 msgid "Stripe - Order"
    1663 msgstr ""
    1664 
    1665 #: includes/class-wc-stripe-intent-controller.php:454
     1668#: includes/class-wc-stripe-intent-controller.php:455
    16661669msgid "We're not able to add this payment method. Please refresh the page and try again."
    16671670msgstr ""
    16681671
    1669 #: includes/class-wc-stripe-intent-controller.php:520
     1672#: includes/class-wc-stripe-intent-controller.php:521
    16701673msgid "Unable to update UPE appearance values at this time."
    16711674msgstr ""
    16721675
    1673 #: includes/class-wc-stripe-intent-controller.php:570
    1674 #: includes/class-wc-stripe-intent-controller.php:582
    1675 #: includes/class-wc-stripe-intent-controller.php:642
     1676#: includes/class-wc-stripe-intent-controller.php:571
     1677#: includes/class-wc-stripe-intent-controller.php:583
     1678#: includes/class-wc-stripe-intent-controller.php:643
    16761679#: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:884
    16771680msgid "We're not able to process this payment. Please try again later."
     
    16791682
    16801683#. translators: %1: transaction ID of the payment or a translated string indicating an unknown ID.
    1681 #: includes/class-wc-stripe-intent-controller.php:578
     1684#: includes/class-wc-stripe-intent-controller.php:579
    16821685msgid "A payment with ID %s was used in an attempt to pay for this order. This payment intent ID does not match any payments for this order, so it was ignored and the order was not updated."
    16831686msgstr ""
     
    24552458msgstr ""
    24562459
     2460#. translators: %s is a link to the payment re-authentication URL.
    24572461#: templates/emails/failed-preorder-authentication.php:20
    24582462msgid "Authorize the payment now &raquo;"
  • woocommerce-gateway-stripe/trunk/readme.txt

    r2666455 r2680327  
    55Tested up to: 5.9
    66Requires PHP: 7.0
    7 Stable tag: 6.1.0
     7Stable tag: 6.2.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    129129== Changelog ==
    130130
    131 = 6.1.0 - 2022-01-26 =
    132 * Tweak - Use the newly exposed LoadableMask component provided by WooCommerce Blocks to trigger the loading state for Payment Request Buttons.
    133 * Fix - Response type for account summary API.
    134 * Fix - Invalid response in account summary API when missing account data.
    135 * Add - Live and test mode information in account summary API.
    136 * Add - Add filter call when updating an existent intent (wc_stripe_update_existing_intent_request).
    137 * Add - Add ability to test Stripe account keys' validity.
    138 * Fix - Fixed full bank statement field description.
    139 * Fix - Notification messages are placed on top of the account keys modal.
    140 * Fix - Express checkout with 3DS card on product page when new checkout experience is enabled.
    141 * Fix - Remove duplicate call to `payment_scripts`.
    142 * Fix - Send bank statement descriptors to payment intents.
     131= 6.2.0 - 2022-02-17 =
     132* Add - Add onboarding payment gateway setup methods.
     133* Fix - Enable Stripe payment method after connecting account.
     134* Fix - Missing statement descriptor in account summary API when not set in Stripe.
    143135
    144136[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
  • woocommerce-gateway-stripe/trunk/woocommerce-gateway-stripe.php

    r2666455 r2680327  
    66 * Author: WooCommerce
    77 * Author URI: https://woocommerce.com/
    8  * Version: 6.1.0
     8 * Version: 6.2.0
    99 * Requires at least: 5.6
    1010 * Tested up to: 5.9
    1111 * WC requires at least: 5.7
    12  * WC tested up to: 6.1.1
     12 * WC tested up to: 6.2
    1313 * Text Domain: woocommerce-gateway-stripe
    1414 * Domain Path: /languages
     
    2222 * Required minimums and constants
    2323 */
    24 define( 'WC_STRIPE_VERSION', '6.1.0' ); // WRCS: DEFINED_VERSION.
     24define( 'WC_STRIPE_VERSION', '6.2.0' ); // WRCS: DEFINED_VERSION.
    2525define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' );
    2626define( 'WC_STRIPE_MIN_WC_VER', '5.7' );
     
    593593                $oauth_init                   = new WC_Stripe_Connect_REST_Oauth_Init_Controller( $this->connect, $this->api );
    594594                $oauth_connect                = new WC_Stripe_Connect_REST_Oauth_Connect_Controller( $this->connect, $this->api );
    595                 $stripe_account_controller    = new WC_REST_Stripe_Account_Controller( $this->account );
     595                $stripe_account_controller    = new WC_REST_Stripe_Account_Controller( $this->get_main_stripe_gateway(), $this->account );
    596596
    597597                $connection_tokens_controller->register_routes();
Note: See TracChangeset for help on using the changeset viewer.