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

Xano created an issue. See original summary.

xano’s picture

Status: Active » Needs review
StatusFileSize
new2.09 KB

This 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.

xano’s picture

StatusFileSize
new418 bytes
new2.04 KB

The documentation does not say anything about case-sensitivity, so let's not take any risks and assume the ID is case-insensitive.

xano’s picture

StatusFileSize
new881 bytes
new2.74 KB

Now with ExtraSuper™ support for this when creating a transaction as well!

juhaniemi’s picture

Status: Needs review » Needs work

Hi 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.

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new2.3 KB
new2.99 KB
xano’s picture

Bump.