Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nationalities of donors #1102

Closed
Changaco opened this issue May 15, 2018 · 7 comments · Fixed by #2302
Closed

Nationalities of donors #1102

Changaco opened this issue May 15, 2018 · 7 comments · Fixed by #2302
Assignees

Comments

@Changaco
Copy link
Member

Some organizations cannot accept donations from foreign nationals, thus they are currently unable to use Liberapay.

@Mikaela
Copy link

Mikaela commented Jul 5, 2019

It seems that in Finland the opposite may be true, liberapay/liberapay.org#30 (comment), Finns can receive donations from foreigners, but receiving donations from people located in Finland requires a money collecting permit from authorities and that won't be given for individuals.

I guess Liberapay should have option to either whitelist or blacklist countires, so if someone cannot receive donations from foreigners, they could whitelist their own country, and Finns could blacklist Finland.

@revi
Copy link
Member

revi commented Jul 5, 2019

This would also resolve #1280 as well.

@Changaco Changaco added the good first issue suitable for new contributors label Sep 4, 2020
@Changaco
Copy link
Member Author

Changaco commented Sep 4, 2020

Implementation guide:

  • create a patron_countries column in the recipient_settings table
  • create www/%username/edit/countries.spt based on www/%username/edit/currencies.spt
  • modify templates/macros/nav.html: add the new Countries page to the settings nav
  • modify templates/macros/your-tip.html: warn the donor if they appear to be in a country that the recipient doesn't accept donations from
  • modify liberapay/payin/common.py: check the donor's country if a recipient doesn't accept all of them

@Mikaela
Copy link

Mikaela commented Dec 18, 2023

I have recently took the risk of starting to use LiberaPay also for receiving regardless of liberapay/liberapay.org#30 and would very much appreciate this feature to reduce the risk of law violation and I think I am far from alone in that.

Currently my only protection is telling readers of my Finnish (and through machine translation Swedish) profile rudely to go away due to the law and I don't know whether that is enough to be considered to not be appealing to Finnish residing public with the language the UI I cannot control uses.

Speaking of which I think in the case of liberapay/liberapay.org#30, permanent or long term residence is more relevant than nationality which the issue title refers to. Other considerations would be multiple nationalities/residencies and bank account or payment card countries in case LiberaPay is aware of those.

Additionally I think there is demand in blocking supporters from conflict areas, especially Russia in the west. I think UI-wise the option should either have a list of allowed or forbidden countries depending on users local legislation.

@Changaco
Copy link
Member Author

I've pushed an initial implementation in #2302. It looks at two sources of information to determine the country of origin: the donor's IP address and the donor's payment instrument. The first one is merely a guess and only results in a warning being displayed in the donation form. The second one isn't a guess and results in a payment being rejected.

Additionally I think there is demand in blocking supporters from conflict areas, especially Russia in the west.

Blocking donations from Russia would have very little impact as it's almost impossible to donate from Russia anyway due to the restrictions put in place by the big card networks (Visa and Mastercard). It also seems counterproductive to me, as donations coming from Russia deplete Russia's foreign currency reserves and fuel Russia's internal inflation.

@Changaco
Copy link
Member Author

Changaco commented May 7, 2024

The initial implementation is finally complete and will be deployed later this week.

@Changaco
Copy link
Member Author

Done: https://liberapay.com/about/me/edit/countries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants