Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import subscriptions from Stripe #156

Open
3 tasks
iamkeir opened this issue Mar 23, 2020 · 19 comments
Open
3 tasks

Import subscriptions from Stripe #156

iamkeir opened this issue Mar 23, 2020 · 19 comments
Assignees

Comments

@iamkeir
Copy link

iamkeir commented Mar 23, 2020

  • 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:

@lukeholder
Copy link
Member

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

@iamkeir
Copy link
Author

iamkeir commented Mar 24, 2020

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 lukeholder self-assigned this Jun 10, 2020
@lukeholder
Copy link
Member

Also include payment source sync.

@jakepm
Copy link

jakepm commented Oct 1, 2020

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
Copy link

jameslindeman commented Oct 5, 2020

+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
Copy link
Member

@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
Copy link

jakepm commented Oct 22, 2020

@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
Copy link
Author

iamkeir commented Feb 15, 2021

@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
Copy link
Member

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

@splendidrob
Copy link

@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
Copy link
Member

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

@lukeholder lukeholder transferred this issue from craftcms/commerce Jun 18, 2021
@iamkeir
Copy link
Author

iamkeir commented Aug 26, 2021

Dare we ask for an update?

@green17
Copy link

green17 commented Aug 27, 2021

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

@kevadamson
Copy link

+1

@iamkeir
Copy link
Author

iamkeir commented Mar 17, 2022

Has this been abandoned?

@itsmattsoria
Copy link

+1

@iamkeir
Copy link
Author

iamkeir commented Dec 5, 2022

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

@lukeholder
Copy link
Member

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

@sleithart
Copy link

any updates here? looking forward to the new plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants