We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 181162e commit b5e1645Copy full SHA for b5e1645
app/views/pages/index.html.erb
@@ -3,6 +3,19 @@
3
<% if user_signed_in? %>
4
<p>Hello, <%= current_user.email %></p>
5
<nav><%= button_to "Log out", destroy_user_session_path, method: :delete %></nav>
6
+
7
+ <form action="/charge" method="POST">
8
+ <script
9
+ src="https://checkout.stripe.com/checkout.js" class="stripe-button"
10
+ data-key="<%= Rails.application.secrets.stripe_publishable_key %>"
11
+ data-label="Upgrade Membership"
12
+ data-name="RSpec Rails Examples"
13
+ data-description="Member Upgrade"
14
+ data-currency="usd"
15
+ data-amount="999">
16
+ </script>
17
+ </form>
18
19
<% else %>
20
<p>Not registered? <%= link_to "Sign up", new_user_registration_path %></p>
21
<nav>
0 commit comments