Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

refactor: Add Dynamic Payment Methods handling #866

Closed

Conversation

julianajlk
Copy link
Contributor

REV-3830.
Accompanying backend PR: openedx-unsupported/ecommerce#4115

Main changes:

  • Adding new error handling for Dynamic Payment Methods, where the Payment Intent status can get into unexpected state.
  • New error message in case the learner's location is in a buy now pay later (BNPL) supported country but their billing address is in a country that BNPL does not support.
  • Make postal code required for BNPL countries.
  • Add shipping address to the Payment Intent since it's required for Afterpay.
  • Add the PaymentMethodMessagingElement
  • Get country code from location cookie.
  • Refactor where we initialize Stripe to Checkout's parent to be able to redirect to receipt page (need to call Stripe to retrieve Payment Intent).
  • Refactor PaymentPage component to handle redirect from BNPL, and redirect to ecommerce's receipt page.

@julianajlk julianajlk requested a review from a team as a code owner April 9, 2024 13:26
@julianajlk
Copy link
Contributor Author

Closing, adding in edx fork.

@julianajlk julianajlk closed this Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant