Skip to content

feat(next): support existing payment methods#18225

Merged
StaberindeZA merged 1 commit intomainfrom
fxa-7591-support-existing-pm
Jan 15, 2025
Merged

feat(next): support existing payment methods#18225
StaberindeZA merged 1 commit intomainfrom
fxa-7591-support-existing-pm

Conversation

@StaberindeZA
Copy link
Copy Markdown
Contributor

Because

  • Adds support for customers with existing payment methods.

This pull request

  • Create Customer Sessions and add it to the Payment Element to support reuse of existing payment method. This only supports non-external payment methods, i.e. PayPal.
  • Support existing PayPal payment method.
  • If existing Payment Element payment method exists, do not allow PayPal as a payment method.
  • If existing PayPal payment method exists, do not allow adding of new Payment Element payment method.

Issue that this pull request solves

Closes: #FXA-7591

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

image

image

Other information (Optional)

Any other information that is important to this pull request.

@StaberindeZA StaberindeZA requested review from a team as code owners January 14, 2025 21:09
@StaberindeZA StaberindeZA force-pushed the fxa-7591-support-existing-pm branch from aa5aa0e to 896c9c6 Compare January 15, 2025 15:22
Comment thread libs/payments/cart/src/lib/cart.service.ts Outdated
Comment thread libs/payments/cart/src/lib/cart.service.ts Outdated
Because:

- Adds support for customers with existing payment methods.

This commit:

- Create Customer Sessions and add it to the Payment Element to support
  reuse of existing payment method. This only supports non-external
  payment methods, i.e. PayPal.
- Support existing PayPal payment method.
- If existing Payment Element payment method exists, do not allow PayPal
  as a payment method.
- If existing PayPal payment method exists, do not allow adding of new
  Payment Element payment method.

Closes #FXA-7591
@StaberindeZA StaberindeZA force-pushed the fxa-7591-support-existing-pm branch from 896c9c6 to 0a665bd Compare January 15, 2025 16:28
@StaberindeZA StaberindeZA merged commit 54f63de into main Jan 15, 2025
@StaberindeZA StaberindeZA deleted the fxa-7591-support-existing-pm branch January 15, 2025 17:26
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.

3 participants