Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 11-19-2009 10:20:29

robprotronica
Member
Registered: 12-16-2008
Posts: 106

SagePay Direct and 3D secure

Hi,

Trying to move to sagePay using the direct server gateway and am currently in test mode and have updated GBU_OLP.php as per the wiki.

All is working fine until I turn on 3D Secure in SagePay. When I try to process a payment, I enter the test card numbers, click "Submit Payment" and am taken to the SagePay 3D Authentication Simulator page. the simulator page has the correct information filled in all the available fields - so far so good.

however, when I enter the password and click submit I am returned to the following URL:-

http://www.gpsaffiliate.co.uk/khxc/index.php?app=gbu0&ns=protx3dauth&orderid=2009111910&gwurl=https%3A%2F%2Fukvpstest.protx.com%2Fvspgateway%2Fservice%2Fvspdirect-register.vsp&cardtype=VISA&expirydate=03%2F10&sid=e6jr9p435pezlt0935d7mqvb4z6xi4jf&portrelay=1

This actually displays as my sites home page.

Within the URL above the orderid and sid are correct for the order as is the card details. Interestingly I don't appear to have a namespace protx3dauth.

Site is GBU 6.0.7 and KHXC 6.6.8

I tried switching the debugger on and I don't get any output when I click "submit Payment" only when I submit the password on the 3D Authentication simulator. The output I do get seems to be related to building and displaying the home page - could not see anything relating to submitting payment.

Anyone any ideas as to how to go about getting this working?

Thanks

Rob

Offline

 

#2 11-19-2009 12:49:42

robprotronica
Member
Registered: 12-16-2008
Posts: 106

Re: SagePay Direct and 3D secure

Hi,

I found this thread https://forum.kryptronic.com/viewtopic.php?id=22597 and have followed Howard's instructions on how to create the protx3dauth namespace, so I now have a bit more functionality.

now when I try to process a payment the SagePay test server is returning:-

khxc_remote::connect: Sending request to URL https://ukvpstest.protx.com/vspgateway/ … ister.vsp: MD=201258650660231259&PARes=eJylV1tzqkgQfvdXpNxHKu {about 500 characters deleted for clarity} xWvQPVU9PpA==

khxc_remote::connect: Received response from URL https://ukvpstest.protx.com/vspgateway/ … ister.vsp: VPSProtocol=2.23 Status=MALFORMED StatusDetail=3034 : The Vendor or VendorName value is required.

khxc_remote::connect: Connection made. URL: https://ukvpstest.protx.com/vspgateway/ … gister.vsp

gbu_olp::protx3dauth: Result 'VPSProtocol=2.23 Status=MALFORMED StatusDetail=3034 : The Vendor or VendorName value is required.'.

gbu_olp::protx3dauth: Result1 'VPSProtocol=2.23 Status=MALFORMED StatusDetail=3034 : The Vendor or VendorName value is required.'.

gbu_olp::print_message: Printing message 'olpdecline' for application 'gbu0'.

or

khxc_remote::connect: Sending request to URL https://ukvpstest.protx.com/vspgateway/ … ister.vsp: Vendor=protronicaltd&VPSProtocol=2.22&TxType=PAYMENT&Currency=GBP&Description=Online Sale&GiftAidPayment=0&ApplyAVSCV2=0&VendorTxCode=2009111918&Amount=165.21&CardHolder= &BillingAddress= &BillingPostCode=&ContactNumber=&CustomerEmail=rob.garner@protronica.com&CardType=DELTA&CardNumber=4462000000000003&CV2=123&ExpiryDate=1209&StartDate=&IssueNumber=&

khxc_remote::connect: Received response from URL https://ukvpstest.protx.com/vspgateway/ … ister.vsp: VPSProtocol=2.22 Status=INVALID StatusDetail=3058 : The CardHolder field is required.

khxc_remote::connect: Connection made. URL: https://ukvpstest.protx.com/vspgateway/ … gister.vsp

gbu_olp_protxdirect::print_message: Printing message 'olpdecline' for application 'gbu0'.

Which type of response I get depends on the card type I try and use.

It looks like I may need to update the software, site is at GBU 6.0.7 and KHXC 6.6.8 and all the update info I have found so far does not seem to refer to anything newer.

Any comments much appreciated.

Rob

Offline

 

#3 11-20-2009 06:10:27

robprotronica
Member
Registered: 12-16-2008
Posts: 106

Re: SagePay Direct and 3D secure

Ok, tried this on a second site on the same server.

3 D secure turned off everything works fine - with 3 D secure turned on SagePay is failing the transaction with the same messages as above.

I don't really understand php but it would seem there is a possibility that  the protx3dauth function in GBU_OLP .php is not putting protxdata together properly - certainly there does not seem to be anywhere in GBU_OLP.php where it retrieve the Vendor or VendorName to be able to pas this to the SagePay server.

Someone must have this working- surely?

Offline

 

Board footer