diff --git a/.eslintrc b/.eslintrc index f1eb9c1e460..8356990a159 100644 --- a/.eslintrc +++ b/.eslintrc @@ -76,7 +76,6 @@ "definedTags": [ "format" ] } ], - "yoda": [ "error", "always" ], /* partially disable rules to get @woocommerce/eslint-plugin integration done */ "jsdoc/no-undefined-types": "off", "jsdoc/require-param": "off", @@ -138,7 +137,10 @@ "wpcalypso/jsx-classname-namespace": "off", "react/react-in-jsx-scope": "error", "no-shadow": "off", - "@typescript-eslint/no-shadow": "error" + "@typescript-eslint/no-shadow": "error", + "jsdoc/require-param-type": 0, + "jsdoc/require-returns-type": 0, + "valid-jsdoc": "off" } } ] diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000000..c5fe332ca5a --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,6 @@ +# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners + +# 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 diff --git a/.github/actions/commit-push-as-bot/action.yml b/.github/actions/commit-push-as-bot/action.yml new file mode 100644 index 00000000000..82cd953c04c --- /dev/null +++ b/.github/actions/commit-push-as-bot/action.yml @@ -0,0 +1,27 @@ +name: "Commit and push as the github-actions bot" +description: "Commit and push as the github-actions bot" + +inputs: + release-version: + description: "The release version to be used in the commit message" + required: true + branch: + description: "The branch where the commit will be pushed" + required: true + +runs: + using: composite + steps: + - name: "Commit and push changes" + id: build_plugin + shell: bash + env: + RELEASE_VERSION: ${{ inputs.release-version }} + BRANCH_NAME: ${{ inputs.branch }} + run: | + git config user.name "github-actions[bot]" + # We could consider fetching the bot's ID through an API call to be future-proof. Hardcoded for now. + # See https://github.com/Automattic/woocommerce-payments/pull/5200#discussion_r1034560144 + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git commit -am "Update version and add changelog entries for release $RELEASE_VERSION" + git push --set-upstream origin $BRANCH_NAME diff --git a/.github/actions/e2e/env-setup/action.yml b/.github/actions/e2e/env-setup/action.yml index dabaa752c3e..863ad27e75b 100644 --- a/.github/actions/e2e/env-setup/action.yml +++ b/.github/actions/e2e/env-setup/action.yml @@ -10,12 +10,8 @@ runs: run: echo -e "machine github.com\n login $E2E_GH_TOKEN" > ~/.netrc # PHP setup - - name: PHP Setup - uses: shivammathur/setup-php@v2 - with: - php-version: '7.4' - tools: composer - coverage: none + - name: "Set up PHP" + uses: ./.github/actions/setup-php # Composer setup - name: Setup Composer diff --git a/.github/actions/process-changelog/action.yml b/.github/actions/process-changelog/action.yml index 66a07c2107c..787e26416ac 100644 --- a/.github/actions/process-changelog/action.yml +++ b/.github/actions/process-changelog/action.yml @@ -22,47 +22,75 @@ outputs: runs: using: composite steps: + - name: "Verify the action type" + id: verify_action_type + if: ${{ inputs.action-type == 'generate' }} + shell: bash + env: + RELEASE_VERSION: ${{ inputs.release-version }} + RELEASE_DATE: ${{ inputs.release-date }} + ACTION_TYPE: ${{ inputs.action-type }} + run: | + FINAL_RELEASE_VERSION=$(echo "$RELEASE_VERSION" | grep -Po '\d.\d.\d(.*?)') # Keep only x.y.z from x.y.z(-test-n) + CURRENT_RELEASE_VERSION=$(jq '.version' package.json -r) + + # If the changelog directory is empty (except .gitkeep) and the final release version is already defined in package.json, we need to switch to amend + # This use case is mainly for the last test package created from the release branch, to avoid an empty changelog + if [ "$(ls -A changelog | wc -l)" -eq 1 ] && [[ "$FINAL_RELEASE_VERSION" == "$CURRENT_RELEASE_VERSION" ]]; then + echo "ACTION_TYPE=amend-version" >> $GITHUB_OUTPUT + echo "CURRENT_VERSION=$CURRENT_RELEASE_VERSION" >> $GITHUB_OUTPUT + fi + - name: "Process changelog for changelog.txt" id: process_changelog shell: bash env: - ACTION_TYPE: ${{ inputs.action-type }} + ACTION_TYPE: ${{ steps.verify_action_type.outputs.ACTION_TYPE || inputs.action-type }} + CURRENT_VERSION: ${{ steps.verify_action_type.outputs.CURRENT_VERSION }} RELEASE_VERSION: ${{ inputs.release-version }} RELEASE_DATE: ${{ inputs.release-date }} run: | - # Install this dev package globally to gather changelog entries while not including it into the release package - composer global require automattic/jetpack-changelogger:^3.0.7 - - if ${{ env.ACTION_TYPE == 'generate' }}; then - CHANGELOG_FLAG="" - echo "Generating the changelog entries." >> $GITHUB_STEP_SUMMARY + if ${{ env.ACTION_TYPE == 'amend-version' }}; then + sed -i "s/^= $CURRENT_VERSION - .* =$/= $RELEASE_VERSION - $RELEASE_DATE =/" changelog.txt else - CHANGELOG_FLAG="--amend" - echo "Amending the changelog entries." >> $GITHUB_STEP_SUMMARY - fi + # Install this dev package globally to gather changelog entries while not including it into the release package + composer global require automattic/jetpack-changelogger:^3.0.7 - ~/.composer/vendor/bin/changelogger write --use-version="$RELEASE_VERSION" --release-date="$RELEASE_DATE" $CHANGELOG_FLAG --no-interaction --yes + if ${{ env.ACTION_TYPE == 'generate' }}; then + CHANGELOG_FLAG="" + echo "Generating the changelog entries." >> $GITHUB_STEP_SUMMARY + else + CHANGELOG_FLAG="--amend" + echo "Amending the changelog entries." >> $GITHUB_STEP_SUMMARY + fi + + ~/.composer/vendor/bin/changelogger write --use-version="$RELEASE_VERSION" --release-date="$RELEASE_DATE" $CHANGELOG_FLAG --no-interaction --yes + fi - echo "Picking up changelog for version '$RELEASE_VERSION'..." CHANGELOG=$(awk '/^= / { if (p) { exit }; p=1; next } p && NF' changelog.txt) - echo "$CHANGELOG" # Escape backslash, new line and ampersand characters. The order is important. CHANGELOG=${CHANGELOG//\\/\\\\} CHANGELOG=${CHANGELOG//$'\n'/\\n} CHANGELOG=${CHANGELOG//&/\\&} + echo "CHANGELOG=$CHANGELOG" >> $GITHUB_OUTPUT - name: "Process changelog for readme.txt" shell: bash env: - ACTION_TYPE: ${{ inputs.action-type }} + ACTION_TYPE: ${{ steps.verify_action_type.outputs.ACTION_TYPE || inputs.action-type }} + CURRENT_VERSION: ${{ steps.verify_action_type.outputs.CURRENT_VERSION }} RELEASE_VERSION: ${{ inputs.release-version }} RELEASE_DATE: ${{ inputs.release-date }} CHANGELOG: ${{ steps.process_changelog.outputs.CHANGELOG }} run: | - if ${{ env.ACTION_TYPE == 'amend' }}; then - perl -i -p0e "s/= $RELEASE_VERSION.*?(\n){2}//s" readme.txt # Delete the existing changelog for the release version first - fi + if ${{ env.ACTION_TYPE == 'amend-version' }}; then + sed -i "s/^= $CURRENT_VERSION - .* =$/= $RELEASE_VERSION - $RELEASE_DATE =/" readme.txt + else + if ${{ env.ACTION_TYPE == 'amend' }}; then + perl -i -p0e "s/= $RELEASE_VERSION.*?(\n){2}//s" readme.txt # Delete the existing changelog for the release version first + fi - sed -ri "s|(== Changelog ==)|\1\n\n= $RELEASE_VERSION - $RELEASE_DATE =\n$CHANGELOG|" readme.txt + sed -ri "s|(== Changelog ==)|\1\n\n= $RELEASE_VERSION - $RELEASE_DATE =\n$CHANGELOG|" readme.txt + fi diff --git a/.github/actions/setup-php/action.yml b/.github/actions/setup-php/action.yml new file mode 100644 index 00000000000..44e797aeb6d --- /dev/null +++ b/.github/actions/setup-php/action.yml @@ -0,0 +1,19 @@ +name: "Set up PHP" +description: "Extracts the required PHP version from plugin file and uses it to build PHP." + +runs: + using: composite + steps: + - name: "Get minimum PHP version" + shell: bash + id: get_min_php_version + run: | + MIN_PHP_VERSION=$(sed -n 's/.*PHP: //p' woocommerce-payments.php) + echo "MIN_PHP_VERSION=$MIN_PHP_VERSION" >> $GITHUB_OUTPUT + + - name: "Setup PHP" + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ steps.get_min_php_version.outputs.MIN_PHP_VERSION }} + tools: composer + coverage: none diff --git a/.github/actions/setup-repo/action.yml b/.github/actions/setup-repo/action.yml index 28741b60920..890fe95963f 100644 --- a/.github/actions/setup-repo/action.yml +++ b/.github/actions/setup-repo/action.yml @@ -1,29 +1,20 @@ name: "Setup WooCommerce Payments repository" description: "Handles the installation, building, and caching of the projects within the repository." -inputs: - php-version: - description: "The version of PHP that the action should set up." - default: "7.4" - runs: using: composite steps: - name: "Setup Node" uses: actions/setup-node@v3 with: - node-version-file: '.nvmrc' - cache: 'npm' + node-version-file: ".nvmrc" + cache: "npm" - name: "Enable composer dependencies caching" uses: actions/cache@v3 with: path: ~/.cache/composer/ key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }} - - - name: "Setup PHP" - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ inputs.php-version }} - tools: composer - coverage: none + + - name: "Set up PHP" + uses: ./.github/actions/setup-php diff --git a/.github/workflows/build-zip-and-run-smoke-tests.yml b/.github/workflows/build-zip-and-run-smoke-tests.yml index 94599b3b88e..7afaf05a833 100644 --- a/.github/workflows/build-zip-and-run-smoke-tests.yml +++ b/.github/workflows/build-zip-and-run-smoke-tests.yml @@ -24,7 +24,7 @@ on: jobs: build-zip: name: "Build the zip file" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout repository" uses: actions/checkout@v3 diff --git a/.github/workflows/check-changelog.yml b/.github/workflows/check-changelog.yml index 55f7391fb90..c44b2b0191e 100644 --- a/.github/workflows/check-changelog.yml +++ b/.github/workflows/check-changelog.yml @@ -11,7 +11,7 @@ concurrency: jobs: check-changelog: name: Check changelog - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: # clone the repository - uses: actions/checkout@v3 @@ -22,11 +22,8 @@ jobs: path: ~/.cache/composer/ key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }} # setup PHP, but without debug extensions for reasonable performance - - uses: shivammathur/setup-php@v2 - with: - php-version: '7.4' - tools: composer - coverage: none + - name: "Set up PHP" + uses: ./.github/actions/setup-php # Install composer packages. - run: composer self-update && composer install --no-progress # Fetch the target branch before running the check. diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 5e2ef9bdcb2..6b9ade34d58 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -4,9 +4,10 @@ on: pull_request env: - WC_MIN_SUPPORTED_VERSION: '7.5.0' - WP_MIN_SUPPORTED_VERSION: '6.0' - PHP_MIN_SUPPORTED_VERSION: '7.3' + WC_MIN_SUPPORTED_VERSION: '7.7.0' + WP_MIN_SUPPORTED_VERSION: '6.1' + PHP_MIN_SUPPORTED_VERSION: '7.4' + GUTENBERG_VERSION_FOR_WP_MIN: '15.7.0' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -15,7 +16,7 @@ concurrency: jobs: generate-wc-compat-matrix: name: "Generate the matrix for woocommerce compatibility dynamically" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest outputs: matrix: ${{ steps.generate_matrix.outputs.matrix }} steps: @@ -23,13 +24,13 @@ jobs: id: generate_matrix run: | WC_VERSIONS=$( echo "[\"$WC_MIN_SUPPORTED_VERSION\", \"latest\", \"beta\"]" ) - MATRIX_INCLUDE=$( echo "[{\"woocommerce\":\"$WC_MIN_SUPPORTED_VERSION\",\"wordpress\":\"$WP_MIN_SUPPORTED_VERSION\",\"gutenberg\":\"13.6.0\",\"php\":\"$PHP_MIN_SUPPORTED_VERSION\"}]" ) + MATRIX_INCLUDE=$( echo "[{\"woocommerce\":\"$WC_MIN_SUPPORTED_VERSION\",\"wordpress\":\"$WP_MIN_SUPPORTED_VERSION\",\"gutenberg\":\"$GUTENBERG_VERSION_FOR_WP_MIN\",\"php\":\"$PHP_MIN_SUPPORTED_VERSION\"}]" ) echo "matrix={\"woocommerce\":$WC_VERSIONS,\"wordpress\":[\"latest\"],\"gutenberg\":[\"latest\"],\"php\":[\"7.4\"], \"include\":$MATRIX_INCLUDE}" >> $GITHUB_OUTPUT woocommerce-compatibility: name: "WC compatibility" needs: generate-wc-compat-matrix - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: WP_VERSION: ${{ matrix.wordpress }} WC_VERSION: ${{ matrix.woocommerce }} @@ -57,7 +58,7 @@ jobs: generate-wc-compat-beta-matrix: name: "Generate the matrix for compatibility-woocommerce-beta dynamically" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest outputs: matrix: ${{ steps.generate_matrix.outputs.matrix }} steps: @@ -71,7 +72,7 @@ jobs: compatibility-woocommerce-beta: name: Environment - WC beta needs: generate-wc-compat-beta-matrix - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: ${{ fromJSON(needs.generate-wc-compat-beta-matrix.outputs.matrix) }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ddc2db674bc..b1401136de9 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ concurrency: jobs: woocommerce-coverage: name: Code coverage - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false max-parallel: 10 diff --git a/.github/workflows/create-pre-release.yml b/.github/workflows/create-pre-release.yml index fec46604650..65c20427376 100644 --- a/.github/workflows/create-pre-release.yml +++ b/.github/workflows/create-pre-release.yml @@ -16,7 +16,7 @@ defaults: jobs: create-release: name: "Create the pre-release" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: RELEASE_VERSION: ${{ inputs.releaseVersion }} @@ -33,24 +33,33 @@ jobs: with: version: ${{ env.RELEASE_VERSION }} - - name: "Create a test tag" - id: create_tag - uses: ./.github/actions/create-tag - with: - version: ${{ env.RELEASE_VERSION }} - - name: "Generate the changelog" id: generate_changelog uses: ./.github/actions/process-changelog with: - release-version: ${{ steps.create_tag.outputs.trimmed-version }} + release-version: ${{ steps.create_branch.outputs.trimmed-version }} - name: "Bump version header" env: - VERSION: ${{ steps.create_tag.outputs.trimmed-version }} + VERSION: ${{ steps.create_branch.outputs.trimmed-version }} run: | sed -i "s/^ \* Version: .*$/ * Version: $VERSION/" woocommerce-payments.php + - name: "Commit and push changes" + env: + BRANCH_NAME: ${{ steps.create_branch.outputs.branch-name }} + RELEASE_VERSION: ${{ steps.create_branch.outputs.trimmed-version }} + uses: ./.github/actions/commit-push-as-bot + with: + release-version: ${{ env.RELEASE_VERSION }} + branch: ${{ env.BRANCH_NAME }} + + - name: "Create a test tag" + id: create_tag + uses: ./.github/actions/create-tag + with: + version: ${{ env.RELEASE_VERSION }} + - name: "Build the plugin" id: build_plugin uses: ./.github/actions/build diff --git a/.github/workflows/e2e-pull-request.yml b/.github/workflows/e2e-pull-request.yml index 1315a484a34..ab0cd702a86 100644 --- a/.github/workflows/e2e-pull-request.yml +++ b/.github/workflows/e2e-pull-request.yml @@ -34,6 +34,7 @@ env: WCPAY_USE_BUILD_ARTIFACT: ${{ inputs.wcpay-use-build-artifact }} WCPAY_ARTIFACT_DIRECTORY: 'zipfile' NODE_ENV: 'test' + FORCE_E2E_DEPS_SETUP: true concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -41,7 +42,7 @@ concurrency: jobs: wcpay-e2e-tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 1a6ca8e5fdc..ddc50e45526 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -23,13 +23,14 @@ env: E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }} E2E_USE_LOCAL_SERVER: false E2E_RESULT_FILEPATH: 'tests/e2e/results.json' - WC_MIN_SUPPORTED_VERSION: '7.5.0' + WC_MIN_SUPPORTED_VERSION: '7.7.0' NODE_ENV: 'test' + FORCE_E2E_DEPS_SETUP: true jobs: generate-matrix: name: "Generate the matrix for subscriptions-tests dynamically" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest outputs: matrix: ${{ steps.generate_matrix.outputs.matrix }} steps: @@ -41,7 +42,7 @@ jobs: # Run WCPay & subscriptions tests against specific WC versions wcpay-subscriptions-tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: generate-matrix strategy: fail-fast: false @@ -69,7 +70,7 @@ jobs: # Run tests against WC Checkout blocks & WC latest # [TODO] Unskip blocks tests after investigating constant failures. # blocks-tests: - # runs-on: ubuntu-20.04 + # runs-on: ubuntu-latest # name: WC - latest | blocks - shopper # env: @@ -92,7 +93,7 @@ jobs: # Run tests against WP Nightly & WC latest wp-nightly-tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/.github/workflows/i18n-weekly-release.yml b/.github/workflows/i18n-weekly-release.yml index 197213dec1c..11dd8a89705 100644 --- a/.github/workflows/i18n-weekly-release.yml +++ b/.github/workflows/i18n-weekly-release.yml @@ -6,7 +6,7 @@ on: jobs: i18n-release: name: Release - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: # clone the repository @@ -27,12 +27,8 @@ jobs: path: ~/.npm/ key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} # setup PHP, but without debug extensions for reasonable performance - - uses: shivammathur/setup-php@v2 - with: - php-version: '7.4' - tools: composer - coverage: none - + - name: "Set up PHP" + uses: ./.github/actions/setup-php - name: Build release run: | npm ci diff --git a/.github/workflows/js-lint-test.yml b/.github/workflows/js-lint-test.yml index 4824d78ca19..fdbea1d59b0 100644 --- a/.github/workflows/js-lint-test.yml +++ b/.github/workflows/js-lint-test.yml @@ -11,7 +11,7 @@ concurrency: jobs: lint: name: JS linting - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: # clone the repository - uses: actions/checkout@v3 @@ -32,7 +32,7 @@ jobs: test: name: JS testing - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: # clone the repository - uses: actions/checkout@v3 diff --git a/.github/workflows/php-compatibility.yml b/.github/workflows/php-compatibility.yml index 8c0e7d73b37..abf8413b84c 100644 --- a/.github/workflows/php-compatibility.yml +++ b/.github/workflows/php-compatibility.yml @@ -11,12 +11,9 @@ jobs: # Check for version-specific PHP compatibility php-compatibility: name: PHP Compatibility - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@v2 - with: - php-version: '7.4' - tools: composer - coverage: none + - name: "Set up PHP" + uses: ./.github/actions/setup-php - run: bash bin/phpcs-compat.sh diff --git a/.github/workflows/php-lint-test.yml b/.github/workflows/php-lint-test.yml index 602c7c0755e..0a55baaeb8e 100644 --- a/.github/workflows/php-lint-test.yml +++ b/.github/workflows/php-lint-test.yml @@ -6,9 +6,9 @@ on: env: WP_VERSION: latest - WC_MIN_SUPPORTED_VERSION: '7.5.0' + WC_MIN_SUPPORTED_VERSION: '7.7.0' GUTENBERG_VERSION: latest - PHP_MIN_SUPPORTED_VERSION: '7.3' + PHP_MIN_SUPPORTED_VERSION: '7.4' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -17,7 +17,7 @@ concurrency: jobs: lint: name: PHP linting - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: # clone the repository - uses: actions/checkout@v3 @@ -27,30 +27,27 @@ jobs: path: ~/.cache/composer/ key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }} # setup PHP, but without debug extensions for reasonable performance - - uses: shivammathur/setup-php@v2 - with: - php-version: '7.4' - tools: composer - coverage: none + - name: "Set up PHP" + uses: ./.github/actions/setup-php # install dependencies and run linter - run: composer self-update && composer install --no-progress && ./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$) && ./vendor/bin/psalm generate-test-matrix: name: "Generate the matrix for php tests dynamically" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest outputs: matrix: ${{ steps.generate_matrix.outputs.matrix }} steps: - name: "Generate matrix" id: generate_matrix run: | - PHP_VERSIONS=$( echo "[\"$PHP_MIN_SUPPORTED_VERSION\", \"7.3\", \"7.4\"]" ) + PHP_VERSIONS=$( echo "[\"$PHP_MIN_SUPPORTED_VERSION\", \"8.0\", \"8.1\"]" ) echo "matrix={\"php\":$PHP_VERSIONS}" >> $GITHUB_OUTPUT test: name: PHP testing needs: generate-test-matrix - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false max-parallel: 10 diff --git a/.github/workflows/post-release-updates.yml b/.github/workflows/post-release-updates.yml index f19be159407..141c53e0b16 100644 --- a/.github/workflows/post-release-updates.yml +++ b/.github/workflows/post-release-updates.yml @@ -11,7 +11,7 @@ defaults: jobs: get-last-released-version: name: "Get the last released version" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest outputs: releaseVersion: ${{ steps.current-version.outputs.RELEASE_VERSION }} @@ -31,7 +31,7 @@ jobs: create-gh-release: name: "Create a GH release" needs: get-last-released-version - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: RELEASE_VERSION: ${{ needs.get-last-released-version.outputs.releaseVersion }} @@ -75,7 +75,7 @@ jobs: merge-trunk-into-develop: name: "Merge trunk back into develop" needs: get-last-released-version - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: RELEASE_VERSION: ${{ needs.get-last-released-version.outputs.releaseVersion }} @@ -98,7 +98,7 @@ jobs: trigger-translations: name: "Trigger translations update for the release" needs: [ get-last-released-version, create-gh-release ] - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout repository (trunk)" uses: actions/checkout@v3 @@ -114,7 +114,7 @@ jobs: update-wiki: name: "Update the wiki for the next release" needs: get-last-released-version - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: RELEASE_VERSION: ${{ needs.get-last-released-version.outputs.releaseVersion }} diff --git a/.github/workflows/pr-build-live-branch.yml b/.github/workflows/pr-build-live-branch.yml index c50d026fe08..1fa9742f0ea 100644 --- a/.github/workflows/pr-build-live-branch.yml +++ b/.github/workflows/pr-build-live-branch.yml @@ -10,7 +10,7 @@ concurrency: jobs: build-and-inform-zip-file: name: "Build and inform the zip file" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout repository" uses: actions/checkout@v3 @@ -122,7 +122,7 @@ jobs: #### Option 2. Jurassic Ninja - available for logged-in A12s - :rocket: [Launch a JN site with this branch](https://jurassic.ninja/create/?jetpack-beta&shortlived&nojetpack&woocommerce&branches.woocommerce-payments=${PR_HEAD_REF}) :rocket: + :rocket: [Launch a JN site with this branch](https://jurassic.ninja/create/?jetpack-beta&shortlived&nojetpack&woocommerce&woocommerce-payments-dev-tools&branches.woocommerce-payments=${PR_HEAD_REF}) :rocket: :information_source: Install this [Tampermonkey script](https://github.com/Automattic/woocommerce-payments/tree/develop/bin/wcpay-live-branches) to get more options. diff --git a/.github/workflows/release-changelog.yml b/.github/workflows/release-changelog.yml index f20588f9cd7..4c9c7a7a8b1 100644 --- a/.github/workflows/release-changelog.yml +++ b/.github/workflows/release-changelog.yml @@ -29,7 +29,7 @@ defaults: jobs: process-changelog: name: "Process the changelog" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: CHANGELOG_ACTION: ${{ inputs.action-type }} RELEASE_VERSION: ${{ inputs.release-version }} @@ -37,7 +37,9 @@ jobs: steps: - name: "Checkout repository" uses: actions/checkout@v3 - + with: + token: ${{ SECRETS.BOTWOO_TOKEN }} + - name: "Format the release date" id: format_date run: | @@ -54,8 +56,8 @@ jobs: - name: "Commit and push the changes" run: | - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor }}@users.noreply.github.com" + git config user.name "botwoo" + git config user.email "botwoo@users.noreply.github.com" if ${{ env.CHANGELOG_ACTION == 'amend' }}; then git commit -am "Amend changelog entries for release $RELEASE_VERSION" else diff --git a/.github/workflows/release-code-freeze.yml b/.github/workflows/release-code-freeze.yml index 84760b24ebc..7b81c24d138 100644 --- a/.github/workflows/release-code-freeze.yml +++ b/.github/workflows/release-code-freeze.yml @@ -19,7 +19,7 @@ defaults: jobs: check-code-freeze: name: "Check that today is the day of the code freeze" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest outputs: freeze: ${{ steps.check-freeze.outputs.FREEZE }} nextReleaseVersion: ${{ steps.next-version.outputs.NEXT_RELEASE_VERSION }} @@ -81,7 +81,7 @@ jobs: name: "Send notification to Slack" needs: [check-code-freeze, create-release-pr] if: ${{ ! ( inputs.skipSlackPing && needs.create-release-pr.outputs.release-pr-id ) }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: RELEASE_VERSION: ${{ needs.check-code-freeze.outputs.nextReleaseVersion }} RELEASE_DATE: ${{ needs.check-code-freeze.outputs.nextReleaseDate }} diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 52c6c9e1acf..0433e03eb51 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -35,6 +35,11 @@ on: required: false default: "next wednesday" type: string + skip-build-zip: + type: boolean + required: false + default: true + description: "Skip building the zip file" skip-smoke-tests: type: boolean required: false @@ -48,7 +53,7 @@ defaults: jobs: prepare-release: name: "Prepare a stable release" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest outputs: branch: ${{ steps.create_branch.outputs.branch-name }} release-pr-id: ${{ steps.create-pr-to-trunk.outputs.RELEASE_PR_ID }} @@ -104,13 +109,10 @@ jobs: env: RELEASE_VERSION: ${{ steps.create_branch.outputs.trimmed-version }} BRANCH_NAME: ${{ steps.create_branch.outputs.branch-name }} - run: | - git config user.name "github-actions[bot]" - # We could consider fetching the bot's ID through an API call to be future-proof. Hardcoded for now. - # See https://github.com/Automattic/woocommerce-payments/pull/5200#discussion_r1034560144 - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git commit -am "Update version and add changelog entries for release $RELEASE_VERSION" - git push --set-upstream origin $BRANCH_NAME + uses: ./.github/actions/commit-push-as-bot + with: + release-version: ${{ env.RELEASE_VERSION }} + branch: ${{ env.BRANCH_NAME }} - name: "Create a PR to trunk" id: create-pr-to-trunk @@ -139,6 +141,7 @@ jobs: build-zip-and-run-smoke-tests: name: "Build zip & Run smoke tests" needs: prepare-release + if: ${{ ! inputs.skip-build-zip }} uses: ./.github/workflows/build-zip-and-run-smoke-tests.yml with: skip-smoke-tests: ${{ inputs.skip-smoke-tests }} diff --git a/.gitignore b/.gitignore index e5910ecfea4..9749d5a27ba 100644 --- a/.gitignore +++ b/.gitignore @@ -59,6 +59,7 @@ phpunit.xml # Composer /vendor/ /vendor-dist/ +/lib/vendor/ contributors.md # Screenshots for e2e tests failures @@ -84,4 +85,4 @@ local.env tests/e2e/screenshots # E2E Performance test results -tests/e2e/reports \ No newline at end of file +tests/e2e/reports diff --git a/.husky/post-merge b/.husky/post-merge index ce86573df84..2d66c62ad2b 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -2,7 +2,7 @@ . "$(dirname "$0")/_/husky.sh" # Load local env variables if present. -if [[ -f "$(pwd)/local.env" ]]; then +if [ -f "$(pwd)/local.env" ]; then . "$(pwd)/local.env" fi @@ -17,7 +17,7 @@ if [ ! -d $DEV_TOOLS_PLUGIN_PATH ]; then echo echo "\033[33mCouldn't find the '$DEV_TOOLS_PLUGIN_PATH' directory. Skipping the auto-update for the WCPay Dev Tools plugin...\033[0m" else - if [[ "$(cd $DEV_TOOLS_PLUGIN_PATH && git rev-parse --show-toplevel 2>/dev/null)" = "$(cd $DEV_TOOLS_PLUGIN_PATH && pwd)" ]]; then + if [ "$(cd $DEV_TOOLS_PLUGIN_PATH && git rev-parse --show-toplevel 2>/dev/null)" = "$(cd $DEV_TOOLS_PLUGIN_PATH && pwd)" ]; then echo echo "\033[32mDetermining if there is an update for the WCPay Dev Tools plugin...\033[0m" diff --git a/README.md b/README.md index dd368cef739..416c6b6a728 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ We adopt the L-2 version support policy for WordPress core strictly, and a loose ### Install dependencies & build -- `npm install` +- `npm install` - `composer install` - `npm run build:client`, or if you're developing the client you can have it auto-update when changes are made: `npm start` @@ -55,7 +55,7 @@ We currently support the following variables: ## Test account setup -For setting up a test account follow [these instructions](https://woocommerce.com/document/payments/testing/dev-mode/). +For setting up a test account follow [these instructions](https://woocommerce.com/document/woopayments/testing-and-troubleshooting/dev-mode/). You will need a externally accessible URL to set up the plugin. You can use ngrok for this. diff --git a/assets/css/admin.css b/assets/css/admin.css index 34343afd6f7..8b17d53e766 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -36,98 +36,96 @@ height: 1.25rem; width: 32px; width: 2rem; + background-size: contain; + background-repeat: no-repeat; } .payment-method__brand--amex { - background: no-repeat url( '../images/cards/amex.svg' ); + background-image: url( '../images/cards/amex.svg' ); } .payment-method__brand--diners { - background: no-repeat url( '../images/cards/diners.svg' ); + background-image: url( '../images/cards/diners.svg' ); } .payment-method__brand--discover { - background: no-repeat url( '../images/cards/discover.svg' ); + background-image: url( '../images/cards/discover.svg' ); } .payment-method__brand--jcb { - background: no-repeat url( '../images/cards/jcb.svg' ); + background-image: url( '../images/cards/jcb.svg' ); } .payment-method__brand--mastercard { - background: no-repeat url( '../images/cards/mastercard.svg' ); + background-image: url( '../images/cards/mastercard.svg' ); } .payment-method__brand--unionpay { - background: no-repeat url( '../images/cards/unionpay.svg' ); + background-image: url( '../images/cards/unionpay.svg' ); } .payment-method__brand--visa { - background: no-repeat url( '../images/cards/visa.svg' ); + background-image: url( '../images/cards/visa.svg' ); } .payment-method__brand--unknown { - background: no-repeat url( '../images/cards/unknown.svg' ); + background-image: url( '../images/cards/unknown.svg' ); } .payment-method__brand--giropay { - background: no-repeat url( '../images/payment-methods/giropay.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/giropay.svg' ); } .payment-method__brand--eps { - background: no-repeat url( '../images/payment-methods/eps.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/eps.svg' ); } .payment-method__brand--p24 { - background: no-repeat url( '../images/payment-methods/p24.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/p24.svg' ); } .payment-method__brand--sepa_debit { - background: no-repeat url( '../images/cards/sepa.svg' ); - background-size: contain; + background-image: url( '../images/cards/sepa.svg' ); } .payment-method__brand--sofort { - background: no-repeat url( '../images/payment-methods/sofort.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/sofort.svg' ); } .payment-method__brand--ideal { - background: no-repeat url( '../images/payment-methods/ideal.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/ideal.svg' ); } .payment-method__brand--google-pay { - background: no-repeat url( '../images/cards/google-pay.svg' ); - background-size: contain; + background-image: url( '../images/cards/google-pay.svg' ); } .payment-method__brand--apple-pay { - background: no-repeat url( '../images/cards/apple-pay.svg' ); - background-size: contain; + background-image: url( '../images/cards/apple-pay.svg' ); } .payment-method__brand--bancontact { - background: no-repeat url( '../images/payment-methods/bancontact.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/bancontact.svg' ); } .payment-method__brand--sepa_debit { - background: no-repeat url( '../images/payment-methods/sepa-debit.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/sepa-debit.svg' ); } .payment-method__brand--au_becs_debit { - background: no-repeat url( '../images/payment-methods/bank-debit.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/bank-debit.svg' ); } .payment-method__brand--link { - background: no-repeat url( '../images/payment-methods/link.svg' ); - background-size: contain; + background-image: url( '../images/payment-methods/link.svg' ); +} + +.payment-method__brand--afterpay_clearpay { + background-image: url( '../images/payment-methods/afterpay-icon.svg' ); +} + +.payment-method__brand--affirm { + background-image: url( '../images/payment-methods/affirm-icon.svg' ); } .wc_gateways tr[data-gateway_id='woocommerce_payments'] .payment-method__icon { diff --git a/assets/css/success.css b/assets/css/success.css index 5126138b10b..6d5200174b0 100644 --- a/assets/css/success.css +++ b/assets/css/success.css @@ -1,36 +1,11 @@ -.woocommerce-order .thankyou-notice-woopay { - background: #239328; - color: #fff; - padding: 12px; - padding-left: 66px; - border-radius: 2px; - border-left: 10px solid #156b14; - position: relative; -} - -.woocommerce-order .thankyou-notice-woopay::before { - content: url( '../images/check-circle.svg' ); - position: absolute; - left: 32px; - width: 24px; - top: 13px; -} - .wc-payment-gateway-method-name-woopay-wrapper { display: flex; align-items: center; + flex-wrap: wrap; + line-height: 1; } .wc-payment-gateway-method-name-woopay-wrapper img { - margin-top: 6px; - margin-right: 9px; -} - -.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details.woopay { - margin-top: -4.324325903em; -} -.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details.woopay - .woocommerce-order-overview__payment-method.method { - border-top: 1px dotted #e3e3e3; - padding-top: 1em; + margin-right: 0.5rem; + padding-top: 4px; } diff --git a/assets/images/cards/mastercard.svg b/assets/images/cards/mastercard.svg index 9e1515fb207..b77d93d3041 100644 --- a/assets/images/cards/mastercard.svg +++ b/assets/images/cards/mastercard.svg @@ -1 +1,6 @@ - + diff --git a/assets/images/cards/visa.svg b/assets/images/cards/visa.svg index 4b6f8616477..04eeda0e51e 100644 --- a/assets/images/cards/visa.svg +++ b/assets/images/cards/visa.svg @@ -1 +1,7 @@ - + diff --git a/assets/images/check-circle.svg b/assets/images/check-circle.svg deleted file mode 100644 index 5e669a389b5..00000000000 --- a/assets/images/check-circle.svg +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/assets/images/fraud-protection/discoverability-banner@2x.png b/assets/images/fraud-protection/discoverability-banner@2x.png index dc209d571f7..8228cb2812c 100644 Binary files a/assets/images/fraud-protection/discoverability-banner@2x.png and b/assets/images/fraud-protection/discoverability-banner@2x.png differ diff --git a/assets/images/illustrations/connect-hero.png b/assets/images/illustrations/connect-hero.png new file mode 100644 index 00000000000..4e062d70749 Binary files /dev/null and b/assets/images/illustrations/connect-hero.png differ diff --git a/assets/images/logo.svg b/assets/images/logo.svg index f9df57e1c2d..2e406e07269 100644 --- a/assets/images/logo.svg +++ b/assets/images/logo.svg @@ -1 +1,14 @@ - + diff --git a/assets/images/payment-methods/affirm-icon.svg b/assets/images/payment-methods/affirm-icon.svg new file mode 100644 index 00000000000..26b821a3b72 --- /dev/null +++ b/assets/images/payment-methods/affirm-icon.svg @@ -0,0 +1,13 @@ + diff --git a/assets/images/payment-methods/affirm.svg b/assets/images/payment-methods/affirm.svg new file mode 100644 index 00000000000..7ad4f7063ef --- /dev/null +++ b/assets/images/payment-methods/affirm.svg @@ -0,0 +1,16 @@ + diff --git a/assets/images/payment-methods/afterpay-icon.svg b/assets/images/payment-methods/afterpay-icon.svg new file mode 100644 index 00000000000..e0797da52ae --- /dev/null +++ b/assets/images/payment-methods/afterpay-icon.svg @@ -0,0 +1,5 @@ + diff --git a/assets/images/payment-methods/afterpay.svg b/assets/images/payment-methods/afterpay.svg new file mode 100644 index 00000000000..75cb2eda73b --- /dev/null +++ b/assets/images/payment-methods/afterpay.svg @@ -0,0 +1,18 @@ + diff --git a/assets/images/payment-methods/all_local_payments.svg b/assets/images/payment-methods/all_local_payments.svg new file mode 100644 index 00000000000..94f1b2ff2ad --- /dev/null +++ b/assets/images/payment-methods/all_local_payments.svg @@ -0,0 +1,142 @@ + diff --git a/assets/images/payment-methods/cc.svg b/assets/images/payment-methods/cc.svg index 556ef2d70c7..8c7fd884aa1 100644 --- a/assets/images/payment-methods/cc.svg +++ b/assets/images/payment-methods/cc.svg @@ -1 +1,26 @@ - + diff --git a/assets/images/payment-methods/jcb.svg b/assets/images/payment-methods/jcb.svg new file mode 100644 index 00000000000..473c198b249 --- /dev/null +++ b/assets/images/payment-methods/jcb.svg @@ -0,0 +1 @@ + diff --git a/assets/images/payment-methods/local_payments.svg b/assets/images/payment-methods/local_payments.svg new file mode 100644 index 00000000000..4b1d690585b --- /dev/null +++ b/assets/images/payment-methods/local_payments.svg @@ -0,0 +1,92 @@ + diff --git a/assets/images/payment-methods/woopay.svg b/assets/images/payment-methods/woopay.svg new file mode 100644 index 00000000000..a516fe11fd5 --- /dev/null +++ b/assets/images/payment-methods/woopay.svg @@ -0,0 +1,14 @@ + diff --git a/assets/images/subscriptions-empty-state-connected.svg b/assets/images/subscriptions-empty-state-connected.svg deleted file mode 100644 index cbd0cc3a3fd..00000000000 --- a/assets/images/subscriptions-empty-state-connected.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/bin/class-wcpay-changelog-formatter.php b/bin/class-wcpay-changelog-formatter.php index e01beccaeb5..b686cc58a2b 100644 --- a/bin/class-wcpay-changelog-formatter.php +++ b/bin/class-wcpay-changelog-formatter.php @@ -37,7 +37,7 @@ class WCPay_Changelog_Formatter extends Parser implements FormatterPlugin { * * @var string */ - private $title = '*** WooCommerce Payments Changelog ***'; + private $title = '*** WooPayments Changelog ***'; /** * Separator used in headings and change entries. diff --git a/bin/cli.sh b/bin/cli.sh new file mode 100755 index 00000000000..86d167477da --- /dev/null +++ b/bin/cli.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +first_arg=${1} +if [ "${first_arg}" = "--as-root" ]; then + user=0 + command=${@:2} +else + user=www-data + command=${@:1} +fi + +command=${command:-bash} + +docker-compose exec -u ${user} wordpress ${command} diff --git a/bin/wcpay-live-branches/wcpay-live-branches.user.js b/bin/wcpay-live-branches/wcpay-live-branches.user.js index a11ef88b261..73df0f3abca 100644 --- a/bin/wcpay-live-branches/wcpay-live-branches.user.js +++ b/bin/wcpay-live-branches/wcpay-live-branches.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name WCPay Live Branches // @namespace https://wordpress.com/ -// @version 1.1 +// @version 1.2 // @description Adds links to PRs pointing to Jurassic Ninja sites for live-testing a changeset // @grant GM_xmlhttpRequest // @connect jurassic.ninja @@ -186,6 +186,7 @@ { label: 'WooCommerce Payments Dev Tools', name: 'woocommerce-payments-dev-tools', + checked: true, }, { label: 'WooCommerce Smooth Generator', diff --git a/changelog.txt b/changelog.txt index 7eaf6fdec12..4ea06d5753b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,274 @@ -*** WooCommerce Payments Changelog *** +*** WooPayments Changelog *** + += 6.4.1 - 2023-09-06 = +* Fix - checkout processing when fields are hidden via customizer +* Fix - Potential fatal error when viewing WooCommerce home because we try to check if store has been fully onboarded but account service is not yet initialized. +* Fix - Resolved an issue with WCPay Subscription orders being set to failed during payment processing when Woo Subscriptions plugin is active. +* Fix - Use the gateway from the Checkout class in case the main registered gateway isn't initialized for some reason. +* Dev - Revert - Bump minimum required version of WooCommerce to 8.0.0 and WP to 6.1 +* Dev - Setting the minimum required version of WooCommerce back to 7.8.0 and WP to 6.0 + += 6.4.0 - 2023-08-31 = +* Add - Added the Transactions reporting endpoint +* Add - Adjust WooPay "custom message" to be reused for T&C and privacy policy +* Add - Combine Session Initialization with User Authentication on WooPay. +* Add - Enables deferred intent UPE for existing split UPE stores and newly onboarded stores. +* Add - Onboarding flow state persistence +* Fix - Adds consistent payment token labels for saved Stripe Link payment methods across my account, shortcode checkout, and blocks checkout pages. +* Fix - Adds the possibility of continuing in progress onboarding process +* Fix - Add `is_user_connected()` and `get_connected_user_data()` methods to `WC_Payments_Http_Interface` +* Fix - Display onboarding MCC field validation error +* Fix - Ensures that Stripe Link and SEPA Debit saved payment tokens are stored and validated with correct gateway IDs for relevant feature flags enabled. +* Fix - Fixes subscription renewals with the UPE enabled. +* Fix - Fix express checkout button design issues. +* Fix - Fix phone number input widget on checkout page +* Fix - Fix the WooPay logo so that it stays scaled up and visible on the WooPay button. +* Fix - Fix zero decimal currency display in order notes +* Fix - JavaScript is now correctly loaded on admin order screens when HPOS is enabled. +* Fix - Prevent displaying "Fraud protection" menu on half-onboarded stores +* Fix - Prevent fetching disputes on WooCommerce home task when store is not connected to a WooPayments account. +* Fix - Prevent Progressive Onboarding accounts from adding APMs until completing full verification. +* Fix - Provide per active discount Terms and Conditions link in the Account details card. +* Fix - Remove precision overriding in multi-currency scenarios +* Fix - Use domestic currency, instead of default deposit currency, to check if a payment method is compatible with the presentment currency in the checkout form. +* Update - BNPLs: updated methods copy on settings page +* Update - Change Payment_Intent_Status to Intent_Status +* Update - Improve `Chip` component styles to with improved visual design and accessible contrast ratios. +* Update - Removed wcpay_empty_state_preview_mode_v5 experiment code +* Update - Set WooPay button default enabled for product/cart/checkout pages +* Update - Updated copy for credit and debit card in settings +* Update - Updated payment method tooltip in settings so that it is rendered correctly in mobile view +* Update - Updated section "Payment Methods" in page "Settings" for mobile view +* Update - Update express checkouts section in settings for mobile view +* Update - Update tooltip styles to improve readability of interactive tooltip content. +* Dev - Adding dispute object to DisputeDetails component +* Dev - Adding HooksProxy and LegacyProxy to src, used to access code outside of it (hooks, globals, functions, and static methods). +* Dev - Adding Psalm checks to function calls within `src`. +* Dev - Add interface and concrete classes for Payment Method (project reengineering payment process). +* Dev - Add LegacyContainer to `src` to allow loading classes from `includes`. +* Dev - Add TypeScript development guidelines +* Dev - Bump minimum required version of WooCommerce to 8.0.0 and WP to 6.1 +* Dev - Fixing a mistake in the doc regarding the customer service. +* Dev - Fix Tracks to record checkout view on all stores +* Dev - Ignore updating currency precision if the country is Japan +* Dev - Move Multi-Currency Order Meta Helper functionality behind url param. +* Dev - Refactor the deposit status UI element to use the `Chip` component. +* Dev - Track WooPay Save My Info checkbox usage + += 6.3.2 - 2023-08-17 = +* Fix - Revert fix WooPay Session Handler in Store API requests. + += 6.3.1 - 2023-08-14 = +* Fix - Fix AutomateWoo error on WooPay redirection. +* Fix - Fix WooPay Session Handler in Store API requests. + += 6.3.0 - 2023-08-09 = +* Add - Add constant flag to use the new payment service (project reengineering payment process). +* Add - Add JCB payment method coming soon notice +* Add - Add payment service class (project reengineering payment process). +* Add - Adds integration for Stripe Link while using split UPE with deferred intent creation. +* Add - Add support for Japan +* Add - Add support for the Enabled status from Stripe (will replace Restricted Soon in the case where there is no active deadline). +* Add - Add support for United Arab Emirates +* Add - Add Tracks events around account connect when promo is active. +* Add - Add warning to the advanced settings page for WooPay incompatible extensions +* Add - Add WooPay Gift Cards support. +* Add - Add WooPay on onboarding payment methods. +* Add - Add WooPay Points and Rewards support +* Add - Allow WooPay verified email requests +* Add - Ensure WooPay compatibility with the split UPE that has deferred intent creation implementation. +* Add - Include WooPay merchant terms on WooCommerce Payment Methods settings. +* Add - Prefill the Business Name and Country fields during WooPayments KYC. +* Fix - Adding more descriptive error messages in gradual signup +* Fix - Allow card gateway to load properly with WooPay enabled and subscription item in the cart. +* Fix - Allow only domestic payments for BNPL payment methods +* Fix - Allow only Japanese phone numbers for Japanese accounts +* Fix - Avoid creating duplicate paid orders from a single payment intent. +* Fix - Disputes listing column renamed to Respond by and will show empty when dispute does not need response or if respond by date has passed. +* Fix - Enable customers who have migrated a WCPay subscription to a tokenised subscription to pay for existing failed orders. +* Fix - Fatal error when using latest MailPoet with WooPay +* Fix - Fixed the creation of the nonce that is sent to WooPay +* Fix - Fix error while selecting product variations. Make the stripe payment messaging element load only if at least one BNPL method is active. +* Fix - Fix extra requests when clicking WooPay express checkout button. +* Fix - Fix Fraud and Risk Tools welcome tour to only show if Fraud and Risk banner learn more button is clicked and tour not previously dismissed. +* Fix - Get WooPay adapted extensions from server +* Fix - Highlight menu item when transaction details, deposit details, and disputes details page are opened. +* Fix - Improve split UPE support of WooPay with multiple payment methods enabled. +* Fix - Minor copy changes on the Set Up Real Payments modal. +* Fix - Remove daily deposits for JP merchants as it's not permitted by our payment processor +* Fix - Reverting change to the plugin name because of compatibility with iOS app. +* Fix - Send correct shipping address to Afterpay in Classic Checkout +* Fix - Send shipping address correctly to Afterpay in block checkout, when separate billing address is provided. +* Fix - Update excerpt in readme.txt to improve ranking +* Fix - Visual fixes for the Connect page hero. +* Update - Allows nulls in min/max payment ranges definitions for UPE payment methods +* Update - Minor copy fixes on the onboarding form. +* Update - Modify 'Contact WooCommerce Support' badge located on the 'Payments accepted on checkout' section of Payments > Settings. +* Update - Only show the post-onboarding congratulations message if user did not onboard in test mode. +* Update - Unify payment method icon design +* Dev - Add a dependency container for the new src directory. +* Dev - Add generic Get_Request class, and migrate current simple requests to use it +* Dev - Add PSR-4 autoloading for the src directory. +* Dev - Add unit tests to cover WooPay button eligibility. +* Dev - Add webpack script to generate RTL .css files and enqueue it for RTL languages +* Dev - Adjust coding standards to align with WC Core. +* Dev - Avoiding product-service exceptions during checkout, making debugging easier. +* Dev - Fix Husky post-merge script to conform to `sh` syntax +* Dev - Ignore updating currency precision if the country is Japan +* Dev - Introduce model class WC_Payments_API_Setup_Intention for setup intents +* Dev - Migrate certain WCPay shopper tracks to use wcpay prefix +* Dev - Migrate Chip component to TypeScript to improve code quality. +* Dev - Migrate DisputeStatusChip comp to TypeScript to improve code quality. +* Dev - Pass tracks identity to WooPay iframe +* Dev - Pass Tracks identity to WooPay to improve telemetry + += 6.2.2 - 2023-08-01 = +* Fix - Move the email title hook from the UPE class to the parent legacy gateway class, to avoid multiple callback invocations for the split UPE + += 6.2.1 - 2023-07-31 = +* Fix - Enhance query parameters validation in redirected requests. + += 6.2.0 - 2023-07-19 = +* Add - Add Android option in Device type advanced filter +* Add - Add dispute notice to the WooCommerce order screen to highlight disputes awaiting a response. +* Add - Added flag to allow us to remotely set if WooPay should be enabled or not for new merchants. +* Add - Add tooltip and ARIA labels to payment method logos in transaction list +* Add - Check for invalid extensions when one is activated or deactivated. +* Add - Make Affirm and Afterpay Stripe messaging show up correctly for variable products, especially when we change variations. +* Add - Prefill the store URL on the new Onboarding Form. +* Add - Sending preloaded_requests to WooPay to avoid waiting for external requests +* Fix - Add array_filter callback method +* Fix - Added logic to check if the recurring cart array is present before displaying the recurring totals section in the cart. +* Fix - Allow webhooks without livemode to be received. +* Fix - Ensure when a customer changes the shipping method on cart and checkout that the recurring totals correctly reflect the chosen method. +* Fix - Fix a fatal error on sites using WC Subscriptions versions below 4.0.0 +* Fix - Fix Country informed as empty for logged-out user in the BNPL site messaging configuration. +* Fix - Fixed typo in businessInfo strings in strings.tsx file +* Fix - Fix fatal errors when get_product method returns null +* Fix - Fix incorrect channel value in transaction description screen for Tap to Pay for Android transactions +* Fix - Fix issue where subscription signup fees are not converted correctly with Multi-Currency. +* Fix - Fix outdated documentation links. +* Fix - Fix Save my info section style when Payment options is not numbered. +* Fix - Remove duplicated payment method on thank you page when using WooPay. +* Fix - Resolve an issue that prevented the "Used for variations" checkbox from being enabled on the variable subscription product edit screen on WC version v7.9.0. +* Fix - Resolved an issue that caused the payment type metadata to not be included in payment requests. +* Fix - Resolved errors that occurred when activating the WC Subscriptions plugin via bulk action on the WP plugins screen or updating the plugin via the WooCommerce Extensions screen. +* Fix - Restore removed condition after naming convention. +* Fix - Reverting change to the plugin name because of compatibility with iOS app. +* Fix - When HPOS is enabled, permanently deleting a subscription related order wasn't updating the related orders cache properly. +* Fix - Wrap list of payment method logos on next line +* Update - Add incentive cache invalidation based on store context hash. +* Update - Another chunk of branding rollout: update wordpress.org assets +* Update - Check WCPay Subscriptions eligibility after store completes WooCommerce onboarding wizard. +* Update - Confirm subscription being switched is owned by customer before trying to possibly use its currency to prevent error. +* Update - Highlight the active dispute task if disputes are due within 72 hours. +* Update - Improve disputes list page by hiding the "Disputed on" column by default, add an "Action" column with clear call to action button, highlight urgent disputes' due dates, and color code disputes' statuses. +* Update - Mark an expired uncaptured order as 'Failed" instead of 'Canceled' +* Update - Refactoring and cleanup of code +* Update - Remove the Remind Me Later option from the Fraud and Risk Tools discoverability banner. +* Update - Remove WooCommerce Payments from taking over the WC core settings page +* Update - Simplify the active dispute task title when disputes are for multiple currencies to improve readability. +* Update - Update WooCommerce Payments to WooPayments across the plugin +* Update - WC Payments inbuilt subscriptions functionality is no longer enabled by default for eligible US based stores. +* Dev - Add E2E tests for Fraud & Risk tools. +* Dev - Adding a tracking property to record whether user went through the new onboarding UX or not. +* Dev - Add tool to allow merchants to fix Multi-Currency exchange rates in orders. +* Dev - Affirm&Afterpay: add new test cases to ensure the method availability on checkout +* Dev - Affirm&Afterpay: refactor subscription products detection by using existing subs API +* Dev - Extracting functionality for preventing duplicate payments into a service. +* Dev - Fix tests by ensuring the rest_pre_dispatch filter returns a WP_REST_Response +* Dev - Migrate `HorizontalList` component to TS +* Dev - Removed an old flag for a feature which is now enabled for old users. Some refactoring of the task lists code (no impact on functionality). +* Dev - Remove FRT E2E tests. +* Dev - Update subscriptions-core to 6.0.0. + += 6.1.1 - 2023-06-29 = +* Fix - Fix syntax for advanced filters in WC 7.8 and over + += 6.1.0 - 2023-06-28 = +* Add - Add additional validation in VAT controller. +* Add - Add Affirm and Afterpay to checkout block. +* Add - Add Affirm and Afterpay to classic checkout. +* Add - Add BNPL messaging to the product details page via Stripe Payment Method Messaging Element. +* Add - Added a check to disable WooPay in case incompatible extensions are found. +* Add - Adds implementation to handle deferred intent for the UPE in My account page. +* Add - Adds support for UPE with deferred intent creation on the Blocks checkout page. +* Add - Add Tap to Pay device type filter on transactions list page. +* Add - Add usage tracking to WooPay express button location updates. +* Add - Affirm and Afterpay logo support in transactions listing and transaction details. +* Add - Connect page incentive for eligible merchants. +* Add - Deposit schedule changes are disabled when an account has restrictions on it. +* Add - Ensure Affirm and Afterpay available on checkout only when the payment is in expected range. +* Add - Improve the wording and style of the "Active Disputes" task list item on the Payments → Overview screen to better communicate the urgency of resolving these disputes. +* Add - Links in subscription deactivation modal open in a new tab. +* Add - Show checkbox options for Affirm and Afterpay BNPL payment options. +* Add - Update Affirm & Afterpay logos with border and icon images. +* Add - Check for invalid extensions when one is activated or deactivated. +* Fix - Add deadline and amount to clarify disputed order note. +* Fix - Affirm&Afterpay: do not show messaging element for subscription products. +* Fix - Allow `card_` prefix when validating payment method IDs to fix failing subscription renewals. +* Fix - Check that a currency is available before adding it to the current currencies. Minor admin text string updates. Minor refactoring of MultiCurrency/RestController class. +* Fix - Corrected bug where checkbox could not be enabled when credit card was disabled. +* Fix - Fixed payment intents still getting confirmed on UPE when intent update fails. +* Fix - Fix untranslated strings on the checkout page. +* Fix - Fraudulent disputes will now show as Transaction unauthorized. +* Fix - Hide Google Pay and Apple Pay buttons when total amount is zero on item details, cart, and checkout pages. +* Fix - Improved user experience on onboarding form when validating fields if Enter key is pressed. +* Fix - Improve the logic which determines if a user is activating the WC Subscriptions plugin when determining the need to load built-in subscriptions functionality. +* Fix - Move WP hooks registration out of the core classes' constructors. +* Fix - Remove all actions on preflight check. +* Fix - Show descriptive dispute reasons in order notes. +* Fix - Updated correct link for request classes docs. +* Fix - Uses correct payment method title in order confirmation emails. +* Update - Display the "Active Disputes" task list item on the Payments → Overview screen only if there are disputes due within seven days. +* Update - Improve copy in Subscriptions deactivation modal. +* Update - Improve the wording of the "Active Disputes" task list item on the WooCommerce → Home screen to better communicate the urgency of resolving these disputes. +* Update - Moved the overview task list to the welcome greeting to improve visibility of important tasks. +* Update - Update the design for UPE settings block. +* Dev - Add support for Czech Republic, Hungary, and Sweden. +* Dev - Bump minimum required version of WooCommerce to 7.8.0. +* Dev - Comment: Add script to run QIT security tests locally. +* Dev - Gracefully handle missing payment method constants. +* Dev - minor refactor from js to tsx. +* Dev - minor tsx refactor. +* Dev - Tracking events for BNPL payment methods. + += 6.0.0 - 2023-06-08 = +* Add - Show Progressive Onboarding Express using Explat experiment +* Fix - Add a session check to avoid fatal errors. +* Fix - Add error notice when using ISK with decimals +* Fix - Adjust style of deposits icon and text in account details for progressive accounts +* Fix - Disabled subscription-related actions, webhooks, and invoice services on staging sites to avoid unintended interactions with the server and live site. +* Fix - Ensures 3DS authenticated payment methods can be saved and reused with deferred intent UPE. +* Fix - Ensures WCPay is present as default gateway on WC Settings screen when split UPE is enabled. +* Fix - Fix account status chip from restricted to pending for PO accounts +* Fix - Fixes pay for order page functionality in split and deferred intent UPE. +* Fix - Fix for PO eligible request +* Fix - Fix fraud and risk tools welcome tour copy to remove mentions of risk review. +* Fix - Fix incorrectly labelled card gateway for the enabled deferred intent creation UPE +* Fix - Fix single currency settings conversion preview for zero decimal currencies +* Fix - Fix to an API route for Progressive Onboarding feature which was previously only used in development environment. +* Fix - Just a few CSS updates for WooPay buttons. +* Fix - Progressive onboarding design fixes +* Fix - Resolves issue with multiple charge attempts during manual capture with UPE. +* Fix - Show setup deposits task for PO accounts without sales and right after acount creation +* Update - Connect account page design. +* Update - Pass the setup mode selected during Progressive Onboarding to the server onboarding init. +* Update - Update @wordpress/components to v19.8.5 +* Dev - Behind progressive onboarding feature flag – Stardardize and send PO collected merchant info to server. +* Dev - Fixes intermittently failing UPE E2E tests. +* Dev - Fix failing e2e shopper test - WC Beta +* Dev - Migrate DepositsStatus and PaymentsStatus components to Typescript +* Dev - Remove fraud and risk tools feature flag checks and tests +* Dev - Skip failing E2E refund tests. +* Dev - Tracking for account balance section on the Payments > Overview page. +* Dev - Update @woocommerce/components to v12.0.0 + += 5.9.1 - 2023-06-05 = +* Fix - Improve validation of WC analytics query filters +* Fix - Improved validation of the order key arg when redirecting to subscription's change payment method URL. +* Fix - Resolved an issue with customers being redirected to an incorrect Pay for Order URL after login. +* Dev - Update subscriptions-core to 5.7.2 = 5.9.0 - 2023-05-17 = * Add - Adds the minimal functionality for the new Stripe payment flow that allows deferred payment/setup intent creation. The functionality is hidden behind the feature flag. diff --git a/changelog/5749-Remove-feature-flag-and-old-UI-code-for-simplify-deposits-UI b/changelog/5749-Remove-feature-flag-and-old-UI-code-for-simplify-deposits-UI deleted file mode 100644 index 5dae238eff9..00000000000 --- a/changelog/5749-Remove-feature-flag-and-old-UI-code-for-simplify-deposits-UI +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Remove the `simplifyDepositsUi` feature flag and legacy deposits UI code. diff --git a/changelog/6814-has-multi-currency-orders-query-improvement b/changelog/6814-has-multi-currency-orders-query-improvement new file mode 100644 index 00000000000..dc97afed7df --- /dev/null +++ b/changelog/6814-has-multi-currency-orders-query-improvement @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +Enhanced Analytics SQL, added unit test for has_multi_currency_orders(). Improved code quality and test coverage. diff --git a/changelog/6852-get_all_customer_currencies_improvement b/changelog/6852-get_all_customer_currencies_improvement new file mode 100644 index 00000000000..09be89d6180 --- /dev/null +++ b/changelog/6852-get_all_customer_currencies_improvement @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +Improved `get_all_customer_currencies` method to retrieve existing order currencies faster. diff --git a/changelog/add-5669-add-further-payment-metadata b/changelog/add-5669-add-further-payment-metadata new file mode 100644 index 00000000000..347c49daf22 --- /dev/null +++ b/changelog/add-5669-add-further-payment-metadata @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Added additional meta data to payment requests diff --git a/changelog/add-5880-track-overview-balance b/changelog/add-5880-track-overview-balance deleted file mode 100644 index 6014997107b..00000000000 --- a/changelog/add-5880-track-overview-balance +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Tracking for account balance section on the Payments > Overview page. diff --git a/changelog/add-5885-deposit-detail-tracking b/changelog/add-5885-deposit-detail-tracking deleted file mode 100644 index 7fd21e8fdf7..00000000000 --- a/changelog/add-5885-deposit-detail-tracking +++ /dev/null @@ -1,3 +0,0 @@ -Significance: patch -Type: dev -Comment: Adding tracks event when downloading deposit transactions diff --git a/changelog/add-5928-po-express-explat-experiment b/changelog/add-5928-po-express-explat-experiment deleted file mode 100644 index abc88cb3f81..00000000000 --- a/changelog/add-5928-po-express-explat-experiment +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: add - -Show Progressive Onboarding Express using Explat experiment diff --git a/changelog/add-6034-feature-flag-bnlp b/changelog/add-6034-feature-flag-bnlp deleted file mode 100644 index bdbb557ddf5..00000000000 --- a/changelog/add-6034-feature-flag-bnlp +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: This merge is a feature flog utilities that will be made available for masses only in later stages of the project - - diff --git a/changelog/add-6158-progressive-onboarding-feedback b/changelog/add-6158-progressive-onboarding-feedback deleted file mode 100644 index ef00aec5eab..00000000000 --- a/changelog/add-6158-progressive-onboarding-feedback +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Progressive onboarding design fixes diff --git a/changelog/add-6429-warn-about-dev-mode-on-new-onboarding b/changelog/add-6429-warn-about-dev-mode-on-new-onboarding new file mode 100644 index 00000000000..386c3f79ba7 --- /dev/null +++ b/changelog/add-6429-warn-about-dev-mode-on-new-onboarding @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Warn about dev mode enabled on new onboarding flow choice diff --git a/changelog/add-6874-add-kanji-kana b/changelog/add-6874-add-kanji-kana new file mode 100644 index 00000000000..ecd1574347c --- /dev/null +++ b/changelog/add-6874-add-kanji-kana @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Support kanji and kana statement descriptors for Japanese merchants diff --git a/changelog/add-6923-dispute-details-notice b/changelog/add-6923-dispute-details-notice new file mode 100644 index 00000000000..027a1fa2448 --- /dev/null +++ b/changelog/add-6923-dispute-details-notice @@ -0,0 +1,3 @@ +Significance: patch +Type: add +Comment: Dispute notice added to transactions screen behind a feature flag. diff --git a/changelog/add-6924-dispute-details-attributes b/changelog/add-6924-dispute-details-attributes new file mode 100644 index 00000000000..0e2dfaa37d9 --- /dev/null +++ b/changelog/add-6924-dispute-details-attributes @@ -0,0 +1,5 @@ +Significance: patch +Type: add +Comment: Add dispute details to transaction page, hidden behind feature flag. + + diff --git a/changelog/add-6966-transaction-details-dispute-challenge-in-progress-notice b/changelog/add-6966-transaction-details-dispute-challenge-in-progress-notice new file mode 100644 index 00000000000..3b03ed5b61e --- /dev/null +++ b/changelog/add-6966-transaction-details-dispute-challenge-in-progress-notice @@ -0,0 +1,5 @@ +Significance: patch +Type: add +Comment: Behind feature flag: add staged dispute notice to Transaction Details screen + + diff --git a/changelog/add-7048-banner-notice-component b/changelog/add-7048-banner-notice-component new file mode 100644 index 00000000000..f9ccb0504d8 --- /dev/null +++ b/changelog/add-7048-banner-notice-component @@ -0,0 +1,5 @@ +Significance: patch +Type: add +Comment: Add BannerNotice component, with no major UI difference for merchants. + + diff --git a/changelog/add-frt-review-feature-flag b/changelog/add-frt-review-feature-flag deleted file mode 100644 index 1245fe44c18..00000000000 --- a/changelog/add-frt-review-feature-flag +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: This will be updated later. - - diff --git a/changelog/add-incentive-task-badge b/changelog/add-incentive-task-badge new file mode 100644 index 00000000000..f2a30452565 --- /dev/null +++ b/changelog/add-incentive-task-badge @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Add onboarding task incentive badge. diff --git a/changelog/add-new-fraud-tools b/changelog/add-new-fraud-tools deleted file mode 100644 index 58df4dbbbb8..00000000000 --- a/changelog/add-new-fraud-tools +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Enhanced fraud protection for your store. Reduce fraudulent transactions by using a set of customizable rules. diff --git a/changelog/add-pay-for-order b/changelog/add-pay-for-order new file mode 100644 index 00000000000..b44cf523113 --- /dev/null +++ b/changelog/add-pay-for-order @@ -0,0 +1,4 @@ +Significance: patch +Type: add + +Add the express button on the pay for order page diff --git a/changelog/add-s2939-store-onboarding-collected-data b/changelog/add-s2939-store-onboarding-collected-data deleted file mode 100644 index ad986b3c7bd..00000000000 --- a/changelog/add-s2939-store-onboarding-collected-data +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Behind progressive onboarding feature flag – Stardardize and send PO collected merchant info to server. diff --git a/changelog/add-use-site-logo-when-no-woopay-logo-defined b/changelog/add-use-site-logo-when-no-woopay-logo-defined new file mode 100644 index 00000000000..0afbfccf655 --- /dev/null +++ b/changelog/add-use-site-logo-when-no-woopay-logo-defined @@ -0,0 +1,4 @@ +Significance: patch +Type: add + +Fall back to site logo when a custom WooPay logo has not been defined diff --git a/changelog/deferred-upe-rollout-notices b/changelog/deferred-upe-rollout-notices new file mode 100644 index 00000000000..231d4bb7942 --- /dev/null +++ b/changelog/deferred-upe-rollout-notices @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +Add notice for legacy UPE users about deferred UPE upcoming, and adjust wording for non-UPE users diff --git a/changelog/dev-6311-automatically-update-wcpay-dev-tools b/changelog/dev-6311-automatically-update-wcpay-dev-tools deleted file mode 100644 index e6519aa2963..00000000000 --- a/changelog/dev-6311-automatically-update-wcpay-dev-tools +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: We auto-update the local dev clone of WCPay Dev Tools. - - diff --git a/changelog/dev-6314-fix-instant-deposits-unused-var b/changelog/dev-6314-fix-instant-deposits-unused-var deleted file mode 100644 index 7e9dda52156..00000000000 --- a/changelog/dev-6314-fix-instant-deposits-unused-var +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: No changelog required, a very minor fix for a linting issue, not user-facing - - diff --git a/changelog/dev-6441-inbox-notifications-update b/changelog/dev-6441-inbox-notifications-update new file mode 100644 index 00000000000..b93787b65af --- /dev/null +++ b/changelog/dev-6441-inbox-notifications-update @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Update inbox note logic to prevent prompt to set up payment methods from showing on not fully onboarded account. diff --git a/changelog/dev-6779-po-new-task b/changelog/dev-6779-po-new-task new file mode 100644 index 00000000000..c49c78654fa --- /dev/null +++ b/changelog/dev-6779-po-new-task @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Add a new task prompt to set up APMs after onboarding. Fixed an issue where a notice would show up in some unintended circumstances on the APM setup. diff --git a/changelog/fix-5884-deposits-list-tracks b/changelog/dev-add-cli-command similarity index 50% rename from changelog/fix-5884-deposits-list-tracks rename to changelog/dev-add-cli-command index 3ec015ea22f..4451c5b4326 100644 --- a/changelog/fix-5884-deposits-list-tracks +++ b/changelog/dev-add-cli-command @@ -1,5 +1,5 @@ Significance: patch Type: dev -Comment: covered by PR #6188 +Comment: It is only dev-facing. diff --git a/changelog/dev-add-dispute-summary-row-tests b/changelog/dev-add-dispute-summary-row-tests new file mode 100644 index 00000000000..1aba1754bb0 --- /dev/null +++ b/changelog/dev-add-dispute-summary-row-tests @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: Not user-facing: updates tests for DisputeDetails component only. + + diff --git a/changelog/dev-bump-min-wc-8-1-php-7-4 b/changelog/dev-bump-min-wc-8-1-php-7-4 new file mode 100644 index 00000000000..989290fa6f3 --- /dev/null +++ b/changelog/dev-bump-min-wc-8-1-php-7-4 @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Bump minimum required version of WooCommerce to 7.7 and PHP to 7.4. diff --git a/changelog/dev-details-link-ts-migration b/changelog/dev-details-link-ts-migration new file mode 100644 index 00000000000..daaa601b05b --- /dev/null +++ b/changelog/dev-details-link-ts-migration @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Migrate DetailsLink component to TypeScript to improve code quality diff --git a/changelog/dev-fix-po-eligible-route b/changelog/dev-fix-po-eligible-route deleted file mode 100644 index 6e192190665..00000000000 --- a/changelog/dev-fix-po-eligible-route +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix to an API route for Progressive Onboarding feature which was previously only used in development environment. diff --git a/changelog/dev-overview-balance-card-welcome-split b/changelog/dev-overview-balance-card-welcome-split deleted file mode 100644 index b10c0354ed9..00000000000 --- a/changelog/dev-overview-balance-card-welcome-split +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: No changelog required: insignificant change, preparation for a future user-facing change. - - diff --git a/changelog/dev-remove-v1-experiment b/changelog/dev-remove-v1-experiment new file mode 100644 index 00000000000..f4d0231167e --- /dev/null +++ b/changelog/dev-remove-v1-experiment @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +Remove reference to old experiment. diff --git a/changelog/dev-skip-merchant-failing-e2e-tests b/changelog/dev-skip-merchant-failing-e2e-tests deleted file mode 100644 index eae639e2879..00000000000 --- a/changelog/dev-skip-merchant-failing-e2e-tests +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Skip failing E2E refund tests. diff --git a/changelog/dev-ubuntu-workflow b/changelog/dev-ubuntu-workflow new file mode 100644 index 00000000000..79c42cc4fc7 --- /dev/null +++ b/changelog/dev-ubuntu-workflow @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Comment: Update occurence of all ubuntu versions to ubuntu-latest diff --git a/changelog/dev-update-dependencies-doc b/changelog/dev-update-dependencies-doc deleted file mode 100644 index 45c91a8bf9f..00000000000 --- a/changelog/dev-update-dependencies-doc +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Clean up the dependencies doc - - diff --git a/changelog/dev-update-pre-release-workflow b/changelog/dev-update-pre-release-workflow deleted file mode 100644 index edee13dbd32..00000000000 --- a/changelog/dev-update-pre-release-workflow +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Minor adjustement to the create-pre-release workflow - - diff --git a/changelog/dev-update-workflows b/changelog/dev-update-workflows new file mode 100644 index 00000000000..cdab2b4fa9f --- /dev/null +++ b/changelog/dev-update-workflows @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Comment: Update GH workflows to use PHP version from plugin file. diff --git a/changelog/fix-3379-remove-review-from-frt-tour-copy b/changelog/fix-3379-remove-review-from-frt-tour-copy deleted file mode 100644 index 4364edff069..00000000000 --- a/changelog/fix-3379-remove-review-from-frt-tour-copy +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Fix fraud and risk tools welcome tour copy to remove mentions of risk review. diff --git a/changelog/fix-4528-wrong-multi-currency-preview-for-zero-decimal-currencies b/changelog/fix-4528-wrong-multi-currency-preview-for-zero-decimal-currencies deleted file mode 100644 index 409ae3ffda6..00000000000 --- a/changelog/fix-4528-wrong-multi-currency-preview-for-zero-decimal-currencies +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix single currency settings conversion preview for zero decimal currencies diff --git a/changelog/fix-5025-3ds-auth-checkout b/changelog/fix-5025-3ds-auth-checkout deleted file mode 100644 index 6364b0ec378..00000000000 --- a/changelog/fix-5025-3ds-auth-checkout +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Ensures 3DS authenticated payment methods can be saved and reused with deferred intent UPE. diff --git a/changelog/fix-5507-block-currency-update-on-sub-switch b/changelog/fix-5507-block-currency-update-on-sub-switch new file mode 100644 index 00000000000..9fd0d5e5019 --- /dev/null +++ b/changelog/fix-5507-block-currency-update-on-sub-switch @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Refactor Woo Subscriptions compatibility to fix currency being able to be updated during renewals, resubscribes, or switches. diff --git a/changelog/fix-5780-multiple-manual-captures-with-upe b/changelog/fix-5780-multiple-manual-captures-with-upe deleted file mode 100644 index af0717ce68a..00000000000 --- a/changelog/fix-5780-multiple-manual-captures-with-upe +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Resolves issue with multiple charge attempts during manual capture with UPE. diff --git a/changelog/fix-5808-upe-pay-for-order-page b/changelog/fix-5808-upe-pay-for-order-page deleted file mode 100644 index ce2fe9a1cb0..00000000000 --- a/changelog/fix-5808-upe-pay-for-order-page +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixes pay for order page functionality in split and deferred intent UPE. diff --git a/changelog/fix-6053-overview-deposit-tooltip-keyboard-navigation b/changelog/fix-6053-overview-deposit-tooltip-keyboard-navigation deleted file mode 100644 index 014e9318829..00000000000 --- a/changelog/fix-6053-overview-deposit-tooltip-keyboard-navigation +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix keyboard navigation for account balance tooltips on the Payments → Overview screen. diff --git a/changelog/fix-6183-exchange-date b/changelog/fix-6183-exchange-date new file mode 100644 index 00000000000..240f51b7e1a --- /dev/null +++ b/changelog/fix-6183-exchange-date @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix Multi-currency exchange rate date format when using custom date or time settings. diff --git a/changelog/fix-6192-currency-switcher-block-on-windows b/changelog/fix-6192-currency-switcher-block-on-windows new file mode 100644 index 00000000000..ba18cbf9042 --- /dev/null +++ b/changelog/fix-6192-currency-switcher-block-on-windows @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix Currency Switcher Block flag rendering on Windows platform. diff --git a/changelog/fix-6208-fatal-due-to-null-session b/changelog/fix-6208-fatal-due-to-null-session deleted file mode 100644 index b4442f65dc9..00000000000 --- a/changelog/fix-6208-fatal-due-to-null-session +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Add a session check to avoid fatal errors. diff --git a/changelog/fix-6230-prevent-redundant-checkout-error b/changelog/fix-6230-prevent-redundant-checkout-error deleted file mode 100644 index 6c32b6bbccf..00000000000 --- a/changelog/fix-6230-prevent-redundant-checkout-error +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Small bug fix pertaining only to upe deferred intent work, behind feature flag that hasn't yet been enabled. - - diff --git a/changelog/fix-6232 b/changelog/fix-6232 deleted file mode 100644 index c8d5c263355..00000000000 --- a/changelog/fix-6232 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Add error notice when using ISK with decimals diff --git a/changelog/fix-6279-show-wcpay-on-main-settings-screen b/changelog/fix-6279-show-wcpay-on-main-settings-screen deleted file mode 100644 index 0032548c6d6..00000000000 --- a/changelog/fix-6279-show-wcpay-on-main-settings-screen +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Ensures WCPay is present as default gateway on WC Settings screen when split UPE is enabled. diff --git a/changelog/fix-6298-remove-prototype-mention b/changelog/fix-6298-remove-prototype-mention deleted file mode 100644 index b6d6f6f4a59..00000000000 --- a/changelog/fix-6298-remove-prototype-mention +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update -Comment: Minimal change to remove a mention to the past prototype - - diff --git a/changelog/fix-6322-update-upe-e2e-tests b/changelog/fix-6322-update-upe-e2e-tests deleted file mode 100644 index e01d7b89ecf..00000000000 --- a/changelog/fix-6322-update-upe-e2e-tests +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Fixes intermittently failing UPE E2E tests. diff --git a/changelog/fix-6429-follow-up-fix b/changelog/fix-6429-follow-up-fix new file mode 100644 index 00000000000..426b76ace57 --- /dev/null +++ b/changelog/fix-6429-follow-up-fix @@ -0,0 +1,5 @@ +Significance: patch +Type: fix +Comment: Warn about dev mode roll back to inline notice + + diff --git a/changelog/fix-6633-sar-aed-currencies-formatting b/changelog/fix-6633-sar-aed-currencies-formatting new file mode 100644 index 00000000000..160ef981508 --- /dev/null +++ b/changelog/fix-6633-sar-aed-currencies-formatting @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fixes the currency formatting for AED and SAR currencies. diff --git a/changelog/fix-6951-validate-set-title-for-email b/changelog/fix-6951-validate-set-title-for-email new file mode 100644 index 00000000000..8b2a138daf0 --- /dev/null +++ b/changelog/fix-6951-validate-set-title-for-email @@ -0,0 +1,5 @@ +Significance: patch +Type: fix +Comment: Minor bug fix only adding a defensive check + + diff --git a/changelog/fix-6981-missing-onboarding-field-data b/changelog/fix-6981-missing-onboarding-field-data new file mode 100644 index 00000000000..d8170c0d31d --- /dev/null +++ b/changelog/fix-6981-missing-onboarding-field-data @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Avoid empty fields in new onboarding flow diff --git a/changelog/fix-7061-extended-requests b/changelog/fix-7061-extended-requests new file mode 100644 index 00000000000..1c62343b3c8 --- /dev/null +++ b/changelog/fix-7061-extended-requests @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Allow request classes to be extended more than once. diff --git a/changelog/fix-7067-admin-enqueue-scripts-priority b/changelog/fix-7067-admin-enqueue-scripts-priority new file mode 100644 index 00000000000..d23c2da6dd7 --- /dev/null +++ b/changelog/fix-7067-admin-enqueue-scripts-priority @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Increase admin enqueue scripts priority to avoid compatibility issues with WooCommerce Beta Tester plugin. diff --git a/changelog/fix-7135-currency-switch-widget-on-edit-post b/changelog/fix-7135-currency-switch-widget-on-edit-post new file mode 100644 index 00000000000..357711e2484 --- /dev/null +++ b/changelog/fix-7135-currency-switch-widget-on-edit-post @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix Multicurrency widget error on post/page edit screen diff --git a/changelog/fix-7149-fix-cancel-authorization-flaky-error-response b/changelog/fix-7149-fix-cancel-authorization-flaky-error-response new file mode 100644 index 00000000000..27cbbbbeea7 --- /dev/null +++ b/changelog/fix-7149-fix-cancel-authorization-flaky-error-response @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Corrected an issue causing incorrect responses at the cancel authorization API endpoint. diff --git a/changelog/fix-changelog-from-pr-6225 b/changelog/fix-changelog-from-pr-6225 deleted file mode 100644 index b0dc8af92d8..00000000000 --- a/changelog/fix-changelog-from-pr-6225 +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: No need changelog entry. - - diff --git a/changelog/fix-deprecation-warning-on-blocks-checkout b/changelog/fix-deprecation-warning-on-blocks-checkout new file mode 100644 index 00000000000..ae1241fc85a --- /dev/null +++ b/changelog/fix-deprecation-warning-on-blocks-checkout @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Fix deprecation warnings on blocks checkout. diff --git a/changelog/fix-docs-links-part-2 b/changelog/fix-docs-links-part-2 new file mode 100644 index 00000000000..6f30cc936c2 --- /dev/null +++ b/changelog/fix-docs-links-part-2 @@ -0,0 +1,4 @@ +Significance: patch +Type: update + +Update outdated public documentation links on WooCommerce.com diff --git a/changelog/fix-improve-transaction-details-redirect b/changelog/fix-improve-transaction-details-redirect new file mode 100644 index 00000000000..d61f18b2f6c --- /dev/null +++ b/changelog/fix-improve-transaction-details-redirect @@ -0,0 +1,4 @@ +Significance: patch +Type: update + +Improve the transaction details redirect user-experience by using client-side routing. diff --git a/changelog/fix-incorrectly-labelled-gateway-deferred-intent-upe b/changelog/fix-incorrectly-labelled-gateway-deferred-intent-upe deleted file mode 100644 index 49d29c4cb1b..00000000000 --- a/changelog/fix-incorrectly-labelled-gateway-deferred-intent-upe +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix incorrectly labelled card gateway for the enabled deferred intent creation UPE diff --git a/changelog/fix-invalid-currency-from-store-api-request b/changelog/fix-invalid-currency-from-store-api-request new file mode 100644 index 00000000000..38f9ee6bc4b --- /dev/null +++ b/changelog/fix-invalid-currency-from-store-api-request @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Fix WooPay Session Handler in Store API requests. diff --git a/changelog/fix-plugin-upgrade b/changelog/fix-plugin-upgrade deleted file mode 100644 index 4f4b515c90b..00000000000 --- a/changelog/fix-plugin-upgrade +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Temporary fix to hide an error notice that's printed during the plugin upgrade - - diff --git a/changelog/fix-remove-unused-import-noticeoutlineicon b/changelog/fix-remove-unused-import-noticeoutlineicon new file mode 100644 index 00000000000..07e246aa8fc --- /dev/null +++ b/changelog/fix-remove-unused-import-noticeoutlineicon @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: **N/A** this is a fix for a code linting issue + + diff --git a/changelog/fix-request-constant-traversing b/changelog/fix-request-constant-traversing new file mode 100644 index 00000000000..0449e00a842 --- /dev/null +++ b/changelog/fix-request-constant-traversing @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix the way request params are loaded between parent and child classes. diff --git a/changelog/fix-title-task-continue-onboarding b/changelog/fix-title-task-continue-onboarding new file mode 100644 index 00000000000..84241736c04 --- /dev/null +++ b/changelog/fix-title-task-continue-onboarding @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Modify title in task to continue with onboarding diff --git a/changelog/fix-type-cast-woo-stats b/changelog/fix-woopay-appearance-width similarity index 50% rename from changelog/fix-type-cast-woo-stats rename to changelog/fix-woopay-appearance-width index 1239c2df01c..5a11ed32a87 100644 --- a/changelog/fix-type-cast-woo-stats +++ b/changelog/fix-woopay-appearance-width @@ -1,4 +1,4 @@ Significance: patch Type: fix -Fix for PO eligible request +fix checkout appearance width diff --git a/changelog/imp-7052-migrate-to-ts b/changelog/imp-7052-migrate-to-ts new file mode 100644 index 00000000000..1f1fa0afad0 --- /dev/null +++ b/changelog/imp-7052-migrate-to-ts @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Migrate link-item.js to typescript diff --git a/changelog/imp-7052-migrate-to-ts-woopay b/changelog/imp-7052-migrate-to-ts-woopay new file mode 100644 index 00000000000..f866f25573f --- /dev/null +++ b/changelog/imp-7052-migrate-to-ts-woopay @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Migrate woopay-item to typescript diff --git a/changelog/issue-6526-schedule-subscription-migration-tool b/changelog/issue-6526-schedule-subscription-migration-tool new file mode 100644 index 00000000000..391c0a20ddd --- /dev/null +++ b/changelog/issue-6526-schedule-subscription-migration-tool @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: This PR is part of a larger feature coming to WCPay and not single entry is needed for this PR. + + diff --git a/changelog/issue-7038-retry-migration b/changelog/issue-7038-retry-migration new file mode 100644 index 00000000000..62a83cfe6ef --- /dev/null +++ b/changelog/issue-7038-retry-migration @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: No changelog added. This feature is part of a bigger migration feature coming to WCPay + + diff --git a/changelog/remove-3026-fraud-and-risk-tools-feature-flag b/changelog/remove-3026-fraud-and-risk-tools-feature-flag deleted file mode 100644 index c506ba2cca0..00000000000 --- a/changelog/remove-3026-fraud-and-risk-tools-feature-flag +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Remove fraud and risk tools feature flag checks and tests diff --git a/changelog/rpp-6679-factor-flags b/changelog/rpp-6679-factor-flags new file mode 100644 index 00000000000..60d7f3c7a0a --- /dev/null +++ b/changelog/rpp-6679-factor-flags @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +Adding factor flags to control when to enter the new payment process. diff --git a/changelog/rpp-6684-request-class b/changelog/rpp-6684-request-class new file mode 100644 index 00000000000..76f23856692 --- /dev/null +++ b/changelog/rpp-6684-request-class @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Add payment request class for loading, sanitizing, and escaping data (reengineering payment process) diff --git a/changelog/rpp-6685-load-payment-methods b/changelog/rpp-6685-load-payment-methods new file mode 100644 index 00000000000..82d45e02d4c --- /dev/null +++ b/changelog/rpp-6685-load-payment-methods @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Load payment methods through the request class (re-engineering payment process). diff --git a/changelog/stripe-billing-migration-notices b/changelog/stripe-billing-migration-notices new file mode 100644 index 00000000000..55bfc08a088 --- /dev/null +++ b/changelog/stripe-billing-migration-notices @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Add an option on the Settings screen to enable merchants to migrate their Stripe Billing subscriptions to on-site billing. diff --git a/changelog/stripe-billing-setting b/changelog/stripe-billing-setting new file mode 100644 index 00000000000..8feb7c76c0f --- /dev/null +++ b/changelog/stripe-billing-setting @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Introduce a new setting that enables store to opt into Subscription off-site billing via Stripe Billing. diff --git a/changelog/subscriptions-core-5.7.0 b/changelog/subscriptions-core-5.7.0 deleted file mode 100644 index fc111cb6fc7..00000000000 --- a/changelog/subscriptions-core-5.7.0 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Fatal error from third-party extensions using the `woocommerce_update_order` expecting the second parameter. diff --git a/changelog/subscriptions-core-5.7.0-1 b/changelog/subscriptions-core-5.7.0-1 deleted file mode 100644 index 1063c5b2041..00000000000 --- a/changelog/subscriptions-core-5.7.0-1 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Pass the subscription object as the second parameter to `woocommerce_update_subscription` hook (and `woocommerce_update_order` for backwards compatibility). diff --git a/changelog/subscriptions-core-5.7.0-2 b/changelog/subscriptions-core-5.7.0-2 deleted file mode 100644 index d04dd3e5d90..00000000000 --- a/changelog/subscriptions-core-5.7.0-2 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Return a response from the WC_Subscription::set_status() function in line with the parent WC_Order::set_status() function. diff --git a/changelog/subscriptions-core-5.7.0-3 b/changelog/subscriptions-core-5.7.0-3 deleted file mode 100644 index b75b1bd8c29..00000000000 --- a/changelog/subscriptions-core-5.7.0-3 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Add the 'wcs_recurring_shipping_package_rates_match_standard_rates' filter to enable third-parties to override whether the subscription packages match during checkout validation. diff --git a/changelog/subscriptions-core-5.7.1-1 b/changelog/subscriptions-core-5.7.1-1 deleted file mode 100644 index 490d45e05fc..00000000000 --- a/changelog/subscriptions-core-5.7.1-1 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Resolve errors for third-party code using the URLs returned from WC_Subscriptions_Admin::add_subscription_url() and WCS_Cart_Renewal::get_checkout_payment_url() because they were erroneously escaped. diff --git a/changelog/subscriptions-core-5.7.1-2 b/changelog/subscriptions-core-5.7.1-2 deleted file mode 100644 index 66956a265f2..00000000000 --- a/changelog/subscriptions-core-5.7.1-2 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Enable third-party code to alter the delete payment token URL returned from flag_subscription_payment_token_deletions. diff --git a/changelog/subscriptions-core-5.7.1-3 b/changelog/subscriptions-core-5.7.1-3 deleted file mode 100644 index 8c711e21a9d..00000000000 --- a/changelog/subscriptions-core-5.7.1-3 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Update subscriptions-core to 5.7.1 diff --git a/changelog/subscriptions-core-6.2.0-1 b/changelog/subscriptions-core-6.2.0-1 new file mode 100644 index 00000000000..2aa534e189f --- /dev/null +++ b/changelog/subscriptions-core-6.2.0-1 @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Ensure the shipping phone number field is copied to subscriptions and their orders when copying address meta. diff --git a/changelog/subscriptions-core-6.2.0-2 b/changelog/subscriptions-core-6.2.0-2 new file mode 100644 index 00000000000..1d4cd07d2c0 --- /dev/null +++ b/changelog/subscriptions-core-6.2.0-2 @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +When HPOS is disabled, fetch subscriptions by customer_id using the user's subscription cache to improve performance. diff --git a/changelog/subscriptions-core-6.2.0-3 b/changelog/subscriptions-core-6.2.0-3 new file mode 100644 index 00000000000..0244ee6dbd1 --- /dev/null +++ b/changelog/subscriptions-core-6.2.0-3 @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +Deprecated the 'woocommerce_subscriptions_not_found_label' filter. diff --git a/changelog/subscriptions-core-6.2.0-4 b/changelog/subscriptions-core-6.2.0-4 new file mode 100644 index 00000000000..9ad82198e89 --- /dev/null +++ b/changelog/subscriptions-core-6.2.0-4 @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +Updated subscriptions-core to 6.2.0 diff --git a/changelog/update-5508-connect-account-page b/changelog/temporarily-disable-saving-sepa similarity index 51% rename from changelog/update-5508-connect-account-page rename to changelog/temporarily-disable-saving-sepa index 6e1f3752b18..53e329f4089 100644 --- a/changelog/update-5508-connect-account-page +++ b/changelog/temporarily-disable-saving-sepa @@ -1,4 +1,4 @@ Significance: minor Type: update -Connect account page design. +Temporarily disable saving SEPA diff --git a/changelog/update-6027-fix-e2e-test-for-wcpay-dev-tools-revamp b/changelog/update-6027-fix-e2e-test-for-wcpay-dev-tools-revamp deleted file mode 100644 index 4b074efe346..00000000000 --- a/changelog/update-6027-fix-e2e-test-for-wcpay-dev-tools-revamp +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: This just fixes e2e tests to work with the new WCPay Dev Tools UI markup. - - diff --git a/changelog/update-6186-mc-settings-links b/changelog/update-6186-mc-settings-links new file mode 100644 index 00000000000..3bff5d53ef6 --- /dev/null +++ b/changelog/update-6186-mc-settings-links @@ -0,0 +1,4 @@ +Significance: patch +Type: update + +Update Multi-currency documentation links. diff --git a/changelog/update-6378-disable-refund-button-when-disputed b/changelog/update-6378-disable-refund-button-when-disputed new file mode 100644 index 00000000000..6f9f041c7d6 --- /dev/null +++ b/changelog/update-6378-disable-refund-button-when-disputed @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +Disable refund button on order edit page when there is active or lost dispute. diff --git a/changelog/update-6991-table-tooltip b/changelog/update-6991-table-tooltip new file mode 100644 index 00000000000..9c50fe720f6 --- /dev/null +++ b/changelog/update-6991-table-tooltip @@ -0,0 +1,4 @@ +Significance: patch +Type: update + +Update Tooltip component on ConvertedAmount. diff --git a/changelog/update-7048-inline-notice-component b/changelog/update-7048-inline-notice-component new file mode 100644 index 00000000000..debb19e3fe5 --- /dev/null +++ b/changelog/update-7048-inline-notice-component @@ -0,0 +1,5 @@ +Significance: patch +Type: update +Comment: Mainly code refactor and component updates without noticiable UI changes. + + diff --git a/changelog/update-7098-onboarding-components b/changelog/update-7098-onboarding-components new file mode 100644 index 00000000000..3ecd11636ad --- /dev/null +++ b/changelog/update-7098-onboarding-components @@ -0,0 +1,5 @@ +Significance: patch +Type: update +Comment: Ensure new onboarding components (behind an experiment) use admin color schema. + + diff --git a/changelog/update-base-constant-return-same-object-static-call b/changelog/update-base-constant-return-same-object-static-call new file mode 100644 index 00000000000..d15f76ec43e --- /dev/null +++ b/changelog/update-base-constant-return-same-object-static-call @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Update Base_Constant to return the singleton object for same static calls. diff --git a/changelog/update-dependency-woocommerce-components b/changelog/update-dependency-woocommerce-components deleted file mode 100644 index 2bffa38e39b..00000000000 --- a/changelog/update-dependency-woocommerce-components +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Update @woocommerce/components to v12.0.0 diff --git a/changelog/update-horizontal-list-label-style-uppercase b/changelog/update-horizontal-list-label-style-uppercase new file mode 100644 index 00000000000..b7a71d2c30c --- /dev/null +++ b/changelog/update-horizontal-list-label-style-uppercase @@ -0,0 +1,5 @@ +Significance: patch +Type: update +Comment: No changelog required: a particularly insignificant UI change. + + diff --git a/changelog/update-stripe-billing-notice-links b/changelog/update-stripe-billing-notice-links new file mode 100644 index 00000000000..8f2ad33678b --- /dev/null +++ b/changelog/update-stripe-billing-notice-links @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: No changelog is needed given these notices are unreleased. + + diff --git a/changelog/update-wordpress-components-dependency b/changelog/update-wordpress-components-dependency deleted file mode 100644 index 95b2a657f80..00000000000 --- a/changelog/update-wordpress-components-dependency +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Update @wordpress/components to v19.8.5 diff --git a/client/account-status-settings/index.js b/client/account-status-settings/index.js index 53e5dc3526a..3365c54cf26 100644 --- a/client/account-status-settings/index.js +++ b/client/account-status-settings/index.js @@ -42,12 +42,12 @@ const renderDepositsStatus = ( { deposits } ) => { const renderAccountStatusDescription = ( accountStatus ) => { const { status, currentDeadline, pastDue, accountLink } = accountStatus; - if ( 'complete' === status ) { + if ( status === 'complete' ) { return ''; } let description = ''; - if ( 'restricted_soon' === status ) { + if ( status === 'restricted_soon' ) { description = createInterpolateElement( sprintf( /* translators: %s - formatted requirements current deadline, - dashboard login URL */ @@ -63,7 +63,7 @@ const renderAccountStatusDescription = ( accountStatus ) => { // eslint-disable-next-line jsx-a11y/anchor-has-content { a: } ); - } else if ( 'restricted' === status && pastDue ) { + } else if ( status === 'restricted' && pastDue ) { description = createInterpolateElement( /* translators: - dashboard login URL */ __( @@ -73,22 +73,28 @@ const renderAccountStatusDescription = ( accountStatus ) => { // eslint-disable-next-line jsx-a11y/anchor-has-content { a: } ); - } else if ( 'restricted_partially' === status ) { + } else if ( status === 'restricted_partially' ) { description = __( 'Some payment methods and deposits are disabled for this account until all required documents are provided.', 'woocommerce-payments' ); - } else if ( 'restricted' === status ) { + } else if ( status === 'enabled' ) { + description = __( + // eslint-disable-next-line max-len + 'This account is in good standing. Additional business information might be required when a payment volume threshold is reached.', + 'woocommerce-payments' + ); + } else if ( status === 'restricted' ) { description = __( 'Payments and deposits are disabled for this account until business information is verified by the payment processor.', 'woocommerce-payments' ); - } else if ( 'rejected.fraud' === status ) { + } else if ( status === 'rejected.fraud' ) { description = __( 'This account has been rejected because of suspected fraudulent activity.', 'woocommerce-payments' ); - } else if ( 'rejected.terms_of_service' === status ) { + } else if ( status === 'rejected.terms_of_service' ) { description = __( 'This account has been rejected due to a Terms of Service violation.', 'woocommerce-payments' @@ -123,7 +129,13 @@ const AccountStatus = ( props ) => { return (
+ Notifications +
+ ++ Notifications +
+ ++ Notifications +
+ +- - Learn more - -
- - Learn more - -
- - Learn more - -
- - Learn more - -
- GiroPay transactions + giropay transactions :
United States (US) dollar @@ -364,15 +301,6 @@ exports[`AccountFees renders discounts multiple payment methods 1`] = ` 1.4% + $0.30 per transaction 1.4% + $0.25 per transaction -- - Learn more - -
- - Learn more - -
- - Learn more - -
- - Learn more - -
- - Learn more - -