solidusio / solidus_braintree

💳 Integrate Solidus with Braintree
https://www.braintreepayments.com/
BSD 3-Clause "New" or "Revised" License
19 stars 55 forks source link

Update how braintree client tokens are generated #74

Closed skukx closed 5 years ago

skukx commented 5 years ago

See https://github.com/solidusio/solidus_braintree/issues/56

To promote a one to one relationship between braintree customers and spree users, add the braintree customer id to the spree_users table. Anytime a new client token is generated for a new payment method, pass that customer id in as one of the options so that all new payment methods are added to the same braintree customer associated to the spree user.