{% extends "base_modal.html" if is_ajax else "impala/base_shared.html" %} {% block classes %}paypal-modal{% endblock %} {% block content %}
{% if addon.is_webapp() %}

{{ loc('Purchase App') }}

{% else %}

{{ loc('Purchase Add-on') }}

{% endif %}
{{ loc('Thank you!') }}
{# TODO(apps): Finalize copy. #} {% with addon_name=addon.name, manifest_url=addon.manifest_url if addon.is_webapp() else '', receipt=receipt, href='#' if addon.is_webapp() else download, class='trigger_app_install' if addon.is_webapp() else 'trigger_download' %} Your purchase of {{ addon_name }} is complete.

If installation does not automatically begin, please click here.

{% endwith %}

{% with learn_more='http://www.mozilla.org/causes' %} Your purchase helps support Mozilla's mission. Learn more {% endwith %}

{% if waffle.flag('allow-pre-auth') and not amo_user.has_preapproval_key() %}
{{ csrf() }}

{{ loc('Want to do this faster next time?') }}

{{ loc('Setting up PayPal pre-approval allows you to buy apps quickly on this site. They also allow you to use in-app purchases that go through this site.') }}

{% endif %}
{{ loc('My Purchases') }} {# TODO(marketplace-docs) · {{ loc('Marketplace Support') }} #}
{% endblock %}