diff --git a/services/web/app/src/Features/Subscription/SubscriptionController.js b/services/web/app/src/Features/Subscription/SubscriptionController.js index 4a51407d30..1191ac9f50 100644 --- a/services/web/app/src/Features/Subscription/SubscriptionController.js +++ b/services/web/app/src/Features/Subscription/SubscriptionController.js @@ -178,7 +178,6 @@ async function paymentPage(req, res) { currency, countryCode, plan, - showStudentPlan: req.query.ssp === 'true', recurlyConfig: JSON.stringify({ currency, subdomain: Settings.apis.recurly.subdomain, diff --git a/services/web/app/views/subscriptions/new-updated.pug b/services/web/app/views/subscriptions/new-updated.pug index dc872e0dac..5fa22261a2 100644 --- a/services/web/app/views/subscriptions/new-updated.pug +++ b/services/web/app/views/subscriptions/new-updated.pug @@ -13,12 +13,6 @@ block content .container(ng-controller="NewSubscriptionController" ng-cloak) .row.card-group .col-md-3.col-md-push-1 - if showStudentPlan - a.btn-primary.btn.plansPageStudentLink( - href, - ng-click="switchToStudent()" - ) #{translate("special_price_student")} - .card.card-first .price-feature-description h4(ng-if="planName") {{planName}} diff --git a/services/web/app/views/subscriptions/new.pug b/services/web/app/views/subscriptions/new.pug index 8c58d5ed66..57da95e518 100644 --- a/services/web/app/views/subscriptions/new.pug +++ b/services/web/app/views/subscriptions/new.pug @@ -310,12 +310,6 @@ block content .col-md-3.col-md-pull-4 - if showStudentPlan - a.btn-primary.btn.plansPageStudentLink( - href, - ng-click="switchToStudent()" - ) #{translate("special_price_student")} - .card.card-first .paymentPageFeatures h3 #{translate("unlimited_projects")} diff --git a/services/web/frontend/js/main/account-upgrade.js b/services/web/frontend/js/main/account-upgrade.js index a92c507838..3bdcec7fda 100644 --- a/services/web/frontend/js/main/account-upgrade.js +++ b/services/web/frontend/js/main/account-upgrade.js @@ -1,19 +1,10 @@ import * as eventTracking from '../infrastructure/event-tracking' -import getMeta from '../utils/meta' - -const interstitialPaymentAfterPaywallVariant = - getMeta('ol-splitTestVariants')?.['interstitial-payment-from-paywall'] ?? - 'default' function startFreeTrial(source, version, $scope) { - const plan = 'collaborator_free_trial_7_days' - eventTracking.send('subscription-funnel', 'upgraded-free-trial', source) eventTracking.sendMB('paywall-click', { 'paywall-type': source }) const searchParams = new URLSearchParams({ - planCode: 'collaborator_free_trial_7_days', - ssp: 'true', itm_campaign: source, }) @@ -25,15 +16,7 @@ function startFreeTrial(source, version, $scope) { $scope.startedFreeTrial = true } - if (interstitialPaymentAfterPaywallVariant === 'active') { - window.open( - `/user/subscription/choose-your-plan?${searchParams.toString()}` - ) - } else { - searchParams.set('ssp', 'true') - searchParams.set('planCode', plan) - window.open(`/user/subscription/new?${searchParams.toString()}`) - } + window.open(`/user/subscription/choose-your-plan?${searchParams.toString()}`) } function upgradePlan(source, $scope) { diff --git a/services/web/test/frontend/components/shared/start-free-trial-button.spec.tsx b/services/web/test/frontend/components/shared/start-free-trial-button.spec.tsx index c1a4828319..414c20b070 100644 --- a/services/web/test/frontend/components/shared/start-free-trial-button.spec.tsx +++ b/services/web/test/frontend/components/shared/start-free-trial-button.spec.tsx @@ -82,7 +82,7 @@ describe('start free trial button', function () { .should('eq', 'cypress-test') cy.get('@Open').should( 'have.been.calledOnceWithExactly', - '/user/subscription/new?planCode=collaborator_free_trial_7_days&ssp=true&itm_campaign=cypress-test' + '/user/subscription/choose-your-plan?itm_campaign=cypress-test' ) expect(onClickStub).to.be.called })