r/webdev•
redocks

Way to programmatically charge myself?

I’ve created a tool where I have to do a task or else I face a penalty. Right now the penalty is automatic weird text messages to friends but I want to make it charge me $20.

The issue is that I’m not a business. So I can’t use stripe because the money would go to my own linked bank account. I want to use PayPal and send the money to a random email but you have to be a business to do that.

Does anybody know any ways for me to programmatically charge myself? Even something creative like signing up for some pay as you go service and using enough of that service every time a penalty comes around to charge me $X.

Posted Aug 12, 2019, 3:37 AM UTC

114
CreativeTechGuyGamesJavaScript•

You can send the money to someone in particular if you have their paypal address. If you need help, I'll happily let you send money to me. :)

10
redocksOP•

Programmatically? I’ve tried but to make payouts via the PayPal API it seems like you need a business account which requires a legal business entity register (I think). But if you have a way around this I’d gladly send you money when I receive the penalty

1
CreativeTechGuyGamesJavaScript•

I spent a while researching and it looks really hard to send money to someone programatically. Have you considered browser automation to navigate PayPal like a normal user and send money that way? That would probably be way easier.

1
redocksOP•

I’ve made crawlers in Python, but when I tried JS (horseman or something like that) it had lots of problems. Any recommendations?

1
CreativeTechGuyGamesJavaScript•

I'd recommend Puppeteer. I've heard a lot of good things.

1
hmmuhh•

Beeminder.com exists as a quantified self tool that does exactly what you want, by charging you when you fail to achieve your goals.

If you still want to DIY, maybe putting some cash into crypto currency and programmatically creating and sending a transaction to a charitys address could be easier.

2
LastByte•

bwaahahah make a charity donation, every time you don't do a task

1
LastByte•

I take that back, you can wire me money ;)

1
redocksOP•

But how can I do this programmatically?

1
LastByte•

That depends - where are you transferring the money from your bank, paypal or some where else? And who are you sending it too. For example if you want to pay with paypal, you would have to check the paypal api. You probably would need to get an authorisation token and write a login script and then when your session is instantiated you could make a payment.

0
slimeyena•

your time would be better spent developing a healthier motivation

1
[deleted]•

I don’t get it, do you transfer the money to a saving account or what? If you want you can programmatically transfer the money to me 🤣 I’ll even build the whole thing.

1
spootedcow•

If you're planning on keeping the money maybe just deposit $20 into your PayPal/cash app/venmo account so it's out of your bank account, but still accessible.

0
venikz•

I don't think he wants to keep the money, he wants it to be a punishment. Just moving some money from one wallet to a different wallet you own isn't a punishment.

3