Protx Payment Failures - latest issue

Protx have changed their protocol again causing major issues with payments not going through. The issue is the POSTCODE can no longer be passed over with a space in the middle of UK postal codes. There is a quick fix to any white-box solution integrating into ptotx

 

In FTP go into httpdocs / modules / shop folder

Find the file pay_system.asp

Right click and edit

 

1) At the top of the file insert the following code under the initial DIM statements. If the function already exists at the top of the page under the dim statements, simply highlite it and replace it.

 

 

function removeextracrap(inputstring)

                removeextracrap=inputstring

                if inputstring<>"" then

                                removeextracrap=replace(removeextracrap, CHR(034), "")

                                removeextracrap=replace(removeextracrap, CHR(013)&CHR(010), "")

                                removeextracrap=replace(removeextracrap, CHR(045), "")

                                removeextracrap=replace(removeextracrap, CHR(038), "and")

                                removeextracrap=replace(removeextracrap, CHR(039), "")

                                removeextracrap=replace(removeextracrap, CHR(047), "")

                                removeextracrap=replace(removeextracrap, """", "")

                                removeextracrap=replace(removeextracrap, """, "")

                                removeextracrap=replace(removeextracrap, "'", "")

                                removeextracrap=replace(removeextracrap, " ", "")

                                removeextracrap=replace(removeextracrap, "*", "")

                                removeextracrap=replace(removeextracrap, " ", " ")

                else

                                removeextracrap=""

                end if

end function

               

DispInvPostcode=left(removeextracrap(DispInvPostcode),8)

DispDelPostcode=left(removeextracrap(DispDelPostcode),8)

session("dzip1")=session("dzip")

session("izip1")=session("izip")

session("dzip")=left(removeextracrap(session("dzip")),8)

session("izip")=left(removeextracrap(session("izip")),8)

 

 

 

2) Then at the bottom of the file insert the following 2 lines after the close statements and before the end asp tag %>

 

rsGateway.close

set rsGateway = nothing

dbcpayment.close

set dbcpayment = nothing

 

session("dzip")=session("dzip1")

session("izip")=session("izip1")

%>

 

 

Where Shopping Carts Usually End.... A White Box Solutions Begins !
Full CMS/Commerce
Use White Box Content Management System to build the front of your website and White-Box Ecommerce to run your products.... A powerful combination.
Multiple Store Front Technology..
Have multiple domains running totally different brands of stores through one admin panel.