diff --git a/media/css/mkt/in-app-payments-proto.less b/media/css/mkt/in-app-payments-proto.less deleted file mode 100644 index 40603ea552..0000000000 --- a/media/css/mkt/in-app-payments-proto.less +++ /dev/null @@ -1,27 +0,0 @@ -html { - background: none; -} -body { - border: none; -} -#page { - margin: 0; - min-height: 250px; - min-width: 300px; - max-width: none; - width: auto; - height: auto; -} -.payment-screen { - border: 0; - width: 300px; - margin: 0 auto; - z-index: auto; - border-radius: 0; - box-shadow: none; - padding: 1em; - position: relative; - float: none; - background: none; - left: auto; -} diff --git a/media/js/mkt/inapp_payments_proto.js b/media/js/mkt/inapp_payments_proto.js deleted file mode 100644 index 900307b5d2..0000000000 --- a/media/js/mkt/inapp_payments_proto.js +++ /dev/null @@ -1,21 +0,0 @@ -(function(exports) { - "use strict"; - - // Close the thank you window. TODO: Thank you windows are going away! - $('#close-moz-pay-win').click(function(e) { - e.preventDefault(); - _send('moz-pay-success'); - }); - - $('#close-moz-error-win').click(function(e) { - e.preventDefault(); - _send('moz-pay-failure'); - }); - - function _send(msg) { - // This is using '*' because we're not sure what the app domain is. - // Maybe we can find that out. - window.top.postMessage(msg, '*'); - } - -})(typeof exports === 'undefined' ? (this.inapp_payments = {}) : exports); diff --git a/migrations/389-remove-inapp-proto.sql b/migrations/389-remove-inapp-proto.sql new file mode 100644 index 0000000000..f01d01b023 --- /dev/null +++ b/migrations/389-remove-inapp-proto.sql @@ -0,0 +1 @@ +DELETE FROM waffle_switch_mkt where name='in-app-payments-proto'; diff --git a/mkt/asset_bundles.py b/mkt/asset_bundles.py index 41a69fe68e..385534a905 100644 --- a/mkt/asset_bundles.py +++ b/mkt/asset_bundles.py @@ -106,53 +106,6 @@ CSS = { 'css/mkt/buttons.less', 'css/mkt/in-app-payments.less', ), - 'mkt/in-app-payments-proto': ( - # Temporarily re-using PayPal styles for in-app-payments UI - # until we actually have a UI. - 'css/impala/base.css', - 'css/legacy/jquery-lightbox.css', - 'css/impala/site.less', - 'css/impala/typography.less', - 'css/global/headerfooter.css', - 'css/impala/forms.less', - 'css/impala/header.less', - 'css/impala/footer.less', - 'css/impala/moz-tab.css', - 'css/impala/hovercards.less', - 'css/impala/toplist.less', - 'css/impala/carousel.less', - 'css/impala/reviews.less', - 'css/impala/buttons.less', - 'css/impala/promos.less', - 'css/impala/addon_details.less', - 'css/impala/policy.less', - 'css/impala/expando.less', - 'css/impala/popups.less', - 'css/impala/l10n.less', - 'css/impala/contributions.less', - 'css/impala/lightbox.less', - 'css/impala/prose.less', - 'css/impala/sharing.less', - 'css/impala/abuse.less', - 'css/impala/paginator.less', - 'css/impala/listing.less', - 'css/impala/versions.less', - 'css/impala/users.less', - 'css/impala/collections.less', - 'css/impala/tooltips.less', - 'css/impala/search.less', - 'css/impala/suggestions.less', - 'css/impala/colorpicker.less', - 'css/impala/personas.less', - 'css/impala/login.less', - 'css/impala/dictionaries.less', - 'css/impala/apps.less', - 'css/impala/formset.less', - 'css/impala/tables.less', - 'css/impala/compat.less', - 'css/impala/localizers.less', - 'css/mkt/in-app-payments-proto.less', - ), 'mkt/stats': ( 'css/mkt/stats.less', ), @@ -274,7 +227,4 @@ JS = { 'js/mkt/browserid.js', 'js/mkt/login.js', ), - 'mkt/in-app-payments-proto': ( - 'js/mkt/inapp_payments_proto.js', - ), } diff --git a/mkt/inapp_pay/templates/inapp_pay/prototype/base.html b/mkt/inapp_pay/templates/inapp_pay/prototype/base.html deleted file mode 100644 index 30e6ce8a8e..0000000000 --- a/mkt/inapp_pay/templates/inapp_pay/prototype/base.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "mkt/base.html" %} - -{% block site_css %} - {{ css('mkt/in-app-payments-proto') }} -{% endblock %} - - -{% block siteheader %} -{% endblock %} - - -{% block sitefooter %} -{% endblock %} - - -{% block js %} - {{ js('mkt/in-app-payments-proto') }} -{% endblock %} - - -{% block content %} -
Close this window to continue.
-- {% with learn_more='http://www.mozilla.org/causes' %} - Your purchase helps support Mozilla's mission. - Learn more - {% endwith %} -
-- -
-{{ exc_message }}
-{% else %} -{{ loc('There was an error processing your payment. Please try again or contact the app if it persists.') }}
-{% endif %} -- -
-{% endblock %} diff --git a/mkt/inapp_pay/templates/inapp_pay/prototype/pay_start.html b/mkt/inapp_pay/templates/inapp_pay/prototype/pay_start.html deleted file mode 100644 index e8f67f19be..0000000000 --- a/mkt/inapp_pay/templates/inapp_pay/prototype/pay_start.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "inapp_pay/prototype/base.html" %} - -{% block screen_content %} -{{ description }}
-{{ loc('Complete your purchase with PayPal. No PayPal account is necessary.') }}
- {% else %} - -{{ loc('You need to be logged in to the Mozilla Marketplace to make payments.') }}
- {% endif %} -{{ loc('Close this window to continue.') }}
-