Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update Stripe DPM check in handle_processor_response #4158

Merged

Conversation

julianajlk
Copy link
Contributor

@julianajlk julianajlk commented May 7, 2024

REV-4019.

Locally, this is the data sent from the MFE
{'payment_intent_id': 'pi_3PC2r5H4caH7G0X10gjfcFiy', 'skus': '8CF08E5', 'dynamic_payment_methods_enabled': 'true'}

With content sent from the MFE as application/x-www-form-urlencoded, the Javascript boolean will be converted to a string representation of true/false in the backend, but we're having unexpected results, always evaluating to False.

I am removing the boolean conversion for this check and adding logs. I don't see an issue with this since on the assert status == 'succeeded' it will error if the status is anything other than succeeded or in the previous check 'requires_action'. This was added initially as a guard to prevent from getting into the DPM flow while the experiment is off.

@julianajlk julianajlk requested a review from a team as a code owner May 7, 2024 23:34
@julianajlk julianajlk changed the title fix: Update Stripe handle_processor_response for DPM fix: Update Stripe DPM check in handle_processor_response May 7, 2024
@julianajlk julianajlk force-pushed the julianajlk/REV-4019/stripe-dpm-handle-response-attribute branch from bfe3bea to 61c055c Compare May 8, 2024 15:01
@julianajlk julianajlk merged commit 6f9cff2 into 2u/main May 8, 2024
8 checks passed
@julianajlk julianajlk deleted the julianajlk/REV-4019/stripe-dpm-handle-response-attribute branch May 8, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants