#Senthil-paymentintent-tax

1 messages · Page 1 of 1 (latest)

patent glen
#

Hi there, we don't currently support specifying taxes (via Stripe Tax) on PaymentIntents that aren't created via Stripe Checkout or Stripe Billing.

split vortex
#

ok, is it a good approach to query the tax id created? Is that suggested/possible?

patent glen
#

I'm not exactly sure what you mean, can you clarify?

split vortex
#

To avoid hardcoding is it a good approach to do a service call to get the appropriate tax rate?

patent glen
#

Are you using Subscriptions/Invoices? Or Stripe Checkout?

split vortex
#

PaymentIntent::create([
'amount' => $price * 1.066 * 100,
'currency' => 'usd',
'customer' => $pgwcustid,
'payment_method' => $pmid,
'off_session' => true,
'confirm' => true,
]);

patent glen
#

Yeah okay so you are likely using Elements with PaymentIntents which doesn't support tax. So you can't use tax rates with this integration.

split vortex
#

Yes, but can I query the tax rate in my custom code first and manually do the taxes?

patent glen
#

Ah yeah if you want to just store the tax rates in Stripe and retrieve them and then add that to the amount you are charging then that certainly works.

split vortex
#

yep, thanks for confirming. But is there a preferred approach on mapping the tax rates to the sale?

patent glen
#

Not really. This is really up to you.

split vortex
#

ok, understand. Any reason why this is not implemented?

patent glen
#

It is on the roadmap!

split vortex
#

ok great!