commerce-stripe
commerce-stripe copied to clipboard
Import subscriptions from Stripe
- [ ] Sync subscription by plan from the command line
- [ ] Sync payment sources that exists in Commerce from the command line
- [ ] Update payment sources when payment source is updated in Stripe.
Description
Is it possible to import existing subscriptions into Commerce 3 from Stripe?
Related:
- https://github.com/craftcms/commerce/issues/1214
- https://github.com/craftcms/feed-me/issues/472
- https://craftcms.stackexchange.com/questions/33957/import-stripe-subscriptions-into-commerce-3
This should be it's own ticket. Added to the list.
Thanks @lukeholder - are you able to provide any guidance on the Commerce function/s for creating subscriptions such that I could write a custom module in the short-term?
Eyeing up https://github.com/craftcms/commerce/blob/develop/src/controllers/SubscriptionsController.php#L170-L252
Also include payment source sync.
Would really love to see this in the next version if it's not too late. Is there any way to do this manually?
+1 for this, and what @jakepm said. We’re moving a site to Craft Commerce and need a way for the existing customers to be known and for them to manage their subscriptions. Any pointers on doing this manually would be much appreciated if it’s not landing anytime soon. It’s a potential show stopper without it. Thanks!
@jameslindeman @jakepm @iamkeir
We are currently working on this.
While working on the subscription sync feature (which will be console CLI command), we realised the sync down only works if we sync other things from Stripe like payment sources - it also affects other things like auto-creating user accounts, and a number of other issues that have complicated the feature and expanded the surface area it touches of the codebase.
For example currently Craft Commerce only allows the default payment source to be the subscription payment source. This is fine when the subscription system started with Craft Commerce and managed there, but since we are syncing down from stripe, and subscriptions in Stripe can have a payment source selected per subscription basis we need to support this feature in Commerce - this means we need to cut a release of commerce that has a migration that adds a per subscription payment source and then run a sync from stripe in the same migration - which we were previously thinking would only need to be in the Stripe Plugin console (CLI) command.
We also realise that not everyone will want to sync all subscription plans, and are currently adding options to the sync that lets you control what data gets synced on the commerce side.
We thought the original work would be simple, but like all things it was underestimated.
We hope to have some news in the coming weeks, and hope to be able to deliver the feature soon.
I will let you know when I put a public commerce branch up with the updates, and would love for you all to test out the subscription sync features then.
@lukeholder thank you for the update, this is much appreciated.
Sounds like a 'can of worms' feature that I'm sure many people following, will be more than familiar with!
Very pleased to hear you're on the case and look forward to hearing some more news. We're certainly not expecting a quick fix for this, but once you've worked through the problems, I'm sure this will be yet another example of Craft CMS/Commerce being a best-in-class option for developers and clients alike 👍
@lukeholder just checking in on this - we fed your words back to our client and they were happy to be a little more patient as a result but there is still urgency as it is the only thing preventing transition to Commerce and they are chomping at the bit. Is there any progress/updated ETA? Or is there any interim/short-term solution/work-around? Thanks.
Once 3.3 is out, we have this as the first thing to work on.
@lukeholder Just checking in on this issue to see where things are now we are long past Craft 3.3? We purchased Craft Commerce for a project a while back but have never been able to use it as we still are unable to import existing customers. The license has now run out! Is there any update to this functionality? We have a couple of other projects in the pipeline which we would love to push over to Craft and Commerce but are currently unable due to not being able to accommodate existing customers. Any updates would be great to hear.
Many thanks!
Working on Stripe v3 now. Will be out within the next few weeks.
Dare we ask for an update?
We're keen on an update too. :-)
+1
Has this been abandoned?
+1
Any update, or abandoned? No worries either way, just good to know!
We are working on a new/updated Stripe plugin but likely Q1 next year.
any updates here? looking forward to the new plugin!
Resurfacing this. I am converting a site to Commerce subscriptions that previously used Formie + Stripe to signup users to subscriptions. I would like to pull those existing Stripe subscription customers to Commerce orders if possible.
@justinholtweb the new Stripe plug-in can now sync subscription data into Craft… https://plugins.craftcms.com/stripe?craft5
…however, it’s a standalone plug-in to Commerce and I’ve not used it yet to know how/if they can play nicely together.
Perhaps Craft team can chime in with more intel.