#RiderFx3

1 messages · Page 1 of 1 (latest)

pale plinthBOT
zealous igloo
#

hey

iron citrus
#

Hi 👋
What API are you using to charge the customer?

zealous igloo
#

Stripe v1 via cURL in PHP

#

I did a SetupIntent first because I deal with subscriptions

iron citrus
#

The tax rate would apply to items in the subscription

zealous igloo
#

Yep I can pass the tax rate ID when creating a subscription but I see nothing in the dosc whern creating a charge

iron citrus
#

What do you mean "when creating a charge"? The tax rate will be applied on Invoices generated by that Subscription

zealous igloo
#

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 ?

iron citrus
#

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

zealous igloo
#

So how can I pass the tax rate ?

zealous igloo
#

I can setup this in the dashboard one time and never touch it again ?

iron citrus
#

What do you mean here?

zealous igloo
#

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 ?

iron citrus
#

Not that I know of

#

Since not all forms of payment (Charge, Payment Intent) support collecting taxes based on tax rates

zealous igloo
#

So I have to give to Stripe the price tax including ?

#

included*

iron citrus
#

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

zealous igloo
#

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 ?

iron citrus
#

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

zealous igloo
#

Okay thanks

#

Can I do a PaymentIntent after a confirmed SetupIntent ?

iron citrus
#

Sure

zealous igloo
#

It will be confirmed automatically ?

iron citrus
#

And use the Payment Method created by the Setup Intent.

If you pass confirm=true, off_session=true

zealous igloo
#

Okay thanks.

iron citrus
#

Happy to help 🙂