Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

New Braintree Customer created for every payment method created #206

Open
skukx opened this issue Jan 23, 2019 · 1 comment
Open

New Braintree Customer created for every payment method created #206

skukx opened this issue Jan 23, 2019 · 1 comment

Comments

@skukx
Copy link
Contributor

skukx commented Jan 23, 2019

Similar to this issue here: solidusio/solidus_braintree#56

When creating a new payment method, @gateway.generate_token will create a nonce for a brand new customer. We should try to keep a one to one relationship between Braintree customers and Spree Users.

This may require another field or table to keep track of the gateway customer id. Then when requesting a token from braintree something like the following should be called if a user is logged in.

braintree.client_token.generate customer_id: user.gateway_customer_id

This ensures that the new payment method is added to the same braintree customer as all others in the past.

@stale
Copy link

stale bot commented Nov 11, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 11, 2022
@gsmendoza gsmendoza removed the wontfix label Nov 11, 2022
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 a pull request may close this issue.

2 participants