#parsimonium - automatic tax

1 messages · Page 1 of 1 (latest)

tight sparrow
#

hey there my colleague asked for request examples previously. Do you have exact requests/payments we can review to see what is happening?

using standard accounts with connect leads to a mixture of platform and individual account settings being uses, depending on the context.

#

How are you creating these payments?

tight sparrow
#

Note that the dashboard setting is a default but notes that you can still override this for individual payments/requests.

chilly dune
#

{:success_url=>"https://example/com",
:cancel_url=>"https://example.com",
:payment_method_types=>["card"],
:mode=>"payment",
:customer=>"cus_LUw9oPN7Z0me37",
:line_items=>[{:price=>"price_1KnwU1LfKsjXIANl7F4s31eP", :quantity=>1}],
:payment_intent_data=>{:setup_future_usage=>"off_session"},
:automatic_tax=>{:enabled=>true},
:customer_update=>{:address=>"auto"}}

tight sparrow
#

automatic_tax=>{:enabled=>true}

chilly dune
#

yes but theres no way in the api to know if an account has auto tax enabled

tight sparrow
#

What are you trying to do?

chilly dune
#

bc i explicitly set auto tax to true on my test connect account and auto tax is collected as expected, but if i toggle off auto tax collection how can i know from the api that this account turned off auto tax

#

like from the api i am setting auto tax true, how can i handle accounts who have enrolled to auto tax, but then disabled the togglebutton

tight sparrow
#

You don't know that as a platform -- you'd have to ask your accounts if they want you to enable that feature or not

chilly dune
#

ok so once enabled in code, it is not possible for accounts to disable the feature

#

the feature is obviously disabled before they turn on the feature to begin with. but after the intial "Get Started" click they are permanently in the automatic tax workflow

flat badge
#

Hi there @chilly dune! Stepping in here for @tight sparrow as they needed to step away. I believe the Dashboard setting is only for setting the default and you should still be able to apply auto tax as long as you pass it via the API. Have you tested this with passing it but turning off the DB setting?

chilly dune
#

Yes, I have

#

'acct_1IzoXsLfKsjXIANl'

flat badge
#

And what happened?

#

Was auto tax not applied?

chilly dune
#

auto tax was applied

#

but i turned the dashboard setting off

flat badge
#

Right so as long as you pass auto_tax: {enabled: true} it will be applied regardless of whether your Connected Account user turns off the default, right?

chilly dune
#

yes exactly

#

if they never turned it on to begin with, then autotax is not applied

#

but once they click "get started" with automatic tax and set up that whole page, they are locked in to auto tax

#

regardless of the toggle

#

because our code explicitly states "auto_tax": {enabled: true}

flat badge
#

Yep that is my understanding.

#

Is there an issue with that?

chilly dune
#

well i guess we want to be able to know the state of the auto tax toggle

#

if the account manually turns off auto tax collection, we'd like to know that so we can create the session without auto tax

flat badge
#

As noted above, there is no way for you to gather this info — you would have to ask the Connected Account user.

chilly dune
#

ok so there is no way to dynamically enable or disable auto tax based on the users selection

flat badge
#

No that's not possible