WooCommerce Payments – Fully Integrated Solution Built and Supported by Woo - Version 4.0.1

Version Description

  • 2022-04-20 =
  • Fix - Fix templates folder missing in release package
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Payments – Fully Integrated Solution Built and Supported by Woo
Version 4.0.1
Comparing to
See all releases

Code changes from version 4.0.0 to 4.0.1

Files changed (35) hide show
  1. changelog.txt +4 -2
  2. dist/index.asset.php +1 -1
  3. languages/woocommerce-payments.pot +2 -2
  4. readme.txt +6 -4
  5. templates/emails/customer-ipp-receipt.php +61 -0
  6. templates/emails/email-ipp-receipt-compliance-details.php +57 -0
  7. templates/emails/email-ipp-receipt-store-details.php +37 -0
  8. templates/emails/plain/customer-ipp-receipt.php +59 -0
  9. templates/emails/plain/email-ipp-receipt-compliance-details.php +25 -0
  10. templates/emails/plain/email-ipp-receipt-store-details.php +31 -0
  11. vendor/autoload.php +6 -1
  12. vendor/autoload_packages.php +1 -1
  13. vendor/composer/InstalledVersions.php +2 -0
  14. vendor/composer/autoload_classmap.php +1 -1
  15. vendor/composer/autoload_files.php +1 -1
  16. vendor/composer/autoload_namespaces.php +1 -1
  17. vendor/composer/autoload_psr4.php +1 -1
  18. vendor/composer/autoload_real.php +9 -32
  19. vendor/composer/autoload_static.php +4 -4
  20. vendor/composer/installed.php +2 -2
  21. vendor/jetpack-autoloader/class-autoloader-handler.php +1 -1
  22. vendor/jetpack-autoloader/class-autoloader-locator.php +1 -1
  23. vendor/jetpack-autoloader/class-autoloader.php +1 -1
  24. vendor/jetpack-autoloader/class-container.php +1 -1
  25. vendor/jetpack-autoloader/class-hook-manager.php +1 -1
  26. vendor/jetpack-autoloader/class-latest-autoloader-guard.php +1 -1
  27. vendor/jetpack-autoloader/class-manifest-reader.php +1 -1
  28. vendor/jetpack-autoloader/class-path-processor.php +1 -1
  29. vendor/jetpack-autoloader/class-php-autoloader.php +1 -1
  30. vendor/jetpack-autoloader/class-plugin-locator.php +1 -1
  31. vendor/jetpack-autoloader/class-plugins-handler.php +1 -1
  32. vendor/jetpack-autoloader/class-shutdown-handler.php +1 -1
  33. vendor/jetpack-autoloader/class-version-loader.php +1 -1
  34. vendor/jetpack-autoloader/class-version-selector.php +1 -1
  35. woocommerce-payments.php +1 -1
changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** WooCommerce Payments Changelog ***
2
 
 
 
 
3
  = 4.0.0 - 2022-04-13 =
4
  * Add - Add card readers business URL field browser validation.
5
  * Add - Add data fingerprinting for card testing prevention part of intent.
@@ -24,8 +27,7 @@
24
  * Fix - Empty file input to allow the user to select the same file again if there's an error.
25
  * Fix - Enable card readers branding section.
26
  * Fix - Enable WooCommerce Blocks checkout to hide option to save payment methods for a non-reusable payment method.
27
- * Fix - Fix - Using any other payment methods apart from WooCommerce Payments in "Pay for order".
28
- form triggers validation errors when UPE checkout is enabled.
29
  * Fix - Fix an error in refunding In-Person Payments.
30
  * Fix - Fixed the pricing displayed on Google Pay/ Apple Pay preview for variable subscription products.
31
  * Fix - Fix placeholders not being injected into the New Receipt email.
1
  *** WooCommerce Payments Changelog ***
2
 
3
+ = 4.0.1 - 2022-04-20 =
4
+ * Fix - Fix templates folder missing in release package
5
+
6
  = 4.0.0 - 2022-04-13 =
7
  * Add - Add card readers business URL field browser validation.
8
  * Add - Add data fingerprinting for card testing prevention part of intent.
27
  * Fix - Empty file input to allow the user to select the same file again if there's an error.
28
  * Fix - Enable card readers branding section.
29
  * Fix - Enable WooCommerce Blocks checkout to hide option to save payment methods for a non-reusable payment method.
30
+ * Fix - Using any other payment methods apart from WooCommerce Payments in "Pay for order" form triggers validation errors when UPE checkout is enabled.
 
31
  * Fix - Fix an error in refunding In-Person Payments.
32
  * Fix - Fixed the pricing displayed on Google Pay/ Apple Pay preview for variable subscription products.
33
  * Fix - Fix placeholders not being injected into the New Receipt email.
dist/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-components', 'wc-currency', 'wc-navigation', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-mediaelement', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-warning'), 'version' => '19f4244480f235fb2c37ddaf2c5ef215');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-components', 'wc-currency', 'wc-navigation', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-mediaelement', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-warning'), 'version' => 'e7d6a2be305504135afa9885d6bac005');
languages/woocommerce-payments.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the WooCommerce Payments package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Payments 4.0.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
- "POT-Creation-Date: 2022-04-13 21:12:10+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the WooCommerce Payments package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Payments 4.0.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
+ "POT-Creation-Date: 2022-04-20 12:37:42+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce, payment, payment request, credit card, automattic
4
  Requires at least: 5.7
5
  Tested up to: 5.9.2
6
  Requires PHP: 7.0
7
- Stable tag: 4.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -98,6 +98,9 @@ Please note that our support for the checkout block is still experimental and th
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 4.0.0 - 2022-04-13 =
102
  * Add - Add card readers business URL field browser validation.
103
  * Add - Add data fingerprinting for card testing prevention part of intent.
@@ -122,8 +125,7 @@ Please note that our support for the checkout block is still experimental and th
122
  * Fix - Empty file input to allow the user to select the same file again if there's an error.
123
  * Fix - Enable card readers branding section.
124
  * Fix - Enable WooCommerce Blocks checkout to hide option to save payment methods for a non-reusable payment method.
125
- * Fix - Fix - Using any other payment methods apart from WooCommerce Payments in "Pay for order".
126
- form triggers validation errors when UPE checkout is enabled.
127
  * Fix - Fix an error in refunding In-Person Payments.
128
  * Fix - Fixed the pricing displayed on Google Pay/ Apple Pay preview for variable subscription products.
129
  * Fix - Fix placeholders not being injected into the New Receipt email.
@@ -201,9 +203,9 @@ form triggers validation errors when UPE checkout is enabled.
201
  * Dev - Refactor the processing part of Webhook Controller to a separate service.
202
  * Dev - Remove type "Tweak" from the list of changelog types.
203
  * Dev - REST API documentation
 
204
  * Dev - Unit test support for PHP 8 and upgrade PHPUnit version to 9.5.14
205
  * Dev - Updated contribution notes (how to add a changelog)
206
- * Dev - Skip e2e tests if WC version is 5.0.0 because of WooCommerce Checkout Blocks minimum WC Required version
207
 
208
  = 3.8.2 - 2022-03-03 =
209
  * Fix - Fix fatal error when a subscription renews automatically.
4
  Requires at least: 5.7
5
  Tested up to: 5.9.2
6
  Requires PHP: 7.0
7
+ Stable tag: 4.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
98
 
99
  == Changelog ==
100
 
101
+ = 4.0.1 - 2022-04-20 =
102
+ * Fix - Fix templates folder missing in release package
103
+
104
  = 4.0.0 - 2022-04-13 =
105
  * Add - Add card readers business URL field browser validation.
106
  * Add - Add data fingerprinting for card testing prevention part of intent.
125
  * Fix - Empty file input to allow the user to select the same file again if there's an error.
126
  * Fix - Enable card readers branding section.
127
  * Fix - Enable WooCommerce Blocks checkout to hide option to save payment methods for a non-reusable payment method.
128
+ * Fix - Using any other payment methods apart from WooCommerce Payments in "Pay for order" form triggers validation errors when UPE checkout is enabled.
 
129
  * Fix - Fix an error in refunding In-Person Payments.
130
  * Fix - Fixed the pricing displayed on Google Pay/ Apple Pay preview for variable subscription products.
131
  * Fix - Fix placeholders not being injected into the New Receipt email.
203
  * Dev - Refactor the processing part of Webhook Controller to a separate service.
204
  * Dev - Remove type "Tweak" from the list of changelog types.
205
  * Dev - REST API documentation
206
+ * Dev - Skip e2e tests if WC version is 5.0.0 because of WooCommerce Checkout Blocks minimum WC Required version
207
  * Dev - Unit test support for PHP 8 and upgrade PHPUnit version to 9.5.14
208
  * Dev - Updated contribution notes (how to add a changelog)
 
209
 
210
  = 3.8.2 - 2022-03-03 =
211
  * Fix - Fix fatal error when a subscription renews automatically.
templates/emails/customer-ipp-receipt.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-ipp-receipt.php.
4
+ *
5
+ * HOWEVER, on occasion WooCommerce will need to update template files and you
6
+ * (the theme developer) will need to copy the new files to your theme to
7
+ * maintain compatibility. We try to do this as little as possible, but it does
8
+ * happen. When this occurs the version of the template file will be bumped and
9
+ * the readme will list any important changes.
10
+ *
11
+ * @see https://docs.woocommerce.com/document/template-structure/
12
+ * @package WooCommerce\Payments\Templates\Emails
13
+ * @version 1.0.0
14
+ */
15
+
16
+ defined( 'ABSPATH' ) || exit;
17
+
18
+ /*
19
+ * @hooked WC_Emails::email_header() Output the email header
20
+ */
21
+ do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
22
+
23
+ <?php /* translators: %s: Customer first name */ ?>
24
+ <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce-payments' ), esc_html( $order->get_billing_first_name() ) ); ?></p>
25
+ <?php /* translators: %s: Order number */ ?>
26
+ <p><?php printf( esc_html__( 'This is the receipt for your order #%s:', 'woocommerce-payments' ), esc_html( $order->get_order_number() ) ); ?></p>
27
+ <?php
28
+ /*
29
+ * @hooked WC_Payments_Email_IPP_Receipt::store_details() Output the store details
30
+ */
31
+ do_action( 'woocommerce_payments_email_ipp_receipt_store_details', $merchant_settings, $plain_text );
32
+
33
+ /*
34
+ * @hooked WC_Emails::order_details() Shows the order details table.
35
+ * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
36
+ * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
37
+ * @since 2.5.0
38
+ */
39
+ do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
40
+
41
+ /*
42
+ * @hooked WC_Payments_Email_IPP_Receipt::compliance_details() Output receipt compliance details
43
+ */
44
+ do_action( 'woocommerce_payments_email_ipp_receipt_compliance_details', $charge, $plain_text );
45
+
46
+ /*
47
+ * @hooked WC_Emails::order_meta() Shows order meta data.
48
+ */
49
+ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
50
+
51
+ /**
52
+ * Show user-defined additional content - this is set in each email's settings.
53
+ */
54
+ if ( $additional_content ) {
55
+ echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
56
+ }
57
+
58
+ /*
59
+ * @hooked WC_Emails::email_footer() Output the email footer
60
+ */
61
+ do_action( 'woocommerce_email_footer', $email );
templates/emails/email-ipp-receipt-compliance-details.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-ipp-receipt-compliance-details.php
5
+ *
6
+ * HOWEVER, on occasion WooCommerce will need to update template files and you
7
+ * (the theme developer) will need to copy the new files to your theme to
8
+ * maintain compatibility. We try to do this as little as possible, but it does
9
+ * happen. When this occurs the version of the template file will be bumped and
10
+ * the readme will list any important changes.
11
+ *
12
+ * @see https://docs.woocommerce.com/document/template-structure/
13
+ * @package WooCommerce\Payments\Templates\Emails
14
+ * @version 1.0.0
15
+ */
16
+
17
+ defined( 'ABSPATH' ) || exit;
18
+ ?>
19
+
20
+ <div style="margin-bottom: 40px;">
21
+ <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
22
+ <tbody>
23
+ <tr>
24
+ <th class="td" scope="row" colspan="2">
25
+ <?php esc_html_e( 'Payment Method', 'woocommerce-payments' ); ?>
26
+ </th>
27
+ <td class="td">
28
+ <div><?php echo esc_html( sprintf( '%s - %s', ucfirst( $payment_method_details['brand'] ), $payment_method_details['last4'] ) ); ?></div>
29
+ </td>
30
+ </tr>
31
+ <tr>
32
+ <th class="td" scope="row" colspan="2">
33
+ <?php esc_html_e( 'Application Name', 'woocommerce-payments' ); ?>
34
+ </th>
35
+ <td class="td">
36
+ <div id="application-preferred-name"><?php echo esc_html( ucfirst( $receipt['application_preferred_name'] ) ); ?></div>
37
+ </td>
38
+ </tr>
39
+ <tr>
40
+ <th class="td" scope="row" colspan="2">
41
+ <?php esc_html_e( 'AID', 'woocommerce-payments' ); ?>
42
+ </th>
43
+ <td class="td">
44
+ <div id="dedicated-file-name"><?php echo esc_html( ucfirst( $receipt['dedicated_file_name'] ) ); ?></div>
45
+ </td>
46
+ </tr>
47
+ <tr>
48
+ <th class="td" scope="row" colspan="2">
49
+ <?php esc_html_e( 'Account Type', 'woocommerce-payments' ); ?>
50
+ </th>
51
+ <td class="td">
52
+ <div id="account-type"><?php echo esc_html( ucfirst( $receipt['account_type'] ) ); ?></div>
53
+ </td>
54
+ </tr>
55
+ </tbody>
56
+ </table>
57
+ </div>
templates/emails/email-ipp-receipt-store-details.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-ipp-receipt-store-details.php
5
+ *
6
+ * HOWEVER, on occasion WooCommerce will need to update template files and you
7
+ * (the theme developer) will need to copy the new files to your theme to
8
+ * maintain compatibility. We try to do this as little as possible, but it does
9
+ * happen. When this occurs the version of the template file will be bumped and
10
+ * the readme will list any important changes.
11
+ *
12
+ * @see https://docs.woocommerce.com/document/template-structure/
13
+ * @package WooCommerce\Payments\Templates\Emails
14
+ * @version 1.0.0
15
+ */
16
+
17
+ defined( 'ABSPATH' ) || exit;
18
+ ?>
19
+
20
+ <div style="margin-bottom: 40px;">
21
+ <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
22
+ <tbody>
23
+ <tr>
24
+ <td>
25
+ <h1><?php echo esc_html( $business_name ); ?></h1>
26
+ <?php if ( ! empty( $support_address ) ) { ?>
27
+ <div><?php echo esc_html( $support_address['line1'] ); ?></div>
28
+ <div><?php echo esc_html( $support_address['line2'] ); ?></div>
29
+ <div><?php echo esc_html( implode( ' ', [ $support_address['city'], $support_address['state'], $support_address['postal_code'], $support_address['country'] ] ) ); ?></div>
30
+ <div><?php echo esc_html( implode( ' ', [ $support_phone, $support_email ] ) ); ?></div>
31
+ <div><?php echo esc_html( gmdate( 'Y/m/d - H:iA' ) ); ?></div>
32
+ <?php } ?>
33
+ </td>
34
+ </tr>
35
+ </tbody>
36
+ </table>
37
+ </div>
templates/emails/plain/customer-ipp-receipt.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/customer-ipp-receipt.php.
5
+ *
6
+ * HOWEVER, on occasion WooCommerce will need to update template files and you
7
+ * (the theme developer) will need to copy the new files to your theme to
8
+ * maintain compatibility. We try to do this as little as possible, but it does
9
+ * happen. When this occurs the version of the template file will be bumped and
10
+ * the readme will list any important changes.
11
+ *
12
+ * @see https://docs.woocommerce.com/document/template-structure/
13
+ * @package WooCommerce\Payments\Templates\Emails\Plain
14
+ * @version 1.0.0
15
+ */
16
+
17
+ defined( 'ABSPATH' ) || exit;
18
+
19
+ echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
20
+ echo esc_html( wp_strip_all_tags( $email_heading ) );
21
+ echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
22
+
23
+ /* translators: %s: Customer first name */
24
+ echo sprintf( esc_html__( 'Hi %s,', 'woocommerce-payments' ), esc_html( $order->get_billing_first_name() ) ) . "\n\n";
25
+ /* translators: %s: Order number */
26
+ echo sprintf( esc_html__( 'This is the receipt for your order #%s:', 'woocommerce-payments' ), esc_html( $order->get_order_number() ) ) . "\n\n";
27
+
28
+ do_action( 'woocommerce_payments_email_ipp_receipt_store_details', $merchant_settings, $plain_text );
29
+
30
+ echo "\n----------------------------------------\n\n";
31
+
32
+ /*
33
+ * @hooked WC_Emails::order_details() Shows the order details table.
34
+ * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
35
+ * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
36
+ * @since 2.5.0
37
+ */
38
+ do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
39
+
40
+ echo "\n----------------------------------------\n\n";
41
+
42
+ do_action( 'woocommerce_payments_email_ipp_receipt_compliance_details', $charge, $plain_text );
43
+
44
+ echo "\n\n----------------------------------------\n\n";
45
+
46
+ /*
47
+ * @hooked WC_Emails::order_meta() Shows order meta data.
48
+ */
49
+ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
50
+
51
+ /**
52
+ * Show user-defined additional content - this is set in each email's settings.
53
+ */
54
+ if ( $additional_content ) {
55
+ echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) );
56
+ echo "\n\n----------------------------------------\n\n";
57
+ }
58
+
59
+ echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
templates/emails/plain/email-ipp-receipt-compliance-details.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/email-ipp-receipt-compliance-details.php
5
+ *
6
+ * HOWEVER, on occasion WooCommerce will need to update template files and you
7
+ * (the theme developer) will need to copy the new files to your theme to
8
+ * maintain compatibility. We try to do this as little as possible, but it does
9
+ * happen. When this occurs the version of the template file will be bumped and
10
+ * the readme will list any important changes.
11
+ *
12
+ * @see https://docs.woocommerce.com/document/template-structure/
13
+ * @package WooCommerce\Payments\Templates\Emails\Plain
14
+ * @version 1.0.0
15
+ */
16
+
17
+ defined( 'ABSPATH' ) || exit;
18
+
19
+ echo esc_html( sprintf( "%s:\t%s", __( 'Payment Method', 'woocommerce-payments' ), sprintf( '%s - %s', ucfirst( $payment_method_details['brand'] ), $payment_method_details['last4'] ) ) ) . "\n";
20
+
21
+ echo esc_html( sprintf( "%s:\t%s", __( 'Application Name', 'woocommerce-payments' ), ucfirst( $receipt['application_preferred_name'] ) ) ) . "\n";
22
+
23
+ echo esc_html( sprintf( "%s:\t%s", __( 'AID', 'woocommerce-payments' ), ucfirst( $receipt['dedicated_file_name'] ) ) ) . "\n";
24
+
25
+ echo esc_html( sprintf( "%s:\t%s", __( 'Account Type', 'woocommerce-payments' ), ucfirst( $receipt['account_type'] ) ) ) . "\n";
templates/emails/plain/email-ipp-receipt-store-details.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/email-ipp-receipt-store-details.php
5
+ *
6
+ * HOWEVER, on occasion WooCommerce will need to update template files and you
7
+ * (the theme developer) will need to copy the new files to your theme to
8
+ * maintain compatibility. We try to do this as little as possible, but it does
9
+ * happen. When this occurs the version of the template file will be bumped and
10
+ * the readme will list any important changes.
11
+ *
12
+ * @see https://docs.woocommerce.com/document/template-structure/
13
+ * @package WooCommerce\Payments\Templates\Emails\Plain
14
+ * @version 1.0.0
15
+ */
16
+
17
+ defined( 'ABSPATH' ) || exit;
18
+
19
+ echo "==========\n\n";
20
+
21
+ echo esc_html( $business_name ) . "\n\n";
22
+
23
+ echo "==========\n\n";
24
+
25
+ if ( ! empty( $support_address ) ) {
26
+ echo esc_html( $support_address['line1'] ) . "\n";
27
+ echo esc_html( $support_address['line2'] ) . "\n";
28
+ echo esc_html( implode( ' ', [ $support_address['city'], $support_address['state'], $support_address['postal_code'], $support_address['country'] ] ) ) . "\n";
29
+ echo esc_html( implode( ' ', [ $support_phone, $support_email ] ) ) . "\n";
30
+ echo esc_html( gmdate( 'Y-m-d H:iA' ) ) . "\n";
31
+ }
vendor/autoload.php CHANGED
@@ -2,6 +2,11 @@
2
 
3
  // autoload.php @generated by Composer
4
 
 
 
 
 
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit8b7cc5a2c0f9c2f284226ee59dab9330::getLoader();
2
 
3
  // autoload.php @generated by Composer
4
 
5
+ if (PHP_VERSION_ID < 50600) {
6
+ echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
7
+ exit(1);
8
+ }
9
+
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit75e6f1e39fe6dd99cb929aa6db3cdd46::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/InstalledVersions.php CHANGED
@@ -21,6 +21,8 @@ use Composer\Semver\VersionParser;
21
  * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
  *
23
  * To require its presence, you can require `composer-runtime-api ^2.0`
 
 
24
  */
25
  class InstalledVersions
26
  {
21
  * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
  *
23
  * To require its presence, you can require `composer-runtime-api ^2.0`
24
+ *
25
+ * @final
26
  */
27
  class InstalledVersions
28
  {
vendor/composer/autoload_classmap.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_files.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_files.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_files.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_namespaces.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_psr4.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit8b7cc5a2c0f9c2f284226ee59dab9330
6
  {
7
  private static $loader;
8
 
@@ -24,41 +24,18 @@ class ComposerAutoloaderInit8b7cc5a2c0f9c2f284226ee59dab9330
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit8b7cc5a2c0f9c2f284226ee59dab9330', 'loadClassLoader'), true, true);
28
- self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit8b7cc5a2c0f9c2f284226ee59dab9330', 'loadClassLoader'));
30
 
31
- $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
- if ($useStaticLoader) {
33
- require __DIR__ . '/autoload_static.php';
34
-
35
- call_user_func(\Composer\Autoload\ComposerStaticInit8b7cc5a2c0f9c2f284226ee59dab9330::getInitializer($loader));
36
- } else {
37
- $map = require __DIR__ . '/autoload_namespaces.php';
38
- foreach ($map as $namespace => $path) {
39
- $loader->set($namespace, $path);
40
- }
41
-
42
- $map = require __DIR__ . '/autoload_psr4.php';
43
- foreach ($map as $namespace => $path) {
44
- $loader->setPsr4($namespace, $path);
45
- }
46
-
47
- $classMap = require __DIR__ . '/autoload_classmap.php';
48
- if ($classMap) {
49
- $loader->addClassMap($classMap);
50
- }
51
- }
52
 
53
  $loader->register(true);
54
 
55
- if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit8b7cc5a2c0f9c2f284226ee59dab9330::$files;
57
- } else {
58
- $includeFiles = require __DIR__ . '/autoload_files.php';
59
- }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire8b7cc5a2c0f9c2f284226ee59dab9330($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
@@ -70,7 +47,7 @@ class ComposerAutoloaderInit8b7cc5a2c0f9c2f284226ee59dab9330
70
  * @param string $file
71
  * @return void
72
  */
73
- function composerRequire8b7cc5a2c0f9c2f284226ee59dab9330($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit75e6f1e39fe6dd99cb929aa6db3cdd46
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit75e6f1e39fe6dd99cb929aa6db3cdd46', 'loadClassLoader'), true, true);
28
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit75e6f1e39fe6dd99cb929aa6db3cdd46', 'loadClassLoader'));
30
 
31
+ require __DIR__ . '/autoload_static.php';
32
+ call_user_func(\Composer\Autoload\ComposerStaticInit75e6f1e39fe6dd99cb929aa6db3cdd46::getInitializer($loader));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  $loader->register(true);
35
 
36
+ $includeFiles = \Composer\Autoload\ComposerStaticInit75e6f1e39fe6dd99cb929aa6db3cdd46::$files;
 
 
 
 
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
+ composerRequire75e6f1e39fe6dd99cb929aa6db3cdd46($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
47
  * @param string $file
48
  * @return void
49
  */
50
+ function composerRequire75e6f1e39fe6dd99cb929aa6db3cdd46($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit8b7cc5a2c0f9c2f284226ee59dab9330
8
  {
9
  public static $files = array (
10
  '3773ef3f09c37da5478d578e32b03a4b' => __DIR__ . '/..' . '/automattic/jetpack-assets/actions.php',
@@ -291,9 +291,9 @@ class ComposerStaticInit8b7cc5a2c0f9c2f284226ee59dab9330
291
  public static function getInitializer(ClassLoader $loader)
292
  {
293
  return \Closure::bind(function () use ($loader) {
294
- $loader->prefixLengthsPsr4 = ComposerStaticInit8b7cc5a2c0f9c2f284226ee59dab9330::$prefixLengthsPsr4;
295
- $loader->prefixDirsPsr4 = ComposerStaticInit8b7cc5a2c0f9c2f284226ee59dab9330::$prefixDirsPsr4;
296
- $loader->classMap = ComposerStaticInit8b7cc5a2c0f9c2f284226ee59dab9330::$classMap;
297
 
298
  }, null, ClassLoader::class);
299
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit75e6f1e39fe6dd99cb929aa6db3cdd46
8
  {
9
  public static $files = array (
10
  '3773ef3f09c37da5478d578e32b03a4b' => __DIR__ . '/..' . '/automattic/jetpack-assets/actions.php',
291
  public static function getInitializer(ClassLoader $loader)
292
  {
293
  return \Closure::bind(function () use ($loader) {
294
+ $loader->prefixLengthsPsr4 = ComposerStaticInit75e6f1e39fe6dd99cb929aa6db3cdd46::$prefixLengthsPsr4;
295
+ $loader->prefixDirsPsr4 = ComposerStaticInit75e6f1e39fe6dd99cb929aa6db3cdd46::$prefixDirsPsr4;
296
+ $loader->classMap = ComposerStaticInit75e6f1e39fe6dd99cb929aa6db3cdd46::$classMap;
297
 
298
  }, null, ClassLoader::class);
299
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '8d674042fe2c3a9431c3e11c13d6e59eff5975b6',
9
  'name' => 'woocommerce/payments',
10
  'dev' => false,
11
  ),
@@ -199,7 +199,7 @@
199
  'type' => 'wordpress-plugin',
200
  'install_path' => __DIR__ . '/../../',
201
  'aliases' => array(),
202
- 'reference' => '8d674042fe2c3a9431c3e11c13d6e59eff5975b6',
203
  'dev_requirement' => false,
204
  ),
205
  'woocommerce/subscriptions-core' => array(
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '6f484059cf08a4f4dc78f2b77198f30c09e5642d',
9
  'name' => 'woocommerce/payments',
10
  'dev' => false,
11
  ),
199
  'type' => 'wordpress-plugin',
200
  'install_path' => __DIR__ . '/../../',
201
  'aliases' => array(),
202
+ 'reference' => '6f484059cf08a4f4dc78f2b77198f30c09e5642d',
203
  'dev_requirement' => false,
204
  ),
205
  'woocommerce/subscriptions-core' => array(
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-php-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-shutdown-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp8b7cc5a2c0f9c2f284226ee59dab9330;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp75e6f1e39fe6dd99cb929aa6db3cdd46;
9
 
10
  // phpcs:ignore
11
 
woocommerce-payments.php CHANGED
@@ -12,7 +12,7 @@
12
  * WC tested up to: 6.3.1
13
  * Requires at least: 5.7
14
  * Requires PHP: 7.0
15
- * Version: 4.0.0
16
  *
17
  * @package WooCommerce\Payments
18
  */
12
  * WC tested up to: 6.3.1
13
  * Requires at least: 5.7
14
  * Requires PHP: 7.0
15
+ * Version: 4.0.1
16
  *
17
  * @package WooCommerce\Payments
18
  */