Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirect nt working with protx form


Recommended Posts

Posted

have just installed the protx form module, everything is ok unitl you click on the final proceed button which should redirect you to the checout_process.php page, but doesnt it redirects you to the home page.

 

I have also amended the filenames.php file to include the redirect protx as suggested by webby007 but this still doesnt work. if i put the full extension of the site it redirects to something like https://www.mysite.com/https://mysite.com/c...out_process.php and if i just use the checkout_process.php it redirects to the homepage and no order appears in the admin side of oscommerce

 

 

any help would be appreciated

 

thanks

  • 1 month later...
Posted
have just installed the protx form module, everything is ok unitl you click on the final proceed button which should redirect you to the checout_process.php page, but doesnt it redirects you to the home page.

 

I have also amended the filenames.php file to include the redirect protx as suggested by webby007 but this still doesnt work. if i put the full extension of the site it redirects to something like https://www.mysite.com/https://mysite.com/c...out_process.php and if i just use the checkout_process.php it redirects to the homepage and no order appears in the admin side of oscommerce

any help would be appreciated

 

thanks

Hiya ctn,

 

Seem to be having the same problem as yourself,

also tried the work around and recieved the same result.

 

Ive been browsing the forums trying to find a possible solution im guessing its somewhere in the success url which im sending to protx.

 

Im currently using the test server and the payments are appearing on the protx admin too.

 

Any help would be appreciated or if you happen to have stumbled across an answer yourself that would be cool!

 

Thanks

 

John

Posted

Yep: me too.. url showing twice...

everything else seems perfect.

 

trying to get help from Protx also.. nothing sorted yet

 

i am hosting with 1and1, would this be the same in your case?

 

Cheers K

Posted

Hi there,

 

Yeah the URL comes up twice with me aswell if I make the changes webby suggest. I contacted protx regarding the problem and they just say to make sure that the URL is being decoded properly, 'it just looks for spaces in the crypt string and replaces them with +'s which helps the full string decode properly'

 

Im pretty sure the piece of code they are talking about is included in the latest contribution

 

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

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

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

  if ($Status != 'OK') {
	tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&error_message=' . urlencode($StatusDetail), 'SSL', false, false));
  }
}

 

Is this the part of the code they are talking about?

 

Cheers

John

Posted
On it tonight... will try PROTX agian also..

tried the suggestions but still redirects

 

will post progress

 

K

 

 

Have any luck with protx?

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...