Skip to content

Conversation

danieldudzic
Copy link
Collaborator

Description

This PR will add Fastlane session restoration after payment failures for both Block and Classic checkouts.

It ensures customers have their Fastlane data pre-loaded after returning to the checkout page in the case of a payment failure.

Screenshots

ScreenCast2025-08-16at1 07 03PM-ezgif com-resize

Steps to test

  1. In PayPal Payments > Settings > Expert Settings > 3D Secure select Always require 3D Secure
  2. In Checkout authenticate with any Fastlane profile, add a new card - using one of the Failure test case card details
  3. Confirm that after the failed payment you return to the relevant checkout page with a failure notice on top and after a few seconds the Fastlane profile data automatically loads again.

@danieldudzic danieldudzic requested a review from Dinamiko August 16, 2025 11:12
Copy link

Test using WordPress Playground

The changes in this pull request can be previewed and tested using a WordPress Playground instance.
WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

🔗 Test this pull request with WordPress Playground

What's included:

  • ✅ WordPress (latest)
  • ✅ WooCommerce (latest)
  • ✅ PayPal Payments plugin v3.0.9-pr3598-17007756440-g36ccec0 (built from this PR)

Login credentials:

  • Username: admin
  • Password: password

Plugin Details:

  • Version: 3.0.9-pr3598-17007756440-g36ccec0
  • Commit: 36ccec0
  • Artifact: woocommerce-paypal-payments-3.0.9-pr3598-17007756440-g36ccec0

💡 The demo environment resets each time you refresh. Perfect for testing!

🔄 This link updates automatically with each new commit to the PR.

⚠️ This URL is valid for 30 days from when this comment was last updated.


🤖 Auto-generated for commit 36ccec0 • Last updated: 2025-08-16T11:20:23.697Z

@Dinamiko Dinamiko changed the base branch from trunk to develop August 19, 2025 12:39
Copy link
Collaborator

@Narek13 Narek13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested but code wise LGTM

@Dinamiko Dinamiko merged commit 50c0f02 into develop Sep 4, 2025
13 checks passed
@Dinamiko Dinamiko deleted the PCP-5032-preserve-fastlane-session-on-failed-3-ds-check branch September 4, 2025 12:09
@Dinamiko Dinamiko added this to the 3.2.0 milestone Oct 1, 2025
@Dinamiko Dinamiko added the enhancement New feature or request label Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants