{% set contrib = addon.takes_contributions and addon.has_full_profile() or errors %} {% if contrib and not errors %}

{{ _('You are currently requesting contributions from users')|safe }}
{% trans url=url('addons.about', addon.slug), url_full=url('addons.about', addon.slug, host=settings.SITE_URL) %} Your contribution page: {{ url_full }} {% endtrans %}

{{ csrf() }}
{% elif not errors %} {% if waffle.switch('marketplace') %}

{% if webapp %} {{ loc('Mozilla is pleased to provide you with the ability to sell your app in our Marketplace. Please read the important information below to learn about this program.') }} {% else %} {% trans %} Mozilla is pleased to provide you with the ability to ask for optional financial contributions or to sell your add-on in our Marketplace. Please read the important information below to learn about these programs. {% endtrans %} {% endif %}

{% endif %} {% if not webapp %}

{{ _('Voluntary Contributions') }}

{{ _('Add-ons enrolled in our contributions program can request voluntary financial support from users.') }}

{% if not addon.has_full_profile() %}

{% trans url=addon.get_dev_url('profile') %} Contributions are only available for add-ons with a completed developer profile. {% endtrans %}

{% elif addon.status != amo.STATUS_PUBLIC %}

{% trans %} Contributions are only available for fully reviewed add-ons. {% endtrans %}

{% elif addon.upsell %}

{% trans upsell=addon.upsell.premium.name, doc_url=url('devhub.docs', doc_name='marketplace', doc_page='voluntary') %} You cannot set up Contributions while your add-on is linked with a premium add-on enrolled in the Marketplace. To enable Contributions, please disassociate your add-on from {{ upsell }}. {% endtrans %} {# TODO(marketplace-docs): Learn more. #}

{% else %} {% if waffle.switch('marketplace') %}
{% trans doc_url=url('devhub.docs', doc_name='marketplace', doc_page='voluntary') %} or learn more {% endtrans %}
{% endif %} {% endif %}
{% endif %} {% if waffle.switch('marketplace') %}

{{ _('Mozilla Marketplace') }}

{% if webapp %}

{{ _('Premium apps can be sold in our marketplace by themselves or as an upgrade to a free version of your app.') }}

{% else %}

{{ _('Premium add-ons can be sold in our marketplace by themselves or as an upgrade to a free version of your add-on.') }}

{% endif %} {% if not addon.can_become_premium() %}

{% if webapp %} {{ loc('You cannot enroll in the Marketplace once your app has been reviewed and downloaded or if your app is being upsold. Please submit a new app to enroll.') }} {# TODO(marketplace-docs): Learn more. #} {% else %} {{ loc('You cannot enroll in the Marketplace once your add-on has been reviewed and downloaded or if your add-on is being upsold. Please submit a new add-on to enroll.') }} {# TODO(marketplace-docs): Learn more. #} {% endif %}

{% else %}
{% trans doc_url=url('devhub.docs', doc_name='marketplace') %} or learn more {% endtrans %}
{% endif %}
{% endif %} {% endif %} {% include "devhub/payments/voluntary.html" %} {% if waffle.switch('marketplace') and addon.can_become_premium() %} {% include "devhub/payments/first-confirm.html" %} {% endif %}