<% provide(:title, 'Thankyou') %>
<% if @shop.charge_declined? %>

Oops! Looks like you declined the charge. Unfortunately, you'll have to accept the charge on the next screen in order to continue installing the application.

<% elsif @shop.charge_cancelled? %>

Your authorized charge for this application has expired. This could have occurred if:

In either case, it's no problem! Simply click okay and you'll be asked to authorize a new charge. Don't worry - you *wont'* be billed twice.

<% else %>

Thanks for installing <%= Rails.configuration.x.shopify_app_name %>!

Before we start setting things up, we need you to authorize a charge for the application.

<% end %>
<%= form_tag disco_app.create_charge_path, method: 'POST', target: '_parent' do %>
<%= submit_tag 'Okay', class: 'form-input' %>
<% end %>