Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

We've recently gone to full test status and the Protx side of things seems to work with test transactions.

 

Success URL: http://ourdomain/catalog/checkout_process.php

Failure URL: http://ourdomain/catalog/checkout_process.php

 

The trouble comes after the customer makes payment:

 

1. The item is still in the customer's shopping cart;

2. The product is still available with x items of stock rather than x-1;

3. The user details show no orders placed by them;

4. The orders section show no orders taken; and

5. The customer does not get a confirmation e-mail from the shop confirming the order, just from Protx.

 

It looks as though checkout_process.php isn't being processed?

 

Protx have suggested this:

This could be a problem with the crypt string being decoded where it is not updating your shopping cart or that your encryption password could be one character out on the encryption password.

 

Any ideas?

Posted

Right, well it looks like the fix is to modify the protx_form.php file as follows:

 

Look for:

function before_process() {
  global $HTTP_POST_VARS, $crypt;

 

Add a line:

$crypt = $_REQUEST['crypt'];

 

and:

$process_button_string = str_replace(" ", "+", $process_button_string);

 

Then change:

$Decoded = $this->SimpleXor(base64_decode($crypt),MODULE_PAYMENT_PROTX_FORM_PASSWORD);

to:

$Decoded = $this->SimpleXor(base64_decode(str_replace(" ", "+", $crypt)),MODULE_PAYMENT_PROTX_FORM_PASSWORD);

 

Hope this helps anyone else in this situation.

Posted

Captainblue thanks very much for your post, it turns out i had just been missing one line of code but your post cleared things up been struggling with this problem for a while,

 

thanks again for your post!

 

John :thumbsup:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...