Skip to content

Commit

Permalink
ensure /subscribe view only requests json
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Kulp committed Nov 14, 2023
1 parent 3e46353 commit 04258f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/subscribe/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= render partial: "shared/heading", locals: { title: 'Start Trial', description: "Start your 14 day free trial of #{ENV['COMPANY_NAME']}." } %>
<%= render partial: "shared/heading", locals: { title: 'Start Trial', description: "Subscribe to #{ENV['COMPANY_NAME']}." } %>

<div id="checkout">
<!-- Checkout will insert the payment form here -->
Expand All @@ -13,8 +13,8 @@ initialize();

// Create a Checkout Session as soon as the page loads
async function initialize() {
const response = await fetch("/billing_portal", {
method: "POST",
const response = await fetch("/billing_portal.json", {
method: 'POST'
});

const { clientSecret } = await response.json();
Expand Down

0 comments on commit 04258f9

Please sign in to comment.