Saturday, August 29, 2009

Paypal integration issues - Message 4003 and merchant is not a business or premier PayPal account errors

A quick post for anyone struggling with Encrypted Website Payments (EWP) with Paypal and are getting the errors:

"Message 4003", or
"The merchant is not a business or premier PayPal account. This feature is only enabled for a business or a premier PayPal account holder."

You'll get these errors if the variables you're encoding aren't formatted properly. To expand on the paypal doc's:

"Each variable must be on its own line in the format: 'key=value'"

What they fail to mention is that the line delimiters must be "\n" rather than "\r\n". If you use the native "Environment.Newline" it'll do the latter, and add the return character screwing up your pk12 string that you set as your "encrypted" field.

I wasted a couple of hours on this stupid error.

1 comment: