-
Notifications
You must be signed in to change notification settings - Fork 682
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
Use TaxRates instead of tax_percent #657
Comments
Heya, thanks for the detailed issue! I'll be happy to look into this further but only after we've made all the changes for the upcoming v10 release. We might be able to get this in that release as well but for now I'd like to focus on getting payment intents support into Cashier. |
Awesome, sounds good! I should have clarified I'm offering to try implementing this myself but it sounds like you're looking to finalize v10 first, but if it becomes a good time for me to jump in, let me know! |
Would greatly appreciate this feature! |
Awesome. This is definitely something that we need to operate in different countries in the EU (and outside the EU later). Maybe I can help in some way, just let me know. |
This would be great indeed. We need to be able to charge 2 different taxes in Stripe (Canadian federal and provincial taxes) which both have different rates. If I understand well, we need this update in order to be able to do that in the new Stripe API, right now we can only have one tax amount. |
I think this could be taken into account now since Cashier 10 is out |
Is the new Tax Rate the only way to apply an inclusive tax percentage to a new subscription? Currently, every subscription I start with Cashier is creating and reusing an exclusive tax rate instead of using the inclusive one I have set up. If this proposal would help with this, that'd be awesome. |
@kennethsinder did you ever turn your very concrete suggestions into a PR? |
I created a small PR #818. With it, you can add a taxRates method in your Billable model that returns an array of TaxRates ids to add to the Subscription creation. |
Hi @lsmith77, nope I didn't get a chance to yet and I didn't get the go-ahead from any of the repo maintainers. I'm new to open source so I didn't want to code anything up before hearing back. Sounds like @pierrocknroll, @driesvints and Taylor Otwell have it under control in #818 😄 |
I'm gonna start working on this tomorrow. |
WIP pr here: #830 |
I just finished up the PR for this. I'd really appreciate any feedback before it gets merged. Please comment on the PR. |
With the recent ship of EU invoicing and
TaxRate
s by Stripe Billing as the new way to model taxes, it might be a good first step to updatesyncTaxPercentage()
inSubscription
to createTaxRate
objects instead of setting it via the deprecatedtax_percent
.This would involve:
TaxRate
s are supported.TaxRate
first via the Stripe API and then apply the resulting tax rate ID to theSubscription
: https://github.com/laravel/cashier/blob/707ef5ec28974f74c57461ef25c125c46050d885/src/Subscription.php#L500 For now, we could hard-code the taxdisplay_name
to"Tax"
when we create that tax rate to get approximately the same functionality that now happens implicitly when setting atax_percent
.There are no direct immediate benefits of doing this, but it unlocks:
TaxRate
s, at the subscription and subscription item level, to model items that are taxed differently on the same subscription.inclusive
taxes, find a way to support passing in a customer'sjurisdiction
and set that so it can be used for reporting, etc.This can be done separately from Payment Intent / SCA support which is already listed as a separate issue (#636) in this repo, but it seems like a modest step that can unlock richer tax functionality.
The text was updated successfully, but these errors were encountered: