SuperGoodSoft / solidus_taxjar

Support for using TaxJar to handle tax calculations in Solidus
BSD 3-Clause "New" or "Revised" License
12 stars 12 forks source link

Allow options to be passed to TaxJar client calls #258

Open forkata opened 10 months ago

forkata commented 10 months ago

We should allow users of the extension to pass down an options hash to all calls made using the TaxJar client. This is useful in the case where a user wants to specify the timeout for requests as per the documentation here https://github.com/taxjar/taxjar-ruby/tree/master?tab=readme-ov-file#custom-options

Set request timeout in seconds:

client.tax_for_order({ timeout: 30 })