diff options
author | andrea longhi <andrea@spaghetticode.it> | 2020-05-25 18:40:35 +0200 |
---|---|---|
committer | andrea longhi <andrea@spaghetticode.it> | 2020-05-26 08:59:11 +0200 |
commit | 9ed7864c17f34a5d0cc56bf0c018edf05aad3599 (patch) | |
tree | d3e606e97211deb9d52406ad28590584816caced /lib/super_good | |
parent | fdc34a3f75fc9ce8f95ed5e75158faa1e0213631 (diff) |
Use shipping_calculator lambda for order shipping param
`APIParams#order_params` should use the `shipping_calculator` lambda
instead of a hardcoded value for providing shipping costs to TaxJar.
Diffstat (limited to 'lib/super_good')
-rw-r--r-- | lib/super_good/solidus_taxjar/api_params.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar/api_params.rb b/lib/super_good/solidus_taxjar/api_params.rb index 6458018..b3c02fe 100644 --- a/lib/super_good/solidus_taxjar/api_params.rb +++ b/lib/super_good/solidus_taxjar/api_params.rb @@ -7,7 +7,7 @@ module SuperGood .merge(customer_params(order)) .merge(order_address_params(order.tax_address)) .merge(line_items_params(order.line_items)) - .merge(shipping: order.shipment_total) + .merge(shipping: shipping(order)) .merge(SuperGood::SolidusTaxJar.custom_order_params.(order)) .tap do |params| next unless SuperGood::SolidusTaxJar.logging_enabled |