How do I register existing stripe customers?
I am moving an existing website to Drupal 8. The site has several users that have paid monthly or yearly subscriptions via stripe. I have copied over all of the users along with matching email addresses and assigned a role and a subscription plan. The problem that I am having is that I need stripe registration to sync with my existing stripe users. Currently when I log in as a subscriber and go to /user/my-subscriptions I receive an Access Denied message.
When I go to stripe_registration/subscribe in test mode I can successfully subscribe to a plan and /user/my-subscriptions does work. Is there a way to register the existing stripe subscriptions with my drupal users?
Thank you for all/any assistance.
Comments
Comment #2
solardog commentedIt seems I will need to somehow associate the stripe customer id with my users.. Is this possible?
Comment #3
problue solutionsBit of a late reply and I'm sure youve either got this sorted or moved on, but this can be done using Feeds module.
You need to create two feeds, one to import data to Stripe Subscription and another to import to the User entity to populate the Stripe customer ID field.
Once both feeds have been imported the existing users will be associated with their subscriptions. Dont assign roles or do anything else with the subscription plans, Feeds takles care of that when its creating the subscription entities.