I want to store PayPal transaction IDs. What is the length and type I need to set on that field in the database? Currently, I set varchar(128)
. Is that sufficient?
In the transaction search API it suggests the maximum length of a transaction ID is 19 single bytes. The transaction id is alphanumeric so a varchar(19)
would be fine.
Personally I'd go for varchar(20)
just in case they max out on transaction ids and need to add an extra digit :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With