r/webdev • u/TDex96 • Feb 05 '19
Client did not pay?
https://github.com/kleampa/not-paid144
u/joemecpak Feb 05 '19
« I don’t feel so good... »
0
75
u/xangadix Feb 05 '19
I do this. But with rotation instead of opacity.
13
u/dance_rattle_shake Feb 05 '19
Do you have any sites currently rotated? What's the average turnaround time when a company realizes you've done this?
13
u/ihavewebdevquestions Feb 06 '19
average turnaround time
I really hope this was intentional, because I sniggered like a dork.
1
2
u/xangadix Feb 06 '19
No sites currently rotated, not for a while actually, last time the client noticed it was at ~10 degrees or so, and paid. She thought it was hilarious. The 3, 4? clients I did it too found it incredibly funny ;)
0
Feb 05 '19
[deleted]
20
u/xangadix Feb 05 '19
No literally like in the article, I rotate 1 degree for every day not paid, until 180 degrees
26
u/PhoenixAvenger Feb 05 '19
Just wait a year and it will be back to normal!
23
u/thiscoolhandluke Feb 05 '19
No. It will be 5 degrees off.
10
u/aflashyrhetoric front-end Feb 05 '19
No problem, I'll just re-shape spacetime so that the year is 360 days.
63
u/isunktheship full-stack Feb 05 '19
I just tweak .htaccess if they have issues (not just "didn't pay", works for other emergencies)
Pretty sure people realize this solution is a fairly malicious one. But to anyone who thinks this is a reasonably solution, it's not, be professional. Put up a placeholder page "under construction" or something.
When the client asks, just remind them you haven't been paid.
If they never pay beyond this.. look into a collection's agency.
Proactive solutions:
Get paid per milestone (e.g. 10 milestones worth 10% apiece.. if they renege you're only out 10%)
Don't take international customers
Ensure assets are under your control until payment has been finalized (e.g. host the app on your own metal)
20
u/scenecunt Feb 05 '19
Don't take international customers
I'd say 50% of my customers are in a different country. As long as your contract is good and the money arrives in your bank/bitcoin wallet, why would the country the customer is in matter?
41
u/i_never_comment55 Feb 05 '19
India and China don't give a fuck if their citizens scam Americans.
If your client is American, at least you can use the legal system to get your money.
9
u/scenecunt Feb 05 '19
Never dealt with Indian or Chinese customers, but I'll keep that in mind if I ever have an American client.
13
u/pilibitti Feb 06 '19 edited Feb 06 '19
It's not just about India or China... Say you have the perfect contract. Client says "I'm not going to pay" or ghosts you, or breaches the contract in another way. What are you going to do? How are you going to sue them in their country? How will you keep up with the case? I mean it is technically possible, you shop for a lawyer in said country, you hire a lawyer in said country, communicate with them etc. if the language is different, each document will need translation for the courts over there to make sense of it. The legal system there is different. Do you even have a case? Lots of other problems... But how much money / time is it going to cost you? Will it be worth it?
0
u/RustyAndEddies Feb 06 '19
So what exactly prevents you from hiring a local lawyer to settle your debts? Do you have examples of consistent case law that liens imposed by American companies are 100% dismissed in China and India?
12
u/isunktheship full-stack Feb 05 '19
As long as your contract is good
This means nothing overseas.
I have worked with international customers, but it's always a cash first situation.
3
u/Gargan_Roo Feb 06 '19
Ensure assets are under your control until payment has been finalized (e.g. host the app on your own metal)
The only real solution. Never give a client their product before payment. It almost never makes sense and you should have your own staging environment anyway.
1
u/NicePayment Feb 05 '19
Why not take international customers?
10
u/Produkt Feb 05 '19
Much harder to recoup your costs or take them to collections/court. If they screw you out of money you have likely have no resolution
5
u/isunktheship full-stack Feb 05 '19
Not to say "never take them" but if you're looking to minimize risk, an easy "Step 1" is to avoid international customers until you develop a plan that protects your interests. In this case that could be as easy as "Step 1: I get paid, Step 2: you get a product".
It's tough/impossible to settle legal issues between countries. In this situation OP is talking about lost $, if his customer was outside of his country there's no chance he'll be seeing that.
4
u/fucking_passwords Feb 05 '19
Some countries won’t do much to help you get what’s owed to you if the client refuses to pay.
41
27
Feb 05 '19
I think camelCase would be better.
14
4
u/max_kek Feb 05 '19
I think it should be like this (not tested):
(function() { const due_date = new Date('2019-02-05'); const days_deadline = 31; const overdue = Date.now() - due_date.getTime(); if (overdue > 0) { const deadline = days_deadline * 1000 * 60 * 60 * 24; document.documentElement.style.opacity = Math.max(0, 1 - (overdue / deadline)); } })3
u/CarlosTheCoder Feb 05 '19
2
u/dance_rattle_shake Feb 05 '19
SpONgebOBcaSe*
Case capitalization is reflected in the name we give it
22
9
u/Scotticus_Rex Feb 05 '19
This is hilarious.
It could be used for other things too, like a limited time offer or something. Obviously the "shits and giggles" variety but still, its genius in its simplicity.
4
u/ahinkle Join us at /r/laravel Feb 05 '19
Why not just "Contact Billing" big and bold -- solves drama / potential law suits.
4
u/__sebastien Feb 05 '19
Never ever do that. This is utterly unprofessional AND it doesn’t guarantee that you’ll actually get paid.
Instead, don’t deliver to production until full payment, put a clause in your contract, get a lawyer and sue the hell out of them (pay your lawyer with your client’s first downpayment).
Only way to make it professionally.
2
u/KolyaKorruptis Feb 05 '19
Add opacity to the body tag and increase it every day until their site completely fades away.
Obviously you want to decrease opacity. Which is what the script actually does. It still shows the author has no idea what he's talking about.
1
1
u/Kingsleyp091 Feb 05 '19
Why not try to have specific customers who patronize you but once in a while adding a few more.
1
1
1
1
1
0
u/ArcanisCz Feb 05 '19
If client did not pay a you have still access to his hosting, then its easy.
What about scenario, you dont have access to his production enviroment? This will not work.
6
-7
Feb 05 '19
I mean... Don't actually do this. There could be legal repercussions. Sure it's funny, but you could get in trouble for this.
6
u/opus-thirteen Feb 05 '19
... And what repercussion would that be? No slanderous/libelous statement is being made, and you are not affecting IP/property that belongs to another person or company. It is your code that you control until the amount due has been collected.
2
Feb 05 '19 edited Feb 05 '19
Go ask your lawyer sometime then if you don't believe me. Here's some arguments against doing this:
Let's say that I agree for a painter to paint my house. He comes in and paints the house, asks for payment. I don't ahve the payment. Instead of exploring his legal options as a contractor (like putting a lien on my house, small claims court, etc...) he secretly breaks into my house when I'm not home and pulls down his pants pisses all over the walls.
He really should have explored his LEGAL options before using his available unethical vigilante options for some angry revenge in the moment.
You don't legally control the code in most situations, completely, once a business has it on their domain, and it's running and a component of them doing business.
Once the customer has the finished product in use at their site, you can't go back and purposefully sabotage the product, especially if it's crucial to their business ops.
1
Feb 07 '19
Dumb comparison. In this case the code was part of the finished product you've delivered to your client. It just happens to do nothing if said client pays.
-4
-5
-7
0
Feb 05 '19
[deleted]
114
u/the_bananalord Feb 05 '19
If you've contracted a company to write your website, you're probably not going to know where to even find this script, much less how to disable it.
0
Feb 05 '19
[deleted]
31
u/AedificoLudus Feb 05 '19
We should make a codeword to say "client refused to pay, this is the punishment for their sins"
I vote we make it something that sounds vaguely technical, like "Ottowa connection bypass error"
You include it in your code saying "this should fix the Ottowa connection bypass error", which means it should get you paid, but now everyone who knows, knows what it is and can simply say "this is an Ottowa connection bypass error. I'm not able to fix that"
23
7
u/mordisko Feb 05 '19
How about an unused Http code? A 4xx seems fitting as it is a client error, right?
2
u/AedificoLudus Feb 06 '19
That could work, but do you really remember all the 4xx codes? Sure you could look it up, but unless you obfuscate it any reasonable developer would be able to fix it without needing to.
And the point was to give it an obvious name and cause, so that any reasonable developer wouldn't try to fix it.
Maybe you could do both? But I would say it should definitely be something that's really easy to remember
0
Feb 06 '19
[deleted]
1
u/AedificoLudus Feb 06 '19
Maybe but then you have the issue of "is it the user who needs to pay or the client"
0
Feb 06 '19
[deleted]
1
u/participationNTroll Feb 06 '19
Doesn't webmaster imply Dev? Is there a word for website-owner?
→ More replies (0)44
1
u/Vliger2002 Feb 06 '19
If they haven't figured out how to use DOM attribute and subattribute breakpoints yet in their browser debugger, then they probably didn't hire the right developer. The obfuscation will definitely impose a challenge, but I feel confident that I'd be able to find this in a reasonable amount of time.
2
u/Infrah Feb 06 '19 edited Feb 06 '19
Challenge time! Your website is about to start disappearing. You can either pay me to remove it, or remove it yourself. You choose the latter. The "not-paid" code is obfuscated along with this other jQuery code from a single script that is essential to the proper functioning of the website. The JS completely validates. Where is the "not-paid" js? If you find it, remove it and ensure that the JS still validates.
JS Code: https://pastebin.com/raw/Rcgw5zxE
JS Validator: http://esprima.org/demo/validate.html
1
u/Vliger2002 Feb 06 '19
When I include your script in an html doc, I get the following:
Uncaught ReferenceError: phpbb is not definedIs that intentional?
1
u/Infrah Feb 06 '19
You’d need the other relevant phpBB scripts, but for the sake of this, the JavaScript still technically validates although there may be some non-defined variables.
3
2
u/Existential_Owl Feb 06 '19
with other obfuscated JavaScript that is essential to certain site functions.
Nah, I'll stick it next to the obfuscated code that steals from users' crypto-wallets.
2
1
1
u/PUSH_AX Feb 06 '19
Edit: Challenge time! (because a user said that they could remove the code in a reasonable amount of time) Your website is about to start disappearing. You can either pay me to remove it, or remove it yourself. You choose the latter. The "not-paid" code is obfuscated along with this other jQuery code from a single script that is essential to the proper functioning of the website. The JS completely validates. Where is the "not-paid" js? If you find it, remove it and ensure that the JS still validates.
JS Code: https://pastebin.com/raw/Rcgw5zxE
JS Validator: http://esprima.org/demo/validate.html
I mean I ran it through a deobfuscator and determined it was from this (or similar phpbb file) within minutes, as someone technical I doubt I'd have an issue replacing this file or at least finding the difference or the deadline variable and changing it to 99999 to buy time.. Also not sure why it needs to validate? It needs to work right?
Someone non technical? Sure you win, they're fucked. Although I'm not sure who pays for obfuscated code? Surely everyone want's their stuff maintainable for the future? Is the plan to do more work after they've paid to deliver it in a sensible manner?
1
u/Infrah Feb 06 '19 edited Feb 06 '19
Although I'm not sure who pays for obfuscated code?
The purpose of the obfuscation is because the client didn’t pay. I wouldn’t provide obfuscated code to a client that fully paid for the services. The pre-obfuscation code can be provided following payment, in addition to removal of the “not-paid” script.
And yes, that’s the original JavaScript file. I still think most would have a difficult time separating it from the “not-paid” script, because it is mangled in, along with shifting of the string array. If the JavaScript wasn’t from phpBB, but was actually a custom job with ~1,000 lines of custom JS code, it would be even more of a challenge.
1
u/PUSH_AX Feb 06 '19
The purpose of the obfuscation is because the client didn’t pay. I wouldn’t provide obfuscated code to a client that fully paid for the services. The pre-obfuscation code can be provided following payment, in addition to removal of the “not-paid” script.
I think I'd rather just have an ironclad contract in place tbh. It's easier in my experience.
1
u/Infrah Feb 06 '19
Definitely would be easier than going through all this haha, it’s just that someone replied to my comment saying that they could easily remove the code in a reasonable amount of time. Still waiting for the individual to successfully pull it out, although it’s mangled in with the rest of the JavaScript file so it’s easy to mess things up and cause it to not validate, so I doubt it’s as easy as he chalks it up to be.
0
Feb 05 '19
[deleted]
12
u/Mike312 Feb 05 '19
> Do ya'll push your client sites live before receiving payment?
I've done so a handful of time with clients I trust.
Generally I break the project into several pieces, with the last 20-25% due within 30 days of deploying the final site to live.
7
u/Lance_lake CFML Demi-God Feb 05 '19
Do ya'll push your client sites live before receiving payment?
I have my own server that I push to. If they don't pay, they don't get the code. Nice and simple.
2
u/eggtart_prince Feb 05 '19
Can't client issue a chargeback? Bounce a cheque? (Add list of ways to get money back here)
0
0
Feb 05 '19
[deleted]
22
u/chicametipo expert Feb 05 '19
You could have spent this time doing a really helpful PR to that repo.
1
u/Equinox32 Feb 06 '19
But then we wouldn’t have this wonderful reply 😂
2
u/MacGuyverism Feb 06 '19
Why can't we have both?
1
u/Equinox32 Feb 06 '19
Well his argument was that he should have spent the time on a PR not the Reddit comment, so it’s impossible that he could do both in the same time.
But yes, ideally both 👍
0
Feb 06 '19
[deleted]
1
u/chicametipo expert Feb 06 '19 edited Feb 06 '19
Well, if anybody ever wanted a legitimate reason to change a page’s opacity (or really, any attribute in a range from 0-100) over time, they’d look at this source code. And maybe even learn from it. It certainly has real application, somewhere, to someone.
Your PR would increase the quality of the code. Increase the quality of the potential lesson learnt.
Someone had to find this GitHub repo to post it here. Not all viewers of this repo are coming from reddit. Maximum visibility of your changes and education given to the open source world would be provided via a PR – and perhaps a comment here too – as 100% of the reddit users here look at this GitHub repo, and $unknown of the GitHub viewers look at this reddit thread here.
0
Feb 06 '19
[deleted]
3
u/chicametipo expert Feb 06 '19
That’s a tempting challenge and I identify as a rat, so that makes it extra personal.
2
u/chicametipo expert Feb 06 '19
Actually, looks like someone already beat me to it.
0
Feb 06 '19
[deleted]
1
u/chicametipo expert Feb 06 '19 edited Feb 06 '19
It’s a good thing, because it would certainly have been awkward to have that forked repo sitting on my GitHub account. Maybe it’s time for a throwaway account.
PS that guy totally stole your changes, and only your changes, and the reason I say “stole” is because he added his name to the comment credits without attribution... lol
You have made a difference in the world of joke repos today.
0
Feb 06 '19
[deleted]
2
u/fl0at-on Feb 06 '19 edited Feb 06 '19
Hey, it's that guy. My bad. I could try defend myself because I saw your post as inspiration and added more changes, but that ain't fair.
I'm requesting you get attribution. Have a nice day!
→ More replies (0)0
2
0
Feb 06 '19
[deleted]
2
92
Feb 05 '19
[removed] — view removed comment
25
u/AiexReddit Feb 05 '19
No this is the bad comment! This thread is exclusively for advertising how great my "no pay, no product" process serves me and it's disappointing anyone would ever try and make light of a situation about what is clearly a solved problem with a flawless solution.
34
u/dengskoloper Feb 05 '19
Or put in a non-payment clause in the contract, take the site down and save your bandwidth?