Skip to content

Commit

Permalink
Merge branch 'develop' into fix/woopay-direct-checkout-guest-subscrip…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
alefesouza authored Dec 16, 2024
2 parents 5e270fb + db8947f commit f385e67
Show file tree
Hide file tree
Showing 274 changed files with 3,646 additions and 5,289 deletions.
4 changes: 0 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,3 @@ vendor/*
release/*
tests/e2e/docker*
tests/e2e/deps*

# We'll delete the directory and its contents as part of https://github.com/Automattic/woocommerce-payments/issues/9722 .
# ignoring it because we're temporariily cleaning it up.
client/tokenized-payment-request
3 changes: 1 addition & 2 deletions .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: PHP Compatibility

on:
#pull_request # Workflow disabled temporarily until PHP Compatibility fixes are in place
workflow_dispatch
pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ tests/e2e-pw/playwright/.cache/
tests/e2e-pw/tests/e2e-pw/.auth/*
# Slate docs
docs/rest-api/build/*

# Jurassic Tube files
bin/jurassictube/
4 changes: 2 additions & 2 deletions bin/docker-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ cli()
set +e
# Wait for containers to be started up before the setup.
# The db being accessible means that the db container started and the WP has been downloaded and the plugin linked
cli wp db check --path=/var/www/html --quiet > /dev/null
cli wp db check --skip_ssl --path=/var/www/html --quiet > /dev/null
while [[ $? -ne 0 ]]; do
echo "Waiting until the service is ready..."
sleep 5
cli wp db check --path=/var/www/html --quiet > /dev/null
cli wp db check --skip_ssl --path=/var/www/html --quiet > /dev/null
done

# If the plugin is already active then return early
Expand Down
43 changes: 31 additions & 12 deletions bin/jurassic-tube-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,32 @@
# Exit if any command fails.
set -e

echo "Checking if ${PWD}/docker/bin/jt directory exists..."
# Define Jurassic Tube directory using bin directory
JT_DIR="${PWD}/bin/jurassictube"

if [ -d "${PWD}/docker/bin/jt" ]; then
echo "${PWD}/docker/bin/jt already exists."
echo "Checking if ${JT_DIR} directory exists..."

if [ -d "${JT_DIR}" ]; then
echo "${JT_DIR} already exists."
else
echo "Creating ${PWD}/docker/bin/jt directory..."
mkdir -p "${PWD}/docker/bin/jt"
echo "Creating ${JT_DIR} directory..."
mkdir -p "${JT_DIR}"
fi

echo "Downloading the latest version of the installer script..."
echo "Checking if the installer is present and downloading it if not..."
echo

# Download the installer (if it's not already present):
if [ ! -f "${PWD}/docker/bin/jt/installer.sh" ]; then
# Download the installer script:
curl "https://jurassic.tube/get-installer.php?env=wcpay" -o ${PWD}/docker/bin/jt/installer.sh && chmod +x ${PWD}/docker/bin/jt/installer.sh
if [ ! -f "${JT_DIR}/installer.sh" ]; then
echo "Downloading the standalone installer..."
curl "https://jurassic.tube/installer-standalone.sh" -o "${JT_DIR}/installer.sh" && chmod +x "${JT_DIR}/installer.sh"
fi

echo "Running the installation script..."
echo

# Run the installer script
source $PWD/docker/bin/jt/installer.sh
"${JT_DIR}/installer.sh"

echo
read -p "Go to https://jurassic.tube/ in a browser, paste your public key which was printed above into the box, and click 'Add Public Key'. Press enter to continue"
Expand All @@ -40,8 +43,24 @@ echo
read -p "Please enter your Automattic/WordPress.com username: " username
echo

${PWD}/docker/bin/jt/config.sh username ${username}
${PWD}/docker/bin/jt/config.sh subdomain ${subdomain}
if [ ! -f "${JT_DIR}/config.env" ]; then
touch "${JT_DIR}/config.env"
else
> "${JT_DIR}/config.env"
fi

# Find the WordPress container section and get its port
PORT=$(docker ps | grep woocommerce_payments_wordpress | sed -En "s/.*0:([0-9]+).*/\1/p")

# Use default if extraction failed
if [ -z "$PORT" ]; then
PORT=8082 # Default fallback
echo "Could not extract WordPress container port, using default: ${PORT}"
fi

echo "username=${username}" >> "${JT_DIR}/config.env"
echo "subdomain=${subdomain}" >> "${JT_DIR}/config.env"
echo "localhost=localhost:${PORT}" >> "${JT_DIR}/config.env"

echo "Setup complete!"
echo "Use the command: npm run tube:start from the root directory of your WC Payments project to start running Jurassic Tube."
Expand Down
33 changes: 33 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
*** WooPayments Changelog ***

= 8.6.0 - 2024-12-04 =
* Add - Add Bank reference key column in Payout reports. This will help reconcile WooPayments Payouts with bank statements.
* Add - Display credit card brand icons on order received page.
* Fix - Add support to load stripe js asynchronously when it is not immediately available in the global scope.
* Fix - Add the missing "Download" column heading label and toggle menu option to the Payments → Documents list view table.
* Fix - Ensure ECE button load events are triggered for multiple buttons on the same page.
* Fix - Ensure ECE is displayed correctly taking into account the tax settings.
* Fix - Evidence submission is no longer available for Klarna inquiries as this is not supported by Stripe / Klarna.
* Fix - fix: express checkout to use its own css files.
* Fix - fix: missing ece is_product_page checks
* Fix - Fix ECE Tracks events not triggering when WooPay is disabled.
* Fix - Fix WooPay component spacing.
* Fix - Fix WooPay trial subscriptions purchases.
* Fix - Make sure the status of manual capture enablement is fetched from the right place.
* Fix - Prevent express checkout from being used if cart total becomes zero after coupon usage.
* Fix - Resolved issue with terminal payments in the payment intent failed webhook processing.
* Fix - Set the support phone field as mandatory in the settings page.
* Fix - Update Link logo alignment issue when WooPay is enabled and a specific version of Gutenberg is enabled.
* Fix - Use paragraph selector instead of label for pmme appearance
* Fix - Validate required billing fields using data from objects instead of checking the labels.
* Update - Avoid getting the appearance for pay for order page with the wrong appearance key.
* Update - chore: rename wrapper from payment-request to express-checkout
* Update - feat: add `wcpay_checkout_use_plain_method_label` filter to allow themes or merchants to force the "plain" WooPayments label on shortcode checkout.
* Update - refactor: express checkout initialization page location checks
* Update - refactor: express checkout utility for button UI interactions
* Dev - Allow redirect to the settings page from WCPay connect
* Dev - chore: removed old PRB implementation for ApplePay/GooglePay in favor of the ECE implementation; cleaned up ECE feature flag;
* Dev - Disable visual regression testing from Playwright until a more reliable approach is defined.
* Dev - Ensure proper return types in the webhook processing service.
* Dev - fix: E_DEPRECATED on BNPL empty PMME
* Dev - Fix return types
* Dev - Update snapshots for E2E Playwright screenshots

= 8.5.1 - 2024-11-25 =
* Fix - fix: remove "test mode" badge from shortcode checkout.

Expand Down
4 changes: 0 additions & 4 deletions changelog/8897-add-card-brands-order-received

This file was deleted.

5 changes: 5 additions & 0 deletions changelog/8969-fallback-to-card-payment-type
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Small change to payment method types fallback scenario.


4 changes: 4 additions & 0 deletions changelog/add-2253-clickwrap-terms-and-conditions
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Clickwrap terms and conditions support on WooPay
4 changes: 0 additions & 4 deletions changelog/add-5316-payout-trace-id

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/add-6924-migrate-test-drive-capabilities
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Migrate active capabilities from test-drive account when switching to live account.
4 changes: 0 additions & 4 deletions changelog/add-9556-set-support-phone-mandatory

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/add-9690-recommended-pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Implement gateway method to retrieve recommended payment method.
4 changes: 0 additions & 4 deletions changelog/add-ipp-missing-failure-webhooks

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/add-jetpack-config-callback
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Added conditional use of Jetpack Config callback to avoid i18n notices.
5 changes: 5 additions & 0 deletions changelog/add-limit-woopay-themeing-to-shortcode-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: add
Comment: Updates the availability criteria of WooPay Global theme-ing feature. This feature is unreleased and behind a feature flag.


5 changes: 5 additions & 0 deletions changelog/add-pass-footer-header-styles-to-woopay
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: add
Comment: Impovements to WooPay themeing, which is not yet released to the public.


4 changes: 0 additions & 4 deletions changelog/as-fix-ece-tax-based-billing-address

This file was deleted.

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

Refine verification for disabling ECE on subscriptions that require shipping.
4 changes: 4 additions & 0 deletions changelog/as-fix-ece-variable-subs-free-trial
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Enable ECE for Virtual Variable Subscriptions with Free Trials.
4 changes: 4 additions & 0 deletions changelog/as-hk-address
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Normalize HK addresses for ECE

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/chore-ece-php-tests-location

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/chore-ece-states-class-constants

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/chore-port-ece-changes-into-tokenized-ece

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/chore-prb-references-in-ece-docs-and-logs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

chore: renamed PRB references in GooglePay/ApplePay implementation docs and logs files to ECE.
5 changes: 0 additions & 5 deletions changelog/chore-remove-arguments-passed-to-ece-handlers

This file was deleted.

5 changes: 5 additions & 0 deletions changelog/chore-remove-ece-error-assignment-on-loaderror
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: chore: remove ECE error assignment on loaderror


4 changes: 0 additions & 4 deletions changelog/chore-remove-redundant-init-for-payfororder

This file was deleted.

5 changes: 5 additions & 0 deletions changelog/chore-remove-tokenized-payment-request-references
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: chore: remove tokeinzed payment request code


5 changes: 0 additions & 5 deletions changelog/chore-rename-tokenized-prb-flag-to-tokenized-ece

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/chore-withBlockOverride-arguments

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/compat-9727-avoid-early-translations
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Remove translations during initialization, preventing unnecessary warnings.
4 changes: 0 additions & 4 deletions changelog/dev-4293-address-additional-union-types

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/dev-disable-flaky-visual-regression-tests

This file was deleted.

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

Fixing issue with parsing QIT authentication.Fixing issue with parsing QIT authentication.
4 changes: 0 additions & 4 deletions changelog/dev-update-pw-screenshots

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/feat-add-gateway-label-filter-override

This file was deleted.

5 changes: 5 additions & 0 deletions changelog/feat-tokenized-ece-product-page-base-implementation
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: feat: tokenized ECE product page base implementation


Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Fixed an issue where order metadata was not updated when capturing an order in the processing state.
4 changes: 0 additions & 4 deletions changelog/fix-7014-documents-list-view-table-download-label

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-7230-payments-details-mobile-view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Fix styling of transaction details page in mobile view.
5 changes: 0 additions & 5 deletions changelog/fix-7399

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-9421-auto-enable-woopay-in-sandbox-mode
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Ensure WooPay 'enabled by default' value is correctly set in sandbox mode.
4 changes: 0 additions & 4 deletions changelog/fix-9447-validate-required-fields-using-objects

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-9612-inquiry-order-note
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Order notes for inquiries have clearer content.

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/fix-9700-payout-spotlight-illustration

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-9703-klarna-inquiries

This file was deleted.

Loading

0 comments on commit f385e67

Please sign in to comment.