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

feat: Add PageLoadingDynamicPaymentMethods with timeout for DPM receipt redirect #11

Merged
merged 3 commits into from
May 16, 2024

Conversation

julianajlk
Copy link
Member

@julianajlk julianajlk commented May 15, 2024

REV-4049.

For Dynamic Payment Methods BNPL experiment, order creation and fulfillment via ecommerce happens when the webhooks endpoint receives an event from Stripe that the Payment Intent has succeeded, and a series of logic happens including fulfillment via celery task.

We added a custom receipt page error to say that the receipt was being processed in case there was a scenario where the redirect to the receipt page happened before the order was fulfilled, but we found in production that fulfillment takes longer than the redirect to the receipt page from payment MFE in most orders (not all).

To improve the learner experience, we are adding a timeout so it delays the redirect.
Note: this is being done only because this is an experiment and the expectation is that the implementation for Sonic will either use fulfillment status polling or the receipt render should not be tied to fulfillment but to payment.

@julianajlk julianajlk requested a review from a team as a code owner May 15, 2024 15:03
@julianajlk julianajlk force-pushed the julianajlk/REV-4049/dpm-success-flow-timeout branch from 7b3b5e0 to a056839 Compare May 15, 2024 21:55
@julianajlk julianajlk force-pushed the julianajlk/REV-4049/dpm-success-flow-timeout branch from a056839 to 0a0d4e4 Compare May 15, 2024 21:57
@julianajlk julianajlk merged commit 4aeb2f5 into master May 16, 2024
5 checks passed
@julianajlk julianajlk deleted the julianajlk/REV-4049/dpm-success-flow-timeout branch May 16, 2024 17:00
bdizha pushed a commit that referenced this pull request Jul 8, 2024
grmartin added a commit that referenced this pull request Jul 8, 2024
* feat: Added  paypal redirect (#11)

REV-4049

* feat: remove cybersource script (#7)

* fix: Added paypal redirect feature triggered buy the frontastic checkout

* fix: commit message

* fix: resolved new function referencing

* fix: Updated a typo

* feat: Added new paypal payment redirect test coverage

* fix: removed duplicate function

* fix: paypal redirect to only happen once

---------

Co-authored-by: Juliana Kang <julianajlk@gmail.com>
Co-authored-by: Chris Pappas <christopappas@users.noreply.github.com>
Co-authored-by: Batanayi Matuku <bmatuku@2u.com>
Co-authored-by: Batanayi Matuku <bdizha@gmail.com>
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