Implement interstitial payment page for free trial button on project page with split test (#8311)

GitOrigin-RevId: b24b4f91d281c2756aed68ec176d138fcdd52e54
This commit is contained in:
M Fahru
2022-06-28 09:36:13 -04:00
committed by Copybot
parent 054b0e2e28
commit d5bc7c450c
4 changed files with 58 additions and 4 deletions

View File

@@ -919,6 +919,21 @@ const ProjectController = {
}
)
},
interstitialPaymentFromPaywallAssignment(cb) {
SplitTestHandler.getAssignment(
req,
res,
'interstitial-payment-from-paywall',
(error, assignment) => {
// do not fail editor load if assignment fails
if (error) {
cb(null, { variant: 'default' })
} else {
cb(null, assignment)
}
}
)
},
latexLogParserAssignment(cb) {
SplitTestHandler.getAssignment(
req,