Post by snappyfish » Tue Oct 11, 2011 6:22 am

I have two live stores running on separate domains but I use one sage pay account to take payments, I have just tested a order and as store one was put up live earlier in the year and order id Vendor TX code ran from 1, 2, 3, 4, 5, etc

So store two just gone live now uses the same 1, 2, 3, 4, 5 etc

So i get his error.

Status:
MALFORMED

Status Detail:
4001 : The VendorTxCode has been used before. All VendorTxCodes should be unique


So is there any way to prefix that order id so when it passes to sage pay its unique?

Active Member

Posts

Joined
Thu Apr 14, 2011 4:36 am

Post by lkfranklin » Thu Oct 27, 2011 4:09 pm

Hi,

did you figure out how to add a prefix? thanks

New member

Posts

Joined
Sat May 07, 2011 6:36 am

Post by snappyfish » Thu Oct 27, 2011 6:41 pm

Not find the correct solution yet, But for the meantime I set the numbers so far apart they wont cause a problem.

Store 1 starts at Vendor TX Code 1
Store 2 Starts at vendor TX Code 0000001

Would be nice to figure out a solution?

Active Member

Posts

Joined
Thu Apr 14, 2011 4:36 am

Post by ThePath » Tue Feb 07, 2012 12:34 am

Hi, when you say you started Store 1 tx code at 1 and the other at 0000001 do you mean you set the invoice number to this? As it doesnt seem to be the invoice number thats the issue, its the order id.

Im getting these errors just now and losing money so any help relating to this error much appreciated.

Ta

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by snappyfish » Tue Feb 07, 2012 5:48 am

Hi, I changed the Order ID to start from 0000001 Ideally I would like to be able to add some kind of prefix

But it's working OK at the moment.

Active Member

Posts

Joined
Thu Apr 14, 2011 4:36 am

Post by ThePath » Thu Mar 08, 2012 9:45 pm

Yup defo would be cool to have a prefix. I tried using 00000001 but it said duplicate key error as it just reads it as 1. So I changed the last order ID to 999999

Thanks for help

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland
Who is online

Users browsing this forum: Google [Bot] and 1 guest