Skip to content

Commit

Permalink
Update to 2.2.38, set minimum purchase amount to $0.50
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmgs committed May 1, 2023
1 parent 16d202b commit 3c6d01b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion assets/js/components/billing/PurchaseCreditModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ class PurchaseCreditModal extends Component {
];

const stripe_min_purchase = window.stripe_minimum_purchase
? parseInt(window.stripe_minimum_purchase)
? parseFloat(window.stripe_minimum_purchase)
: 10;
const allButtons = [
<Button
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/common/DashboardLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class DashboardLayout extends Component {
href="https://engineering.helium.com/2022/08/04/console-updates-2.2.20.html"
target="_blank"
>
v2.2.37
v2.2.38
</Button>
)}
</Sider>
Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ config :console,
stripe_secret_key: "sk_test_Lvy2r3SRCzwjfh3tvZsOBTrG00Cm8M7v1q"

config :console,
stripe_minimum_purchase: 10
stripe_minimum_purchase: 0.5

config :console,
dc_cost_multiplier: 1
Expand Down
2 changes: 1 addition & 1 deletion config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ config :console,
stripe_secret_key: System.get_env("STRIPE_SECRET_KEY")

config :console,
stripe_minimum_purchase: 10
stripe_minimum_purchase: 0.5

config :console,
dc_cost_multiplier: 1
Expand Down
4 changes: 2 additions & 2 deletions config/releases.exs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ config :console,
stripe_secret_key: System.get_env("STRIPE_SECRET_KEY")

config :console,
stripe_minimum_purchase: String.to_integer(System.get_env("STRIPE_MINIMUM_PURCHASE") || "10")
stripe_minimum_purchase: String.to_float(System.get_env("STRIPE_MINIMUM_PURCHASE") || "10")

config :console,
dc_cost_multiplier: String.to_integer(System.get_env("DC_COST_MULTIPLIER") || "1")
Expand All @@ -120,4 +120,4 @@ config :console, Console.Mailer,
config :console,
unsupported_countries: System.get_env("UNSUPPORTED_COUNTRIES") || "",
unsupported_cities: System.get_env("UNSUPPORTED_CITIES") || "",
unsupported_ukr_subdivisions: System.get_env("UNSUPPORTED_UKR_SUBDIVISIONS") || ""
unsupported_ukr_subdivisions: System.get_env("UNSUPPORTED_UKR_SUBDIVISIONS") || ""

0 comments on commit 3c6d01b

Please # to comment.