New Braintree Customer created for every payment method created
Opened this issue · 1 comments
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.
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.