Closed james-allan closed 1 month ago
Nice work, James ✨ Was able to reproduce the issue, and verify that the PR fixes it.
❓ When Legacy Checkout is enabled, and I try to use PRB on checkout, I get this generic error: Payment processing failed. Please retry.
. Is that because we're removing the source
event handler for paymentRequest
? Should we be hiding PRBs if Legacy is enabled, then?
When Legacy Checkout is enabled, and I try to use PRB on checkout
Oh good catch. Legacy Checkout wasn't something I had considered. Let me take a look at whether I can still honor the legacy checkout request format.
Ok thanks again for the review @annemirasol. I've pushed b970ed4 which brings back the stripe_source
key which the legacy checkout's process_payment()
function expects/requires to process the payment successfully.
There's a little bit of redundancy in this approach passing both stripe_source
and wc-stripe-payment-method
with the same pm_
ID just so both checkout integrations have their expected args. I'm curious if you think there's a better approach. :)
There's a little bit of redundancy in this approach passing both
stripe_source
andwc-stripe-payment-method
with the samepm_
ID just so both checkout integrations have their expected args. I'm curious if you think there's a better approach. :)
I suppose we could add some logic to decide which arg to pass depending on which checkout mode is enabled, but I'm okay with just passing both. I like this compact approach, and we can clean up later when we drop support for legacy checkout.
Fixes #3506
Changes proposed in this Pull Request:
pm_
) rather than a sourcesrc_
.Testing instructions
GENERAL TESTING
SUBSCRIPTIONS FREE TRIAL
develop
there are 4 things to notice.src_
).src_
won't be attached to the customer.pm_
and will be attached to the customer.changelog.txt
andreadme.txt
(or does not apply)Post merge