Merge pull request #13934 from overleaf/tm-block-subscriptions-restricted-countries

Block web sales to restricted countries

GitOrigin-RevId: 47c0ac1d5dc387369bbadb67f5822d7fc6637d98
This commit is contained in:
Tim Down
2023-07-25 08:03:59 +00:00
committed by Copybot
parent f2b5ac23f8
commit 3aa0fcf464
5 changed files with 46 additions and 6 deletions
@@ -213,6 +213,13 @@ async function paymentPage(req, res) {
currency = recommendedCurrency
}
// Block web sales to restricted countries
if (['CU', 'IR', 'KP', 'RU', 'SY', 'VE'].includes(countryCode)) {
return res.render('subscriptions/restricted-country', {
title: 'restricted',
})
}
res.render('subscriptions/new-react', {
title: 'subscribe',
currency,