mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
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:
@@ -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,
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
extends ../layout-marketing
|
||||
|
||||
block content
|
||||
main.content.content-alt#main-content
|
||||
.container
|
||||
.error-container
|
||||
.error-details
|
||||
p.error-status #{translate("restricted")}
|
||||
p.error-description !{translate("sorry_detected_sales_restricted_region", {link: "/contact"})}
|
||||
p.error-actions
|
||||
a.error-btn(href="/") #{translate("home")}
|
||||
Reference in New Issue
Block a user