Skip to content

Commit 729dc7d

Browse files
committed
Drop the old BRL block now we've resolved it payment side
1 parent 05cff57 commit 729dc7d

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/model/account/account-store.ts

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -181,30 +181,7 @@ export class AccountStore {
181181
return;
182182
}
183183

184-
const planCurrency = (this.subscriptionPlans[selectedPlan].prices as any).currency;
185-
const isRiskyPayment = planCurrency === 'BRL' &&
186-
this.userEmail?.endsWith('@gmail.com'); // So far, all chargebacks have been from gmail accounts
187-
188-
const newUser = !this.user.subscription; // Even cancelled users will have an expired subscription left
189-
if (newUser && isRiskyPayment) {
190-
// This is annoying, I wish we didn't have to do this, but fraudulent BRL payments are now 80% of chargebacks,
191-
// and we need to tighten this up and block that somehow or payment platforms will eventually block
192-
// HTTP Toolkit globally. This error message is left intentionally vague to try and discourage fraudsters
193-
// from using a VPN to work around it. We do still allow this for existing customers, who are already
194-
// logged in - we're attempting to just block the creation of new accounts here.
195-
196-
trackEvent({ category: 'Account', action: 'Blocked purchase', value: selectedPlan });
197-
198-
alert(
199-
"Unfortunately, due to high levels of recent chargebacks & fraud, subscriptions for new accounts "+
200-
"will temporarily require manual validation & processing before setup.\n\n" +
201-
"Please email purchase@httptoolkit.com to begin this process."
202-
);
203-
204-
return;
205-
}
206-
207-
// Otherwise, it's checkout time, and the rest is in the hands of Paddle
184+
// It's checkout time, and the rest is in the hands of Paddle/PayPro
208185
yield this.purchasePlan(this.user.email!, selectedPlan);
209186
} catch (error: any) {
210187
reportError(error);

0 commit comments

Comments
 (0)