Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Protx not authorizing my test transactions


jimbeeer

Recommended Posts

I'm trying to set up oscommerce with protx, currently it's in test mode and i'm entering the test credit card numbers the module advises. But every time it goes to process the card it goes back to the card information screen with the message:

 

- Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance.

 

There's nothing else on the screen to imply that i've typed something in wrong. I then check the passed and failed transactions on protx admin but there are none.

 

It will return the headers if i put it on server ip test and also if i put it on Simulator with debugging on.

 

You can test it yourself if you like on www.carrig.co.uk/catalog, use the test visa number: 4929000000006, anything on the expiry date and on the cvv number (i think!)

 

I'm tearing my hair out with this, protx promised to look into it and get back to me but so far nothing.

Link to comment
Share on other sites

Edit your catalog/includes/modules/payment/protx_direct.php file.

 

Find:

	  // Uncomment these lines if having problems connecting to Protx server

  // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

  // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

  // End of Add

 

and uncomment so it looks like:

	  // Uncomment these lines if having problems connecting to Protx server

   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

   curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

  // End of Add

 

Tom

Link to comment
Share on other sites

Thanks for your help, i did that and it got a bit further, it's now come up with 'Contents of the Request Object' (I've deleted any info that may be sensitive!). The credit card no. is a tester no.

 

Contents of the Request Object

The Request.Form Collection
VPSProtocol = 2.22
Basket = 4:Limoseen Board:1:63.7872:11.16:74.95:74.95:Limoseen Window Cradle:1:12.7234:2.23:14.95:14.95:Limoseen Logo Panels:1:5.4043:0.95:6.35:6.35:Shipping:1:5.00:----:5.00:5.00
TxType = PREAUTH
ECI =
ClientIPAddress = 195.248.103.116
Vendor = 
VendorTxCode = 
CardHolder = James ODowd
BillingPostCode = RG7 4NG
Amount = 101.25
Description = Order Number: 1
CV2 = 123
DeliveryAddress = Lower Farm Barns, Wasing Lane, , Wasing, England - Hampshire, United Kingdom
DeliveryPostCode = RG7 4NG
Currency = GBP
StartDate = 0102
ExpiryDate = 0107
IssueNumber =
CardNumber = 4929000000006
CardType = VISA
CustomerEMail = 
ContactNumber = 0118 971 0999
BillingAddress = Lower Farm Barns, Wasing Lane, , Wasing, England - Hampshire, United Kingdom
CAVV =
3DSecureStatus =
XID =

The Request.QueryString Collection

The Request.Cookies Collection

The Request.ClientCertificate Collection

The Request.ServerVariables Collection

ALL_HTTP = HTTP_PRAGMA:no-cache HTTP_CONTENT_LENGTH:900 HTTP_CONTENT_TYPE:application/x-www-form-urlencoded HTTP_ACCEPT:*/* HTTP_HOST:ukvpstest.protx.com
ALL_RAW = Pragma: no-cache Content-Length: 900 Content-Type: application/x-www-form-urlencoded Accept: */* Host: ukvpstest.protx.com
APPL_MD_PATH = /LM/W3SVC/1/Root/ShowPost
APPL_PHYSICAL_PATH = D:\ShowPost\
AUTH_PASSWORD =
AUTH_TYPE =
AUTH_USER =
CERT_COOKIE =
CERT_FLAGS =
CERT_ISSUER =
CERT_KEYSIZE = 128
CERT_SECRETKEYSIZE = 1024
CERT_SERIALNUMBER =
CERT_SERVER_ISSUER = O=VeriSign Trust Network, OU="VeriSign, Inc.", OU=VeriSign International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign
CERT_SERVER_SUBJECT = C=GB, S=London, L=London, O=PROTX Ltd., OU=Service Department, OU=Terms of use at www.verisign.co.uk/rpa (c)05, OU=Authenticated by VeriSign, OU="Member, VeriSign Trust Network", CN=ukvpstest.protx.com
CERT_SUBJECT =
CONTENT_LENGTH = 900
CONTENT_TYPE = application/x-www-form-urlencoded
GATEWAY_INTERFACE = CGI/1.1
HTTPS = on
HTTPS_KEYSIZE = 128
HTTPS_SECRETKEYSIZE = 1024
HTTPS_SERVER_ISSUER = O=VeriSign Trust Network, OU="VeriSign, Inc.", OU=VeriSign International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign
HTTPS_SERVER_SUBJECT = C=GB, S=London, L=London, O=PROTX Ltd., OU=Service Department, OU=Terms of use at www.verisign.co.uk/rpa (c)05, OU=Authenticated by VeriSign, OU="Member, VeriSign Trust Network", CN=ukvpstest.protx.com
INSTANCE_ID = 1
INSTANCE_META_PATH = /LM/W3SVC/1
LOCAL_ADDR = 10.0.4.2
LOGON_USER =
PATH_INFO = /showpost/showpost.asp
PATH_TRANSLATED = D:\ShowPost\showpost.asp
QUERY_STRING =
REMOTE_ADDR = 194.216.112.62
REMOTE_HOST = 194.216.112.62
REMOTE_USER =
REQUEST_METHOD = POST
SCRIPT_NAME = /showpost/showpost.asp
SERVER_NAME = ukvpstest.protx.com
SERVER_PORT = 443
SERVER_PORT_SECURE = 1
SERVER_PROTOCOL = HTTP/1.1
SERVER_SOFTWARE = Microsoft-IIS/6.0
URL = /showpost/showpost.asp
HTTP_PRAGMA = no-cache
HTTP_CONTENT_LENGTH = 900
HTTP_CONTENT_TYPE = application/x-www-form-urlencoded
HTTP_ACCEPT = */*
HTTP_HOST = ukvpstest.protx.com

Property Values
Request.TotalBytes = 900

VPSProtocol=2.22&TxType=PREAUTH&Vendor=&VendorTxCode=6140639265901658&
Amount=101.25&Currency=GBP&Description=Order+Number%3A+1&CardHolder=James+ODowd
&CardNumber=4929000000006&StartDate=0102&ExpiryDate=0107&IssueNumber=&CV2=123&
CardType=VISA&CustomerEMail=&ContactNumber=0118+971+0999&
BillingAddress=Lower+Farm+Barns%2C+Wasing+Lane%2C%0D%0A%2C%0D%0AWasing%2C%0D%0A
England+-+Hampshire%2C%0D%0AUnited+Kingdom&BillingPostCode=RG7+4NG&DeliveryAddress=
Lower+Farm+Barns%2C+Wasing+Lane%2C%0D%0A%2C%0D%0AWasing%2C%0D%0AEngland+-+
Hampshire%2C%0D%0AUnited+Kingdom&DeliveryPostCode=RG7+4NG&CAVV=&XID=&ECI=&
ClientIPAddress=195.248.103.116&Basket=4%3ALimoseen+Board%3A1%3A63.7872%3A11.16%3A74.95
%3A74.95%3ALimoseen+Window+Cradle%3A1%3A12.7234%3A2.23%3A14.95%3A14.95%3ALimoseen
+Logo+Panels%3A1%3A5.4043%3A0.95%3A6.35%3A6.35%3AShipping%3A1%3A5.00%3A----%3A5.00
%3A5.00&3DSecureStatus=

Link to comment
Share on other sites

that's what to expect if it is in "Server IP test" mode.

 

You need to make sure the servir IP is added through the Protx admin console (look for :

REMOTE_ADDR = 
REMOTE_HOST =

or call protx and they can do it for you.

 

Then change it to "test" mode in osc admin and it should be up and running.

 

Tom

Link to comment
Share on other sites

You need to make sure the servir IP is added through the Protx admin console (look for :

REMOTE_ADDR = 
REMOTE_HOST =

or call protx and they can do it for you.

 

Then change it to "test" mode in osc admin and it should be up and running.

 

Tom

 

I can't find what REMOTE_ADDR and REMOTE_HOST are actually set to, doing a search in dreamweaver there are plenty of instances where the code is referencing these 2 variables but i can't find the code where these variables are set.

 

In VSP Admin there is a part to set the "Valid IP Addresses for this Account", did you mean this coz if you did i've already done it.

 

Someone else suggested using VSP Form instead of VSP Direct but i don't think the client would be happy about that.

 

Obviously Protx works with OSCommerce otherwise there wouldn't be a module for it in the first place but i'm damned if i know what my problem is. Protx say they won't help me any more until I "capture a status and statusdetails response that we provide for every post".

 

Any idea how i can do this?

Link to comment
Share on other sites

I had the exact same problem and this is how I resolved it.

 

1) change those lines to

 

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);

 

2) Switch to Simulator and turn debug mode on

 

3) Do the transaction and you'll be told what the error is (in my case I'd set my currency to be UKP not GBP)

 

Let me know if you need anymore help.

 

HineSystems.com

Affordable IT solutions exceeding your expectations

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...