user3596671
user3596671

Reputation: 3

Error 3034 : The Vendor or VendorName value is required in SagePay test enviornment

We are getting Error 3034 : The Vendor or VendorName value is required in SagePay test environment

We have checked that vendor name is correct

Live SagePay link is working for SagePay

Can you please let us know proposed solution to resolve this issue

Thanks in advance

Upvotes: 0

Views: 739

Answers (1)

Jason
Jason

Reputation: 4772

I had this issue on Sage Pay Direct test, and it turned out to be the Content-Type not being set to application/x-www-form-urlencoded.

The documentation states that the body of the registration transaction must be URL encoded, but does not mention the Content-Type header. This is kind of obvious if you understand how these HTTP messages are going to be parsed, but can result in this very misleading error message from the gateway if not correctly set.

So basically, if you get error number 3034, and you do have the vendor field set correctly, then the problem is likely that the remote Sage Pay gateway cannot parse the body of the transaction in the HTTP message you have POSTed. In that case you need to look at the complete message being sent.

Upvotes: 0

Related Questions