#RiderFx3
1 messages · Page 1 of 1 (latest)
hey
Hi 👋
What API are you using to charge the customer?
Stripe v1 via cURL in PHP
I did a SetupIntent first because I deal with subscriptions
The tax rate would apply to items in the subscription
Yep I can pass the tax rate ID when creating a subscription but I see nothing in the dosc whern creating a charge
What do you mean "when creating a charge"? The tax rate will be applied on Invoices generated by that Subscription
After creating the subscription I creating a charge
Because I sell a subscription + object in one time payment
Or maybe I have to do a PaymentIntent instead of charge ?
The Charge API doe not support collecting tax
Neither does the Payment Intent
For one-off charges you will want to use one-off Invoices
So how can I pass the tax rate ?
I can setup this in the dashboard one time and never touch it again ?
What do you mean here?
Set default tax rates for the entire invoice
If you sell one type of product, or have simple tax needs, you can set a default tax rate on the invoice. Default tax rates apply to all invoice line items. For more complex use cases, you can also set an item-level tax rate that overrides the default tax rate. You can add up to five default tax rates to each invoice.
If you’re creating an invoice through the Dashboard, you can assign a default tax rate after you add an item.
Is there any way to setup this in the dashboard for every payment ?
Not that I know of
Since not all forms of payment (Charge, Payment Intent) support collecting taxes based on tax rates
That is entirely dependent on how you are integrating. You mentioned using Subscriptions. They accept tax rates, so do Invoices. So if you used Subscriptions for recurring payments and Invoices for one-off payments you could include tax rates on all of those transactions
Here is what I do :
- creating setupintents
- validate 3d secure
- creating subscription AND/OR charging a one time payment
Everything is fine with creating subscription beucause I can pass the tax rate ID.
So, fo one-time payment, I have to create an Invoice first ? Then charge it ?
That would be a way to use the same tax rates
otherwise if you want to use Payment Intent you would need to set the amount to cover both the price and the tax to be paid
Sure
It will be confirmed automatically ?
And use the Payment Method created by the Setup Intent.
If you pass confirm=true, off_session=true
Okay thanks.
Happy to help 🙂
Here's an example doc for that situation: https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method