Skip to content

Remove Stripe JS and public key from signup page#17

Draft
Copilot wants to merge 2 commits into
masterfrom
copilot/remove-stripe-token-js-files
Draft

Remove Stripe JS and public key from signup page#17
Copilot wants to merge 2 commits into
masterfrom
copilot/remove-stripe-token-js-files

Conversation

Copilot AI commented Dec 31, 2025

Copy link
Copy Markdown

The signup page loaded Stripe.js and exposed the public API key despite not collecting payment information. Signup uses save_without_payment which creates Stripe customers without credit cards.

Changes

  • Removed Stripe public key meta tag from app/views/static_pages/signup.html.erb
  • Retained form masking JS for phone/zip formatting

Before

<% content_for :head do %>
  <%= tag :meta, :name => "stripe-key", :content => STRIPE_PUBLIC_KEY %>
  <%= render 'shared/form_js_includes' %>
<% end %>

After

<% content_for :head do %>
  <%= render 'shared/form_js_includes' %>
<% end %>

Stripe integration remains unchanged on billing/upgrade pages where payment is actually collected.

Original prompt

This section details on the original issue you should resolve

<issue_title>Stripe token and JS files don't need to be on signup page</issue_title>
<issue_description>Apparently you can signup a user without all that mess of JS and token, plus makes page load faster.
</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: richardjortega <1143885+richardjortega@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove Stripe token and JS files from signup page Remove Stripe JS and public key from signup page Dec 31, 2025
Copilot AI requested a review from richardjortega December 31, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stripe token and JS files don't need to be on signup page

2 participants