Recently, while creating a subscription checkout form using Stripe Elements, I wanted to list the plans along wth their pricing and details.
The form uses a collection input to list the plans as radio buttons, but the methods in this guide should work for checkboxes and selects.
Here is the input statement that we are working with for starters:
<%= f.input :plan_id,
as: :radio_buttons %>
Currently, this will display the following label and radio buttons (Note that this label is provided using I18n):
Please select your plan:
○ plan 1
○ plan 2
I already have text with instructions...more