I want to generate a random value for every invoice I create, to use it as an access key for online payment of the invoice.
How can I accomplish the creation of this random value? The online payment part, displaying it on the invoice, and creating the payment I will be able to do just fine.