How to add a prefix to transaction ID?
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 20
- Joined: 22 Oct 2020, 15:39
How to add a prefix to transaction ID?
We use the same payment gateway for more than one system. It's therefore a requirement to add some sort of 'prefix' onto the 'invoice ID' to stop it clashing with other systems (and, of course, the payment provider requires them to be unique).
I'm struggling to find any simple way to do this.
I'm struggling to find any simple way to do this.
Re: How to add a prefix to transaction ID?
It's not that simple because the order domain isn't prepared for adding prefixes or using own IDs. Instead, it uses the autoincrement ID from the database. The easiest way at the moment is to set the autoincrement value to a high number so you will have different ID ranges for different services.
We've planned to improve the order domain in the 2021.x version, so it may be possible there.
We've planned to improve the order domain in the 2021.x version, so it may be possible there.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star