-
Notifications
You must be signed in to change notification settings - Fork 11
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
Working with cashier #1
Comments
Hi! So I'd definitely like to get this working with Cashier... i.e. provide a very similar interface for it. My main requirement though is that you shouldn't have to install Cashier, i.e. we just need to make sure any support we put into this package for Cashier doesn't cause any problems if you don't have Cashier installed. I'd definitely need help working on Cashier integration because it won't be a priority for me as we're not using Cashier (at the moment). I'd also prefer to integrate Cashier v10 when it is out, as I don't see the point of writing stuff now for Casher v9 when it is imminently about to undergo a major change. Would you be interested in helping out with dev'ing Cashier v10 stuff? |
I can probably spare some time. Just had a look at the Cashier code and it doesn't appear that extendable. Wondering if it may be possible to hijack the call outside of Cashier in the Stripe package. What are your thoughts? |
I'll have to take a look into the code and get back to you. If it isn't that extendable, then maybe we just put a Cashier-like interface into this package that takes care of Connect subscriptions in a familiar way. Will take a look though and see what we could potentially do. |
Is it worth forking cashier, and then including this package + the connect account id functionality? |
It's an idea but I'd prefer to avoid that as it'll be a nightmare to maintain. How about an interface like this: $account->newSubscription($user)->create($token); I.e. calling Then within the account's You know Cashier better than me - are there any other integration points you'd need for subscriptions on a connected account? I'd think we'd also need to link the account model to the subscription model, but we could use Connect webhooks to do that I'd reckon. |
My main concern is all the SCA stuff. That's my reason for going back to Cashier from a custom solution I've written. |
Yep makes sense - that's exactly why I'm making changes to my Stripe integrations at the moment. So there don't appear to be upgrade docs yet for You're going to have to give me a steer on how you want this to work though, as I don't use any of the subscription stuff on Connect accounts - my implementation is all one-off payments where we collected credit card details via Stripe Elements at the point of purchase. I'm assuming you want some sort of version of the The first problem to solve is that Cashier uses columns on the So we probably need a table to hold the user information that represents that user in a connect account. I.e. these columns: But on a separate table that has a Then effectively the We'd then have a version of this table: But I'd suggest this should be a separate table to Then you'd presumably need to use Cashier's webhook controller (at least for the moment, unless we can convince them to separate out some of the logic in there so we can call it separately). We'd need to overload this method: To return our This is a rough sketch of potentially how to approach it... before we start on any coding, what do you think... sound about right or any concerns? |
There's now an upgrade guide here... |
Great project, thanks for making it open source.
What is the recommended process for working with Cashier - is there any way to create a newSubscription on a connected account? Or is that not something this project addresses?
The text was updated successfully, but these errors were encountered: