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

Add payment method type duplication check for google_pay #5024

Closed
ShankarSinghC opened this issue Jun 18, 2024 · 0 comments · Fixed by #5023
Closed

Add payment method type duplication check for google_pay #5024

ShankarSinghC opened this issue Jun 18, 2024 · 0 comments · Fixed by #5023
Assignees
Labels
A-core Area: Core flows A-payment-methods Area: Payment Methods

Comments

@ShankarSinghC
Copy link
Contributor

Currently there is no duplication check for google pay and we will create a new payment method entry for every google pay payment CIT with "setup_future_usage": "on_session". This is not the case in cards as locker handles the card duplication. Since we do not have a parameter handle duplication check for a google pay, we have to go with a approach of a customer can have only one saved google pay payment method.

In this approach we list all the saved payment method for a customer during every google pay CIT and check if any of them have the payment_method_type is google_pay if it is then we just return already saved payment_method_id.

@ShankarSinghC ShankarSinghC added A-core Area: Core flows A-payment-methods Area: Payment Methods labels Jun 18, 2024
@ShankarSinghC ShankarSinghC self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows A-payment-methods Area: Payment Methods
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant