Added filter to update Level 3 data #3286
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allow filtering level 3 data
This PR adds support to allow the use of WooCommerce Gift cards to pay for order partially with full support of Level 3 data, with the rest being paid by another payment method provided by Stripe. This previously failed due to Level 3 data mismatch.
Description
Together with https://github.com/woocommerce/woocommerce-gift-cards/pull/822 adds support for gift cards to be used as discounts with full support for Level 3 data while using Stripe to pay for the remaining amount (not covered by the gift card).
More background discussion available at p1718202231605999-slack-C3NCP7ZJ6
A similar chance is being done also in WooPayments: Automattic/woocommerce-payments#9053
Changes proposed in this Pull Request:
A minimal change: adds filter
wc_stripe_payment_request_level3_data
to allow updating Level 3 data for Stripe so that the data matches and order can be processed.Haven't added tests since we'd be only testing WordPress filtering.
Testing instructions
Please check https://github.com/woocommerce/woocommerce-gift-cards/pull/822.
changelog.txt
andreadme.txt
(or does not apply)Post merge