Prepaid Premium Codes

Making a purchase below will generate a single-use code that can be redeemed at any time for a Premium subscription on Notebook.ai. You can purchase these codes for yourself if you'd like to prepay for a certain amount of months without a recurring monthly subscription, or for others if you'd like to gift a Notebook.ai Premium membership to someone else!


You can purchase as many codes as you'd like and redeem them whenever you'd like.


While your Premium is active, you'll have access to <%= Rails.application.config.content_types[:premium].count %> additional worldbuilding pages: you'll be able to create unlimited <%= Rails.application.config.content_types[:premium].map { |page| " #{page.icon} #{page.name.pluralize}" }.to_sentence.html_safe %>!

<%= image_tag 'tristan/small.webp', class: 'tooltipped tristan', data: { position: 'left', enterDelay: '500', tooltip: "Hey, I'm Tristan! I'm here to help you around the site!" } %>
Choose a Premium Code to purchase
<%= link_to prepay_paypal_gateway_path(months: 1), class: 'black-text' do %>
star 1 month of Premium

All Premium features for $9.00

<% end %>
<%= link_to prepay_paypal_gateway_path(months: 3), class: 'black-text' do %>
star 3 months of Premium

All Premium features for $24.00 (save $3.00 compared to monthly)

<% end %>
<%= link_to prepay_paypal_gateway_path(months: 6), class: 'black-text' do %>
star 6 months of Premium

All Premium features for $48.00 (save $6.00 compared to monthly)

<% end %>
<%= link_to prepay_paypal_gateway_path(months: 12), class: 'black-text' do %>
star 12 months of Premium

All Premium features for $84.00 (save $24.00 compared to monthly)

<% end %>
Selecting a package will take you to PayPal to complete your purchase, where you can pay from a PayPal balance or with a credit/debit card. Afterwards, you will be redirected here where you will find the code you've purchased listed below.
Your purchased Premium codes

Please note that codes may take up to 5 minutes to appear here after purchase.

<% if current_user.on_premium_plan? && @invoices.any? %>
Since you already have Premium features active, you won't be able to activate any codes on this account yet.
Activation links will appear again whenever you don't have Premium active.
<% end %>
<% @invoices.each do |invoice| %>
<% if invoice.page_unlock_promo_code&.uses_remaining&.zero? %> used <% end %> <%= pluralize invoice.months, 'month' %> of Premium

<% if invoice.page_unlock_promo_code.present? %>

Description: <%= invoice.page_unlock_promo_code.description %>

<% if invoice.activateable? %>

Promo code: <%= invoice.page_unlock_promo_code.code %>

<% end %> <% else %> <% if invoice.status == 'APPROVED' %> Processing payment... <% else %> <%= link_to 'Awaiting payment', invoice.approval_url %> <% end %> <% end %>

<% unless invoice.page_unlock_promo_code&.uses_remaining&.zero? %> <% if invoice.status == 'CREATED' %> Ready for payment <% else %> Purchased <% end %> <%= time_ago_in_words invoice.created_at %> ago <% end %>

<% if invoice.page_unlock_promo_code %>

Unlocks these <%= pluralize invoice.page_unlock_promo_code.page_types.count, 'page type' %> for <%= invoice.months * 30 %> days:
<% invoice.page_unlock_promo_code.page_types.each do |page_type| %> <% page_type_class = content_class_from_name(page_type) %> <%= link_to polymorphic_path(page_type_class) do %> <%= page_type_class.icon %> <% end %> <% end %>

<% end %>
<% if invoice.activateable? %>
<%= link_to '#', class: 'btn hoverable black-text white right activator', onclick: 'return false' do %> share Gift <% end %> <% unless current_user.on_premium_plan? %> <%= form_for :promotional_code, url: redeem_path do |form| %> <%= form.hidden_field :promo_code, value: invoice.page_unlock_promo_code.code %> <%= form.submit 'Activate', class: 'hoverable btn blue white-text', data: { confirm: "Are you sure you wish to activate this promo code? It can only be used once." } %> <% end %> <% end %>
<% else %>
<% if invoice.page_unlock_promo_code && invoice.page_unlock_promo_code.uses_remaining.zero? && invoice.page_unlock_promo_code.promotions.any? %> Activated <%= time_ago_in_words invoice.page_unlock_promo_code.promotions.last.created_at %> ago <% else %> <% if invoice.status == 'CREATED' %> Ready for payment <% else %> Purchased <% end %> <%= time_ago_in_words invoice.created_at %> ago <% end %>
<% end %> <% if invoice.page_unlock_promo_code.present? %>
Share this code close

Anyone you send this code to can redeem it for their own account, activating the <%= pluralize invoice.months, 'month' %> of Premium immediately. To share it, send the following link with them:

If they don't already have a Notebook.ai account, you'll also be credited with their referral.

<% end %>
<% end %>