Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Addon Payment Modules / Protx Not Processing Order

Protx Not Processing Order

Locked

Started by marke on 23 May 2006, 4:53 PM · Views: 2,811

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
23 May 2006, 4:53 PM
#1
marke avatar

marke

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Protx Not Processing Order

Hi,

I have protx form module installed and config'd. It works for the most part. The problem is that after a test transaction completes protx send the browser back to this URL, as it should I believe:

http://SITE/store/index.php?main_page=checkout_process

But ZenCart doesn't process the order. Instead the browser is redirected to Step 2 of the checkout process all over again.

Any ideas why this happens and how to fix it?

24 May 2006, 3:41 PM
#2
msdesign avatar

msdesign

New Zenner

Join Date:
May 2006
Location:
UK
Posts:
5
Plugin Contributions:
0

Re: Protx Not Processing Order

I'm having a similar problem..

Does anybody know where to put the password in for the Protx connection. (Immediate Charge).

Everything else is the same as above..

Matthew_Sparkes_Design
www.matthewsparkes.com

25 May 2006, 10:13 AM
#3
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Protx Not Processing Order

Hi,

You might want to use the Protx Direct payment module instead, it's easy enough to configure and looks and works much better than the Form method.

Downloads and full instructions are available here:

Protx Direct for Zen Cart

I'll start a new support thread on this site soon, got a few other modules in the packaging stages! ;-)

All the best...

Conor
[Ceon]

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 May 2006, 11:49 AM
#4
msdesign avatar

msdesign

New Zenner

Join Date:
May 2006
Location:
UK
Posts:
5
Plugin Contributions:
0

Re: Protx Not Processing Order

Found the password... That's OK..

But mine redirects and you can't complete the payment process?

Matthew_Sparkes_Design
www.matthewsparkes.com

25 May 2006, 3:44 PM
#5
marke avatar

marke

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: Protx Not Processing Order

conor:

Hi,

You might want to use the Protx Direct payment module instead, it's easy enough to configure and looks and works much better than the Form method.

Downloads and full instructions are available here:

Protx Direct for Zen Cart

I'll start a new support thread on this site soon, got a few other modules in the packaging stages! ;-)

All the best...

Conor
[Ceon]

Can this Direct module work as a replacement for the Form module without changing the account status at Protx?

27 May 2006, 12:08 PM
#6
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Protx Not Processing Order

Hi Marke,

One of my clients was using VSP Direct for a year when Protx had them marked down as using VSP form! :)

The various Protx methods, Form + Direct, are simply different technical ways of getting the exact same information to Protx. They also differ in how the resulting transaction information is returned but from Protx's point of view there's no real difference, when you have signed up for one, you have signed up for the other. It's up to you which you want to use. You can even use both with the same account at the same time (although obviously that's not recommended! :) ).

The distinguishing difference between the two, one which you have to give some thought to, is that when you use Protx Direct you are taking the customer's Credit Card details directly on your site at checkout time, they are not redirected to someone else's site. This is considerably more professional looking but it means that you are reponsible for the security of the transaction and therefore you must have a SSL certificate (and a unique IP address for the domain).

Considering these can be bought for $49 a year at ev1servers.net, that's really not a big problem IMO for anyone who wants a serious shopping site! :)

Generating the necessary keys and installing the certificate is a little fiddly first time... mostly because every SSL certificate must be associated with a unique IP address (although a unique IP address should only cost about $1 a month, if even, from your host).

Once you've got your server set up with an additional IP address and added a new virtualhost into your apache configuration (if on linux) to handle the SSL version of the domain then installing the Protx Direct module is simple as pie... only takes a few minutes to get Zen Cart configured properly with it and then customers will have a great checkout experience.. you can look and feel every bit as big as dabs.com etc. :-)

Hope that's informative for you! :)

All the best...

Conor
[Ceon]

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

28 May 2006, 12:38 AM
#7
marke avatar

marke

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: Protx Not Processing Order

I found the problem with the Protx Form module. Might be something about my particular server, not sure. But this code below works now that I've modified it -- just replace the function in the payment module with this one, and make sure to leave the other module functions in tact:

/* ---------------------------------------- */
function before_process() {
global $_POST, $crypt;

  $Decoded = $this->SimpleXor(base64_decode($_REQUEST['crypt']),MODULE_PAYMENT_PROTX_FORM_PASSWORD);
  $values = $this->getToken($Decoded);

  $Status = $values['Status'];
  $StatusDetail = $values['StatusDetail'];

 if ($Status != 'OK') {
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, zen_session_name() . '=' . $_REQUEST[zen_session_name()] . '&error_message=' . urlencode($StatusDetail), 'SSL', false, false));
 } 

}

/* ---------------------------------------- */

That's it. Basically I had to use $_REQUEST instead of the $_POST -- so in other words the globals declared by the original code are probably useless but I left them in place in the code above anyway.

28 May 2006, 12:44 AM
#8
marke avatar

marke

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: Protx Not Processing Order

One more change I forgot about -- the FailureURL needs to be changed too. This way zencart will display to the user any error message returned by Protx. So, located this line in the module:

  $plain .= "FailureURL=" . zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true) . "&";

And replace it with this one:

  $plain .= "FailureURL=" . zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&";

That's it.