I need to pass a unique value for an “order id” with a payments API. I’ve been just passing the Bubble unique ID for an order, but unfortunately that has sometimes triggered a Luhn check which is designed to prevent passing anything that looks like a credit card number. An appropriate precaution on the processor’s side but annoying for me because they will then mask part of the provided order ID, thus making my records not match their records.
Can any of you provide advice for how to quickly generate a unique value that won’t trigger a Luhn check algorithm that looks for credit card numbers? I’m thinking about trying either a UNIX timestamp or just the current date/time formatted down to the current second or something.