Adding a prefix to SagePay Transaction numbers

Posted By holtcomp Sat 11 Apr 2015
Add to Favorites0
Author Message
holtcomp
 Posted Sat 11 Apr 2015
Supreme Being

Supreme Being - (11,413 reputation)Supreme Being - (11,413 reputation)Supreme Being - (11,413 reputation)Supreme Being - (11,413 reputation)Supreme Being - (11,413 reputation)Supreme Being - (11,413 reputation)Supreme Being - (11,413 reputation)Supreme Being - (11,413 reputation)Supreme Being - (11,413 reputation)

Group: Forum Members
Last Active: Wed 18 May 2016
Posts: 12, Visits: 145
I have a situation where several online shops share one sagepay account which works fine.

The existing websites were using cactushop and I inserted a bit of code to add a prefix to the sagepay transaction numbers so that

a) when looking at the list of transactions in the sagepay interface you could easily identify which website a transaction related to

and

b) it avoided the real possibility that duplicate transaction numbers could be generated from two different databases, i.e. order number 20 on website a would attempt to generate the same TX number as order number 20 on website b.

As I switch to Kartris I am trying to avoid inserting little bits of code so I wondered if there was a cleverer way of achieving this, or if it does involve a bit of code what would be the neatest coding solution.
Sat 11 Apr 2015 by holtcomp


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top