Skip to content

Commit

Permalink
Merge branch 'develop' into fix/fatal-errors-when-subscriptions-are-u…
Browse files Browse the repository at this point in the history
…navailable
  • Loading branch information
frosso authored Jul 16, 2024
2 parents 88e388c + 5036be7 commit e20898e
Show file tree
Hide file tree
Showing 251 changed files with 10,500 additions and 3,479 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"@typescript-eslint/no-explicit-any": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [ "error" ],
"@typescript-eslint/explicit-module-boundary-types": "off",
"wpcalypso/jsx-classname-namespace": "off",
"react/react-in-jsx-scope": "error",
"no-shadow": "off",
Expand Down
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

# Each line is a file pattern followed by one or more owners.

# Harmony owns any files in the .github directory at the root of the repository and any of its subdirectories.
/.github/ @Automattic/harmony
# Transact architecture - DevOps owns any files in the .github directory at the root of the repository and any of its subdirectories.
/.github/ @Automattic/transact-architecture-devops
4 changes: 2 additions & 2 deletions .github/workflows/post-release-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ jobs:
NEXT_RELEASE_VERSION: ${{ steps.next-version.outputs.NEXT_RELEASE_VERSION }}
run: |
cd wiki
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
HAS_CHANGES=false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-code-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "• Created a release branch `release/${{ env.RELEASE_VERSION }}` \n • Raised a <https://github.com/Automattic/woocommerce-payments/pull/${{ env.RELEASE_PR_ID }}|Pull Request> to `trunk`\n • Built a <https://github.com/Automattic/woocommerce-payments/actions/runs/${{ github.run_id }}|zip file and ran smoke tests> against it"
"text": "• Created a release branch `release/${{ env.RELEASE_VERSION }}` \n • Raised a <https://github.com/Automattic/woocommerce-payments/pull/${{ env.RELEASE_PR_ID }}|Pull Request> to `trunk`\n • Built a <https://github.com/Automattic/woocommerce-payments/actions/runs/$GITHUB_RUN_ID|zip file and ran smoke tests> against it"
}
},
{
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ contributors.md
# Volumes mounted by Docker containers
docker/data
docker/wordpress
docker/mu-plugins
docker/logs

# Local machine docker override
Expand Down
8 changes: 4 additions & 4 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# check if main stream (stdout and stderr) are attached to the terminal
Expand All @@ -7,12 +7,12 @@ if [ -t 1 ] && [ -t 2 ]; then
exec < /dev/tty
fi

PROTECTED_BRANCH=("develop" "trunk")
PROTECTED_BRANCH_LIST="develop trunk"
CURRENT_BRANCH=$(git branch --show-current)

if [[ " ${PROTECTED_BRANCH[@]} " =~ " ${CURRENT_BRANCH} " ]]; then
if echo "$PROTECTED_BRANCH_LIST" | grep -q -w "$CURRENT_BRANCH"; then
read -p "$CURRENT_BRANCH is a protected branch. Are you sure you want to push? (y/n): " confirmation
if [ "$confirmation" != "y" ]; then
if [ "$confirmation" != "y" ]; then
echo "Push aborted"
exit 1
fi
Expand Down
3 changes: 3 additions & 0 deletions assets/images/icons/send-money.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,85 @@
*** WooPayments Changelog ***

= 7.9.1 - 2024-07-11 =
* Fix - Fix Documents API regex to allow documents with dashes in name to be viewed.

= 7.9.0 - 2024-07-10 =
* Add - Add a separate transient to save UPE appearance styles for the Add Payment Method standalone page. Correct regression that prevented proper styles calculation in the shortcode checkout.
* Add - Add Pay for Order support in Express Checkout Elements.
* Add - Add support for configuring button radius when ECE is enabled
* Add - Add support for ECE elements on the Shortcode Cart and Checkout pages
* Add - Add support for the Express Checkout Element on product pages.
* Add - Add telemetry events from PRBs into ECE.
* Add - Ensure shoppers can still checkout, even when WooPay is slow or unavailable.
* Add - feat: tokenized cart PRBs on shortcode cart and checkout behind feature flag.
* Add - Support style settings for ECE buttons
* Fix - Clearly display available instant deposit amount on notice and button label on Payment Overview page
* Fix - Disable Stripe Link in ECE.
* Fix - Disable WooPay for suspended and rejected accounts.
* Fix - Display an invalid address error instead of generic one in the checkout form when Afterpay is selected as payment method
* Fix - Display payment error message in the Payment context with Blocks.
* Fix - fix: display refund amount w/ tokenized cart PRBs
* Fix - fix: pricing decimal formatting for tokenized cart
* Fix - fix: tokenized PRBs payment type
* Fix - Fixed an error when renewing subscriptions without a billing country
* Fix - Fix output for compatibility data.
* Fix - Fix transaction list and document list advanced filter styling issue preventing dates to be input on mobile screens.
* Fix - Fix WooPay Direct Checkout feature check.
* Fix - Fix WooPay OTP modal not rendering on the shortcode checkout if BNPL methods are available.
* Fix - Hide payment methods with domestic transactions restrictions (Klarna, Affirm, Afterpay) when conditions are not met.
* Fix - Make the search box, and typed search term visible clearly on the 'Payments > Transactions' page, when there are too many existing search tags.
* Fix - Properly wait for tokenized cart data updates before refreshing PRB data.
* Fix - Retrieve saved tokens only relevant for the specific payment gateway.
* Update - Deprecate Giropay.
* Update - Update payment receipt settings to remove mention of the printed receipts.
* Dev - Add validation for path variables.
* Dev - Migrate Affirm and Afterpay payment method components to TypeScript.
* Dev - Prevent infinite loop in usePaymentFailHandler effect
* Dev - Refactor redirects logic in payments

= 7.8.1 - 2024-06-25 =
* Fix - Fix "Dispute not loaded" error that was affecting responding to disputes.

= 7.8.0 - 2024-06-19 =
* Add - Add a feedback survey modal upon deactivation.
* Add - Add new select component to be used for reporting filters, e.g. Payments overview currency select
* Add - Add payment processing using ECE in the Blocks checkout and cart pages.
* Add - Add the WooPay Direct Checkout flow to the classic mini cart widget.
* Add - Add woocommerce-return-previous-exceptions filter
* Add - Enable adapted extensions compatibility with Direct Checkout.
* Add - feat: add pay-for-order support w/ tokenized cart PRBs
* Add - Fix ECE not working without WooPay.
* Add - Reset notifications about duplicate enabled payment methods when new plugins are enabling them.
* Fix - Fall back to credit card as default payment method when a payment method is toggled off.
* Fix - fix: address normalization on checkout for tokenized cart PRBs
* Fix - fix: itemized totals & pending amount on tokenized cart
* Fix - fix: Store API tokenized cart payment method title
* Fix - Fixes some cases where redirects to the onboarding will open in a new tab.
* Fix - Fix input-specific credit card errors.
* Fix - Fix Payment method title for PRBs not displaying correctly because of ECE code.
* Fix - Fix Teams for WooCommerce Memberships on product WooPay Express Checkout Button.
* Fix - Fix WooPay Direct Checkout feature check.
* Fix - Improve consistency of Manage button for different WooPayments KYC states
* Fix - Make it so that the WooPay button is not triggered on Checkout pages when the "Enter" key is pressed on a keyboard.
* Fix - Prevent account creation during WooPay preflight request.
* Update - chore: update incompatibility notice wrapping
* Update - Declare compatibility with the Cart and Checkout blocks.
* Update - Improve the transition from the WCPay KYC to the WC Admin Payments Task
* Update - Update the Payments Overview screen with a new currency selection UI for stores with multiple deposit currencies
* Update - Use FILTER_SANITIZE_EMAIL to sanitize email input
* Dev - Add New_Process_Payment_Exception
* Dev - Add Order_ID_Mismatch_Exception
* Dev - Add sh support in pre-push husky script.
* Dev - Add validation for path variables.
* Dev - Bump WooCommerce Tested To version to 8.9.2
* Dev - Bump WooCommerce Tested To version to 8.9.3
* Dev - chore: EPMs to always send shipping phone
* Dev - Clean up and refactor some old code which is no longer in use.
* Dev - Fix PHPStan warnings.
* Dev - Fix unused parameter phpcs sniffs in checkout classes.
* Dev - Improve test coverage of upe.js and rename isPaymentMethodRestrictedToLocation to hasPaymentMethodCountryRestrictions
* Dev - Remove redundant wrapper around method invocation.

= 7.7.0 - 2024-05-29 =
* Add - Add share key query param when sending data to Stripe KYC.
* Add - Add the WooPay Direct Checkout flow to the blocks mini cart widget.
Expand Down
4 changes: 4 additions & 0 deletions changelog/2024-07-11-21-06-01-653423
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Fix payment method title for Express Checkout Element orders.
5 changes: 5 additions & 0 deletions changelog/9001-tokenized-prb-order-origin
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Bug fix for PRB feature behind a flag.


4 changes: 4 additions & 0 deletions changelog/9037-giropay-deprecation
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Deprecate Giropay.
4 changes: 0 additions & 4 deletions changelog/add-8773-ece-support-blocks-checkout-page

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/add-9007-use-ece-for-express-button-preview
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Use Stripe's Express Checkout Element (ECE) for express checkout button previews in the settings when ECE is enabled.
4 changes: 4 additions & 0 deletions changelog/add-9045-split-ece-pms-registration-for-blocks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Add independent ECE instances in WC Blocks.
4 changes: 0 additions & 4 deletions changelog/add-new-process-payment-exception

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-order-id-mismatch-exception

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/as-8871-ece-on-supported-product-types
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Add ECE support for multiple product types.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Disable ECE for non shipping products if Tax is calculated on billing address.
4 changes: 0 additions & 4 deletions changelog/as-disable-woopay-rejected-suspended-accounts

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/chore-incompatibility-notice-wrapping

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/dev-bump-wc-version-9-1-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Bump WC tested up to version to 9.1.2
4 changes: 0 additions & 4 deletions changelog/dev-finish-setup-cta

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-8883-pay-for-order-blocked-ui

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-8892-use-correct-customer-id-in-renewals
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Use the customer id saved in the subscription to process renewal payments.
4 changes: 4 additions & 0 deletions changelog/fix-9005-fix-ece-button-width
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Fix Express Checkout Element button width.
5 changes: 5 additions & 0 deletions changelog/fix-9071-transaction-search-tag-close-button
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Restore the 'remove tag' function on the last search tag appearing on the transactions report search box.


4 changes: 4 additions & 0 deletions changelog/fix-deprecate-notice
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Avoid using deprecated hook for processed checkout order.
4 changes: 0 additions & 4 deletions changelog/fix-phpstan-errors

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-send-optional-fields-data-to-woopay
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Send optional fields data to WooPay.
4 changes: 0 additions & 4 deletions changelog/fix-tokenized-cart-payment-method-title

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-woopay-button-submit-when-enter-pressed

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/update-redirect-to-payment-screen-for-wcadmin-task

This file was deleted.

27 changes: 0 additions & 27 deletions client/card-readers/preview-receipt/index.tsx

This file was deleted.

61 changes: 0 additions & 61 deletions client/card-readers/preview-receipt/previewer.tsx

This file was deleted.

Loading

0 comments on commit e20898e

Please sign in to comment.