craftcms / commerce-stripe

Stripe payment gateway for Craft Commerce
https://plugins.craftcms.com/commerce-stripe
MIT License
31 stars 49 forks source link

Import subscriptions from Stripe #156

Open iamkeir opened 4 years ago

iamkeir commented 4 years ago

Description

Is it possible to import existing subscriptions into Commerce 3 from Stripe?

Related:

lukeholder commented 4 years ago

This should be it's own ticket. Added to the list.

iamkeir commented 4 years ago

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

lukeholder commented 4 years ago

Also include payment source sync.

jakepm commented 4 years ago

Would really love to see this in the next version if it's not too late. Is there any way to do this manually?

jameslindeman commented 3 years ago

+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!

lukeholder commented 3 years ago

@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.

jakepm commented 3 years ago

@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 👍

iamkeir commented 3 years ago

@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.

lukeholder commented 3 years ago

Once 3.3 is out, we have this as the first thing to work on.

splendidrob commented 3 years ago

@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!

lukeholder commented 3 years ago

Working on Stripe v3 now. Will be out within the next few weeks.

iamkeir commented 3 years ago

Dare we ask for an update?

green17 commented 3 years ago

We're keen on an update too. :-)

kevadamson commented 2 years ago

+1

iamkeir commented 2 years ago

Has this been abandoned?

itsmattsoria commented 2 years ago

+1

iamkeir commented 1 year ago

Any update, or abandoned? No worries either way, just good to know!

lukeholder commented 1 year ago

We are working on a new/updated Stripe plugin but likely Q1 next year.

sleithart commented 1 year ago

any updates here? looking forward to the new plugin!

justinholtweb commented 3 months ago

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.

iamkeir commented 3 months ago

@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.