analytics/lib/plausible_web/templates/billing/_paddle_script.html.eex
RobertJoonas 9022234aa6
added invoices section (#1511)
* added invoices section

* fixed formatting

* UI and code style improvements, paddle sandbox setup only on dev environment (fixed)
2021-12-09 15:49:57 +02:00

7 lines
332 B
Elixir

<script type="text/javascript" src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script>
<%= if Application.get_env(:plausible, :environment) == "dev" do %>
Paddle.Environment.set('sandbox');
<% end %>
Paddle.Setup({vendor: <%= Application.get_env(:plausible, :paddle) |> Keyword.fetch!(:vendor_id) %> });
</script>