#parsimonium - automatic tax
1 messages · Page 1 of 1 (latest)
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?
Note that the dashboard setting is a default but notes that you can still override this for individual payments/requests.
{: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"}}
automatic_tax=>{:enabled=>true}
yes but theres no way in the api to know if an account has auto tax enabled
What are you trying to do?
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
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
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
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?
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?
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}
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
As noted above, there is no way for you to gather this info — you would have to ask the Connected Account user.
ok so there is no way to dynamically enable or disable auto tax based on the users selection
No that's not possible