@@ 403,6 403,8 @@ class JmpPay < Roda
end
def retail_rate(rates)
+ return unless rates&.first&.dig("total")
+
total = BigDecimal(rates.first["total"], 2)
total *= 0.75 if params["currency"] == "USD"
params["country-name"] == "US" ? total.round : total.ceil