103 comments

[ 3.1 ms ] story [ 186 ms ] thread
Couldn't this be twisted into blackmail in some way by PigClient?
That was my worry with the "will use my considerable SEO skills" part. I would leave that implicit. Just mention that you are angry about the situation and have put up a page explaining your grievance to the public (which is legal), and put the ball in their court to attempt to rectify the situation.
That's a fair point. But I wouldn't recommend any of it in fairness. Sometimes you just roll with the punches.
Explaining grievances to the public by making a site may not be legal in certain countries at all (NL to name one) if there's no clear need to do so for the common good.
It would only matter if it comes out in court, as that's the only place that claim would have any leverage. There's practically zero chance of that happening, they would settle faster than it would take for the ink to dry, so soft threats like these can be very effective.
Are you sure there are no criminal or civil charges that apply? Also, are you a lawyer?
Yes. This kind of vigilantism has a way of backfiring. What is wrong of getting a title in court and sending the sheriff to take pledges? In fact, I never had to go that far; people have always paid up when I called, asking if their address was still good to serve court papers.
Didn't happen in America. Also your sheriff wouldn't travel overseas :P
How? This is like telling someone who stole your car that you expect it back or you'll call the cops...
Specifically the: "pay my final invoice and I will immediately remove the page."

You're telling your client that either they pay you, or you will post defamatory information about them online. While, the information posted may be true, depending on locale it may not matter how true (or false) the remarks are.

Always, always have a contract in place before you start any work.

AIGA have a very useful, free-to-use invoice you can use for design projects: http://www.aiga.org/standard-agreement/ (although it's perhaps a bit more heavy-handed than what I use for consulting agreements).

Cool. Know of a good contract for sys admins?
Absolutely! If they don't want a contract, it's a warning sign... walk away! They don't want a contract because they have no intention of paying you.

The memetic video on this topic:

http://vimeo.com/22053820

We sell a software library and get exactly the same thing. When the payment is late enough I email them and say "your license is revoked".

The person/people I'm emailing never ever know that there's absolutely nothing we can do at a technical level to stop the component working. They say "oh my, please please enable it". Well, if you pay, sure. Payment comes as fast as is humanly possible.

In the case of design, my assumption (correct me if you've tried it and it doesn't work) is to retain copyright of the material until full payment is made. Prior to that point, you license them to use the stuff and only assign copyright when you have all the cash.

Yes copyright is assigned on final payment. I was a bit naive back then :)
Clever - I'd never considered the copyright approach. If they don't pay, you then have legitimate claim for a DMCA take-down.
Copyright law is fairly standard at an international level, DMCA is US specific, it's a layer on top of copyright law and isn't actually necessary in the majority of cases.

If you use a copyrighted material in a manner you're not licensed to do, you are committing copyright theft in most countries you'd do business with, and that is the legal infringement that would form your case.

True - just replace "DCMA take down notice" with "remedies for violating copyright".
> there's absolutely nothing we can do at a technical level to stop the component working

My solution, which I'm not particularly proud of, but have found necessary, is to ensure it's possible to stop the component from working until I've received payment.

Typically, I do this by having an obfuscated statement embedded somewhere in the client's code which does a quick phone home to my web server. When they pay, I remove it.

I've never had to wait more than an hour after pulling the kill switch to get a response.

Maybe it's legally problematic, but I can't make myself see it as being unethical. You've only threatened to tell the truth to a wider audience, and all you want to go away is what they already promised you. How is this wrong?
Well I guess it doesn't feel professional. Maybe unprofessional would have been a better word.
In defence of pigclient.co.uk, I've been using them a long time and have always been happy with their....pigs....
(comment deleted)
(I think you replied to the wrong thread.)
Something that has been working very well for us is asking for payment before the work starts on a set of deliverables. Charging gets very simple, if he pays, you start working, if he doesn't, you don't. Not every client may accept these terms, if they give you trouble on this, it may be an early warning for future payment problems.
All this could be avoided, or at least mitigated, by a proper contract?

His way of solving the problem sounds awfully close to blackmail to me. Sure, he deserves to be paid but is that the right way to go about it? Start with a contract, deliver final product upon receiving the final payment etc.

I know that it is not always possible to wait with shipping until you have been paid but, depending on the client, it should be in most cases.

"by a proper contract?"

Contract implies you also need a stick which is legal action. Obviously depending on the amount of money involved that might simply not be an option.

While not entirely relevant I will bring the following into play, a saying, that goes something like "if you owe the bank $10,000 you have a problem if you owe the bank 10,000,000 the bank has a problem".

This cannot be generalized, as it _heavily_ depends on jurisdiction. OP for example is from the UK.

For example (IANAL and everything):

In germany, if a client hasn't payed an invoice without challenging it, you can get a court order for payment pretty quickly. The legal fees for this are quite small and paid by the client. All you need is proper documentation of the process.

Clients avoid this like the pest, especially if their complaints are not expected hold. Once the court started dunning the other party, most ways of negitation are lost.

The first thing I tell clients is: "if there is any problem with invoices, speak to us immediately, if you don't respond we will go the direct legal route."

This happens rather often. Most of the time, clients are silent because _they cannot pay_ because of miscalculation or other reasons. Sometimes, they are ashamed because of this. So they try to sit it out until better times - which might never come. Talking to them about paying in slices etc. often helps. But often, you need to bring out the big threats to even get them talking.

Also, in any case: if you have the slightest doubt that a client goes towards insolvency, push this as far as you can, especially on the legal side. Insolvency will mostly be handled by order of creditors - try to get your title before everyone else. This might seem hard on a personal level, but this is how it works.

For all this, you often don't need a contract as long as there is documentation of the process. A signed offer by the client goes a long way.

A detailed contract with further ways is always good in that regard (and should _always_ be in place), especially when it comes to licensing or for clear payment terms. E.g., it handles the following scenario:

* A client enters insolvency

* It is decided to sell the assets of the company (including the almost-ready software you produced) to a third party (a classic firesale)

* Some other creditor has preferred rights to the money, so although your client has money now, it is for someone else.

In this case, a contract that regulates that the rights to said piece of software are only the clients once the final payment is there means that the buying party and your client _have to talk to you_ or the deal is off. That could mean that they have to pay you to make the deal happen, giving you preference over all other creditors that want the money out of that deal. And buyers are really careful about such stuff, because anything else involves uncalculatable risk (including you making them loose the full rights on the thing they bought). No legal action on your side involved.

I am in the freelancing business for quite a while now and I never took legal action. But I often threatened taking legal action and you better have grounds to back that up and make the other party see a risk to be on the loosing side.

Thats the other advantage of contracts: threatening with legal action cannot be seen as extorsion because it works though proper channel. Don't fear the legal system, use that other people fear it.

Also, as hard as it may sound: never enter business relationships that you cannot pay the legal costs for.

Good comment but in any case.

"never enter business relationships that you cannot pay the legal costs for."

More or less would indicate not to enter into a business relationship that is very small which of course does make sense since the amount you would lose is very small.

"you can get a court order for payment pretty quickly"

Can't speak for the UK but have won court orders in the US. Doesn't mean you will actually get money. Could be entity folds or further delays. Or there are extra time consuming steps required to get the money. Once again, at least in the US. Also in us something called "confession of judgement" but once again can't get blood from a stone or a moving stone.

"clients are silent because _they cannot pay_ "

Exactly. No money doesn't matter who is compelling what.

"don't need a contract as long as there is documentation of the process. A signed offer by the client goes a long way."

Agree. A contract is an agreement. Can take many forms and be ultimately enforceable. Doesn't have to necessarily have a degree of formality either.

"But I often threatened taking legal action"

Would say thought that one thing to consider is that in certain organizations threatening legal action can be seen as a bluff or simply make the recipient able to pass it off to the legal department where it's not their problem anymore and all motivation to settle is lost. What I have found that often works is to be a "pain in the ass" where the person simply wants you to stop pestering.

Thanks for your comment as well, this is all very true.

On threatening: yes, sure. True professionals will invoke lawyers once you speak about them. Tread carefully, most of the times you don't want that.

He stated he has learned from this - it was 7 years ago.

> Things have changed since I first started out. I now have systems in place to better protect myself and the client. When I first started out I didn’t have a contract in place or a document outlining deliverables. You live, you learn. It could still happen again but far less likely.

I'm glad the author acknowledges that this really isn't a good way of doing business and only really a solution to the realization that you fucked up by not having a clear agreement and payment plan in place prior to starting work.

One suggestion I would have made would be to remove the "you are clearly avoiding contact with me" line, as contributes nothing to the threat, and it makes a huge assumption which you have no way of knowing whether it's true or not. And how bad would you feel if they came back with a truly legitimate reason for not getting back to you, like maybe your contact had a death in their immediate family and took a 1-month leave of absence?

I can't tell you how many times I've misinterpreted tone, action, or inaction over email, text, and telecommunications. I've finally just learned to stop trying to guess a person's motivations or tone within any medium which leaves out so much context.

>that you fucked up by not having a clear agreement and payment plan in place prior to starting work

Clients can ignore payment even when there's a clear agreement and payment plan place in place prior to starting work. How? Not paying.

How would I feel if a client didn't pay me because some reason?

I wouldn't care. Contracts are binding, so fuck you, pay me.

A good practical idea.

I would check into whether the "if/then" creates a case of extortion. (I don't know the answer but it pops into my mind).

That said, even if does (and this is really important although legal opinions might vary) did legally create a possible problem you still have to weigh the chance that the person on the other side is going to pursue that angle or just pay up. [1] I make this point because there are plenty of things that you do in business that aren't 100% defensible but in the end they work and you move on (after taking your chances).

[1] Based upon my many years in business taking chances with things quit frequently. After all people bungie jump, sky dive and do extreme sports because of their judgement that the gain is work the risk.

Seems like a perfectly reasonable response tbh. The only thing that struck me as bizarre was it taking a month before you realized they were avoiding you. I'd say the conditional distribution of someone avoiding you looks like this:

1 unreturned email/phone call: 70%

2 unreturned emails/calls: 95%

3 unreturned emails/calls: 99.9%

And the first one honestly is probably even higher than 70%

My first thought reading this was "Only a month?".

Then I realized that in the real world that's probably quite a while to wait.

I'm accustomed to dealing with government where 4-6+ months is typical and complaining will see you blacklisted. This is part of the reason huge companies are able to rent seek on such work, many small to medium businesses would have a hard time floating 6+ months of payroll continuously.

While government and large businesses often have 30,60+ day payment cycles, at least your contact will respond to you. This sounds like a different situation.
>"While government and large businesses often have 30,60+ day payment cycles, at least your contact will respond to you."

We'd be ecstatic with 30-60 day schedules and I wouldn't consider "Your services are no longer welcome here" to be a desirable "response".

>"This sounds like a different situation."

Obviously.

  | I wouldn't consider "Your services are no
  | longer welcome here" to be a desirable "response".
So they don't tell you when you are getting paid, and were you to enquire as to a date, or general timeline, they would drop you like a bad habit?
I've worked in industries where 30 days after invoice was standard; big customers could push it to 60 days.

Obviously the best situation is you paying on 60 days (or more), but being paid on 30 days (or less).

Someone chasing the invoices and getting the money is worth it if you have tardy payers.

Nah, in the real world things pump monthly. I would never have serious expectations of a company to pay earlier than the 30th day of the month of the submitted bill.

Most likely I'd presume that I'd submit the bill on the Xth and the money would be sent back somewhere between the 1st and 5th of the next month. That's very standard for smaller businesses[1]. In other words, you might wind up with 6 weeks between invoicing and payment. You might find that they pay on the 15th instead of the 1st. Big whoop.

4-6 months is outrageous and amazingly uncommon.

[1] My father's a general contractor in construction; he's dealt with a ton of businesses of a variety of kinds and this is the SOP.

I don't think extortion is a great move. That sounds like something I would avoid in even the worst circumstances.

I tend to use psychology with late paying clients. I say things that affront their ego about not being able to pay. Things like "looks like you're short on cash, business not going so well?", or jabs about their accounting department. Also I harass them about the invoice the first day its overdue, and everyone I have contact with is CC'ed especially the CEO if I have contact with them. I'm the nicest guy to work with, but when it comes to payment I'm a real asshole, and I let them know it.

A lot of times late payments are simply the accountants managing debt by putting freelancers, who typically don't charge interest or have collections mechanisms, on the backburner in favor of paying off vendors or lenders with steep interest rates. Introducing late payment fees, and reminders of those fees tends to expedite the payment in that case

"Sometimes you got to rob to keep your riches." - Tucco, Breaking Bad
This is a pretty dumb idea.

The better thing to do is have a contract, and if the client doesn't pay, have a lawyer send a threatening letter warning them about contract violations and court action. That should work almost every time, and if it doesn't you'll already have a lawyer familiar with the situation.

For bonus points, have the contract gone over by a lawyer before signing it in the first place. There are law practices and legal services businesses that specialize in it and it only costs a few hundred dollars. And it can be added to the cost of the project.

This presumes 2 things:

1. The money owed is significantly more than the incurred legal fees.

2. You work in a place where courts are actually effective.

Yeah, and collecting payment can be a long, distracting, and expensive process too.
For number 1: A contract review can be done for around $200. Other than bottom of the barrel, rentacoder projects, it won't add a significant cost to the project. If a client doesn't pay, having a lawyer write a letter will take a few hours and cost a few hundred dollars. It doesn't need to be a top of the line lawyer - just being from a lawyer will scare most companies enough to pay the bill. It can probably even be added to the contract that the cost of such a letter is tacked onto the rest of the bill if it needs to be written. This kind of thing is a regular cost of business, and the companies that are likely to cry about the tiny extra costs are often the same companies who won't pay on time. In other words, having the contract done correctly helps preemptively solve the problem of clients not paying.

For number 2: This seems like a reasonable assumption to make for the majority of people reading HN. It's ridiculous to promote a weird, probably illegal, blackmail scheme because a dozen people on HN can't use their court systems.

There is another side to the coin. PigDesigner takes money upfront from VictimCompany and backs out of it before completing half of the assigned work. The way to avoid any misunderstanding is to define work items, delivery times and other terms through a contract.

PS: PigDesigner is not a reference to the OP in any way. I do not know the OP. Just saying that either side can bite.

This is extortion, and is subject to criminal penalties.

It is lying: you say legal action is underway. You've done nothing but mail a letter. The moment someone says legal proceeding are underway, the other party needs to shut up, and refer all communications through attorneys. At that point, you'd probably find yourself needing to hire an attorney at considerable expense.

I suspect you could be sued for defamation: claiming legal action when none existed can harm reputation. If you're not a business entity with personal protection (such as LLC or corp, depending on your locale) they can destroy you financially: house, property, bankruptcy. No client is worth that to me.

Even if you were to sue, this website might work against you. It'd definitely come up in proceedings, and may cause the judge to grant some leniency even if your client was ordered to pay.

The warning site doesn't identify you, so if the client could care less (people launching (companyname)-sucks.com all the time), they'll just ignore you. Then you're out hosting and domain fees.

If the client goes the cybersquatting claim route, they can take the warning domain, and you can levied fine of up to $100,000 USD. (http://en.wikipedia.org/wiki/Cybersquatting#Legal_resolution)

Glad it worked out for you, but I think you're correct in your warning that no one should ever do this.

The statement is correct and it can't be proven as incorrect: "Legal action is underway". The domain is a variation and I am pretty sure you can't claim it as cyber-squatted. Overall, it is a pressure tactic, with good chances when dealing with small businesses or individuals.
>It is lying: you say legal action is underway.

As in, I'm starting to look for an attorney to explore my legal options. This one works in residential construction also ("I'm beginning the process of finding a lawyer to speak to about putting a lien on your house." I knew it wasn't legally possible in most situations, but I was definitely allowed to ask my lawyer again).

I was definitely allowed to ask my lawyer again

"Mr. Lawyer, can I ask you a couple of questions?"

"Yes. What is your other question?"

> This means that domain names bearing close resemblance to trademarked names are not per se impermissible. Rather, the domain name must have been registered with the bad faith intent to later sell it to the trademark holder. This "bad faith" concept is reiterated in 15 U.S.C. § 1125 and U.S.C. § 1129.

Bringing up a domain to criticize a company is not cybersquatting.

This is not extortion.

This is not necessarily lying (provided you have inquired about your options with an attorney).

This is not defamation.

This is not cybersquatting.

At best, this is stupidly prone to unpredictable backfiring that makes you look ... stupid. At worst, you look like a dick and the word spreads.

Hmm, while someone may legally owe you for example the final $10K in payment (or whatever the amount is), that wouldn't necessarily prevent a judge from perhaps deciding that you are also liable to them for the say $500K in businesses loses that they claim they incurred because of your SEO manipulation. I am not a lawyer and this isn't legal advice, but I would encourage someone to talk to their lawyer and to get legal advice before taking action which could be construed as threatening to harm someone's business...
Assuming you are in the UK, late payment of an invoice incurs statutory late penalties. Further non-payment can be resolved by small claims court.

On rare occasions when I have been ignored like this, I have sent snail mail saying I will start charging late penalties - as I am legally entitled to - if I don't receive payment within 14 days.

I have never had to wait out those 14 days, so I can't offer anecdote beyond that.

Details: https://www.gov.uk/late-commercial-payments-interest-debt-re...

I had this exact problem awhile back with an iOS app. Luckily, Apple has a nice form available for submitting a copyright dispute[1]. Long story short, I got paid. Just remember, you retain any code you own until it is signed over to the client. Especially for iOS dev, when someone gets an email from Apple legal, they tend to pay up.

[1] http://www.apple.com/legal/internet-services/itunes/appstore...

While it is true you retain copyright on code you write until it has been assigned in writing (US copyright law stipulates that it can not be assigned verbally.) However, the situation may not be completely clear, unless you have been very careful you have probably given them an "implied license" to use your code.
I'd say an "implied license" would be contingent on payment. eg, if you verbally agree to let them use the code and quote them a fee, failure to pay the fee should definitely disqualify from that "implied license".

Same way as if I pick up a copy of windows from a shop without paying or figure out a way to download a valid windows license without paying - I don't have the license as I never actually paid for it, regardless of any agreements Microsoft might have written in the box about the license.

Why do they have it in their hands if you don't have the money in yours?
> Perhaps the client lives in another country so legal action is out. You’ve been proper fucked.

Most countries have low-cost fast-track law for this kind of situation. In the UK it's "small claims". Seems like a start up could make some money offering non-legal advice about how to use these simple cheap courts to get redress.

What's equivalent of this in US that can be used from outside?
As a fellow designer, I've been scammed multiple times too. So, I totally feel you.

Here's my documented version of to-do's to avoid such awkward situations.

1) Always let the client know through email that whatever NDA or any other form you've signed is valid only after the project is complete(ie., the final invoice is paid). But, however, promise them that (legally) you will not leak anything about their project anywhere else until unless it goes too extreme, as in your case (add this clause, it's important). I say email specifically because it can be used as vital evidence if something goes wrong.

2) If it's just PSD's, watermark them in a way they will need to spend more time and money removing watermarks and editing than paying you.

3) Copyright. In your email to your client, the first thing you let them know is that the whole stuff belongs to you (owned by you, copyrighted) unless the final invoice is paid. So make sure the NDA doesn't mention/over-ride this before you sign it.

4) Many are against this tactic, but I will explain the reasons soon. Include a flipswitch.

Here's how -

If you are doing HTML/CSS, this is how you do it (I've already suggested it before):

Add redundant containers - I'm using the logo as an example, but really it could be some important element that provides value to the client. As an example, if you want to add styles for your logo, don't just write it as

    #logo{
    display:block;
    position:absolute;
    top:10px;
    background:url('some-image.jpg') no-repeat;
   }
But re-write it as:

   #aw469srfa #fewji903{
    display:block;
    position:absolute;
    top:10px;
    background:url('some-image.jpg') no-repeat;
   }
BUT, in your actual HTML file, what you do is DON'T include the logo container with ID 'fewji903'. Instead, write a tiny Jquery script to load this container dynamically. Something like:

    $(document).ready(function() {
    //do a check to see if current time is less than expiry date
    if( project_expired()){
    $('#aw469srfa').html('<div id="fewji903"></div>');
    }
    else{
    // don't load the container
    alert('fuck-off, expired');
    }

    function project_expired(){
    //do something to check the validity
    if (current_time==time_you_set_to_expire)
    return true
    else 
    return false    
    }
    });
What you're doing here is checking the time (you could maybe use even ajax to send a request to your server to see if the project is valid, but it will increase page loading time obviously) to see if it's less than some certain time frame you've set. Say about a month. This means, if the client doesn't pay you in a month, then the site would break automatically after a month.

Now:

Minify your CSS and make it unreadable. And finally, obfuscate your JS above:

This is how the above code, when obfuscated will look like this somewhat:

     eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('$(a).b(2(){5(0()){$(\'#9\').8(\'<1 6="7"></1>\')}3{j(\'h-i, c\')}2 0(){5(f==d)4 e 3 4 g}});',20,20,'project_expired|div|function|else|return|if|id|fewji903|html|aw469srfa|document|ready|expired|time_you_set_to_expire|true|current_time|false|fuck|off|alert'.split('|'),0,{}))


I always use http://www.jsobfuscate.com for this purpose.

At that point, your client could:

1) Reverse eng...

You have:

function project_expired(){ //do something to check the validity if (current_time==time_you_set_to_expire) return true else return false }

Maybe you just want:

return current_time==time_you_set_to_expire;

O_o

Also note this is really easy to circumvent.

Or current_time >= time_you_set_to_expire...
Thanks for the optimization tip, but it was just to explain the idea :)
The commenter was trying to illustrate a point, not provide actual code.
Point 4 we could just easily type cntrl+f and type the message being displayed or alert etc... It would hardly take a few minutes to find out the problem.
A good obfuscator can prevent that by breaking up the string literals and either scrambling or encoding them.
Wouldn't it be easier to schedule milestones with payments for work done? It creates a strong feedback loop, spreads the payments for the project out and you can gauge early if they are willing to actually pay.

(Edit: I am a not a designer so I'm not sure how many "stages" you can break a contract into)

Instead of some potentially impolite message in place of the logo or some other vital components, just display "This page is a preview for evaluation purposes. It has now expired." or something similar. That way you'll have little risk in case you overlooked it.
I wonder if there could be a service to protect freelancers. What if you could just go to a page, enter a URL, and you get another URL back. You send your client the 2nd URL and it's essentially a live stream of the first URL that they can fully interact with but can't view the source of.

Would any freelancers pay for that?

I'm not sure how you can do that from a technical standpoint. If it's on my screen, I can view the markup.
Think of something like VNC over WebRTC or Flash. Just rendered frames, no raw access to the source.
It would be interesting if you could render a Flash depiction of a live website and allow interaction without degrading performance or having it "look like Flash."
Many clients wouldn't find this sufficient for user acceptance testing.

Won't any mildly tech-saavy client want to try it on their laptop, phone and/or tablet to make sure it looks right in different browsers? Well, it'll look exactly the same, because they aren't actually rendering it....

The minify/obfuscate solution seems sufficient (and possibly an expiration date...) but even that would be obviously unnecessary with many clients.

Many clients don't know anything about viewing markup and recreating work. Especially if there is something powering a site/application on the server. The HTML doesn't help them much.
What about not deploying to a server that is resolving their DNS until payment is complete?

When final payment is received, final deployment occurs. Until then, it can be accessed via a URL you control.

Otherwise, if you're really looking for something like that, I'd suggest https://forwardhq.com

I was under the impression that the main concern is theft of HTML/CSS/JS sources without payment. Anything that allows access to those files would still be vulnerable. The idea was to have the site rendered real-time in the cloud and transmitted so that no source assets could be stolen.
Apologies, I believe I interpreted the protection for freelancers a bit more broadly. Rarely have I seen/heard of clients who have resorted to blatant theft of the sources without payment. They usually just try to get away with using the sources. That is no different from theft, in my book, but it seemed going so far overboard as to obfuscate/hide it all vs. just getting oneself a proper attorney and initiating legal action would be better. Better yet, get an attorney to draft a contract that you can reuse with [nearly] all clients.

I was speaking more to sensible protection--do not deploy & resolve DNS, do not transfer source code ownership, do not relinquish copyright ownership, etc. until the final invoice is paid. And make sure it is written that way in a contract and that the client signs the contract before work commences.

I wish more developers/designers/creatives did something to recoup their losses versus just moving on. It sucks when good developers get out of the industry because people are paying late/not paying.
The sad reality is that as a contractor, you have to operate under the assumption that you will sometimes have trouble getting paid.

If I was starting contract work for a new client, I would ask them to pay up front by the day. It is trivially easy to set up a one-click "pay for 1 day of work" button with Stripe (saving credit card info after the first payment) so it should not be a huge burden for the client.* I would eat Stripe's fee in exchange for peace of mind.

Note that this is good for the client too: hypothetically, if they don't like my work, they can pull the plug without being on the hook for future work (if I do my job right, this will never happen).

* Some corporate client's can't do this because of rules about what can go on a credit card. That's fine because those bigger businesses are generally used to paying invoices on time in my experience.