<% title "Purchase Credits" %>

Purchase credits for @<%= @purchaser.username %>

<% if @organizations %> <% @organizations.each do |org| %> <% unless @purchaser.id == org.id %> Switch to <%= org.name %> <% end %> <% end %> <% end %> <% unless @purchaser.is_a? User %> Switch to personal purchase <% end %>
<% if flash[:error].present? %> <% end %>

Credits are used for <%= community_name %> listings as well as upcoming products and services.

1+
$5/per credit
10+
$4/per credit
100+
$3/per credit
1000+
$2.50/per credit

Contact <%= email_link(additional_info: { subject: "Custom Bulk Pricing/Partnerships" }) %> for custom bulk pricing and partnerships.

How many credits does one listing cost?

All listings cost 1 credit, except:

  • products/tools: 5 credits
  • job listings: 25 credits

Buying more credits upfront makes listings more cost-effective.

25 credits purchased today costs $100. 25 credits purchased individually will cost $125, etc.

How many credits <%= params[:organization_id].present? ? "does #{@purchaser.name}" : "do I currently" %> have?

<%= params[:organization_id].present? ? "#{@purchaser.name} has" : "You have" %> <%= @purchaser.credits.where(spent: false).size %> credits.

How can I earn credits?

Members receive 5 credits for every profile badge you earn.

<%= form_for(@credit) do |f| %>
<%= f.number_field :number_to_purchase, id: "amount-input", placeholder: "Enter any amount", autocomplete: "off", min: "0", max: "10000000", required: true %>
<% if @purchaser.is_a? Organization %> <% end %>
<% if @customer %>
<% @customer.sources.each do |source| %>
name="selected_card" value="<%= source.id %>" id="existing-card-<%= source.id %>" />
<% end %>
<% else %>
<%# A Stripe Element will be inserted here. %>
<% end %> <%# Used to display form errors. %>
<% if @purchaser.is_a? Organization %>

*All org admins have access to credits owned by organization

<% end %> <% end %>