You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, you can pass a block containing custom form elements to stripe_elements_tag:
325
+
326
+
## Custom Elements
327
+
328
+
>Stripe::Rails allows you to easily include your own custom form elements
329
+
> within the Stripe form by including those form elements in a block passed to
330
+
>`stripe_elements_tag`:
331
+
332
+
```erb
333
+
<%= stripe_javascript_tag %>
334
+
<%= stripe_elements_tag(submit_path: billing_path) do %>
335
+
<%= label_tag 'email', 'Email' %>
336
+
<%= text_field :user, :email %>
337
+
<% end %>
338
+
```
339
+
323
340
### Configuration options
324
341
325
342
Stripe::Rails comes bundled with default CSSandJavascriptforStripe elements, making it easy to drop in to your app. You can also specify your own assets paths:
0 commit comments