Problem/Motivation
Currently it is impossible to use multiple applications with the same Maksuturva account, because the module uses serial IDs for payment IDs, which must be unique per Maksuturva subscription. Because different application will follow exactly the same pattern for these IDs, there will always be conflicts.
Proposed resolution
Prefix transaction IDs in order to allow uniqueness.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Marking this a major feature request, because the current situation hurts multi-environment projects.
Comments
Comment #2
xanoThis introduces the prefixes. There default to three random characters for a site, but can be overridden per site to be any alphanumeric string. Longer prefixes mean more uniqueness, but also lower the maximum amount of payments that can be processed.
Comment #3
xanoThe documentation does not say anything about case-sensitivity, so let's not take any risks and assume the ID is case-insensitive.
Comment #4
xanoNow with ExtraSuper™ support for this when creating a transaction as well!
Comment #5
juhaniemi commentedHi Xano, thanks for your proposal and patch. In order to not break any existing webshops or existing orders that might be still pending for the transaction verification, I would recommend moving the variable_set($prefix) part to the install hook, and leave it empty for existing sites. If I read the code correctly, otherwise the verification would fail for existing orders because transaction id has changed.
Comment #6
xanoComment #7
xanoBump.