Hi Ewout,
Thank you for your answer.
I tried your method and it still doesn’t work.
If i do a “var_dump” of the $payment_method variable, i got this -> string(6) “custom”.
So that means that the meta is correct.
It’s okey if i see the button to create the PDF manually. The only thing i want is that, when a customer is doing an order, there is no invoice created automatically.
Is this the correct purpose of this code ?
Geoffrey