Jump to content

Kristoff

Member
  • Posts

    86
  • Joined

  • Last visited

Posts posted by Kristoff

  1. The problem i'm having is that it's just leaving the order as Pending. How can I find any other details out on why it's not completing the payment?

     

    Edit: My returning URL after payment is:

     

    index.php?cart_order_id=141007-233451-7808&_a=complete

     

    Second Edit:

     

    Could this be related to the issue? Upon arriving at Sagepay the URL is:

     

    cardselection?vpstxid={92AE6080-A594-3572-B9A0-529E92DD5DE3}

     

    Would the curly brackets be playing havock with the processing?

  2. Ok, apologies. Mac/Chrome, hid my scrollbar, looked like the bottom of the page!!

     

    mcrypt mcrypt support enabled mcrypt_filter support enabled Version 2.5.8 Api No 20021217 Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes Supported modes cbc cfb ctr ecb ncfb nofb ofb stream

     

    Directive Local Value Master Value mcrypt.algorithms_dir no value no value mcrypt.modes_dir no value no value
  3. Let's just double-check:

     

    In admin, navigation panel, click PHP Info. Scroll down about half-way until you get to a section (in alphabetical order) that may or may not be there: mcrypt. It will be between mbstring and mhash.

     

    If the mcrypt section is there, then we have a different problem with the module.

     

    If the mcrypt section is not there, then please contact your hosting provider to have them enable this PHP extension for your hosting account.

     

    '--with-mcrypt=/opt/libmcrypt/'?

  4. In CC5213, line 888 is within the CubeCart->_checkout() function. This is not where you want to be if you are trying to catch bogus registrants.

     

    I assume you have edited the template file content.register.php by adding the hidden field middlename. (We will assume your tactic is valid.)

     

    In the file /classes/user.class.php, line 659 (CC5213), we test for an empty first_name, or an empty last_name. You can add your test after this for an existing middlename.

     

    Perfect, thank you.

     

    As the field is not something anyone will ever see I simply added:

     

    || !empty($_POST['email1'])
    
    

    To

    if (empty($_POST['first_name']) || empty($_POST['last_name'])) {
    
    

    And in my tests it seems to work. It does display "We need your name" error if the field is filled in, but that's fine as most people won't encounter it.

  5. Hi guys, my client and I don't like or wish to use Captcha on the register form. Is it possible to add in a field to the registration form and check whether it's not empty and kill the registration? In cubecart.class.php on line 888 before:

    // Check email is valid
    				if (!filter_var($_POST['user']['email'], FILTER_VALIDATE_EMAIL)) {
    					$errors['email'] = true;
    					$error_messages[] = $GLOBALS['language']->common['error_email_invalid'];
    				}
    

    I've tried adding:

    if ($_POST['user']['middlename'] != "") {
        die();
    }
    

    And then adding a hidden "middlename" field to the registration, but even if you complete middle name it lets you sign up.

     

    Anyone got any ideas why my code isn't working?

     

    Cheers

  6. Got a strange issue that's happened twice now, the store address has reverted back to the old store address, meaning there is an issue when you click on the links it tries to go to the old URL and causes an error because of the SSL Certificate being on the new address.

     

    Anyone got any idea why this would happen? A cache clearing seems to sort it out, but it's a pain to have to keep checking it.

  7. By the way, i've just been sent a successful referring URL from the old successful transactions:

    https://www.domain.com/index.php?_g=rm&type=gateway&cmd=process&module=Protx&cart_order_id=*OrderID*X

    On 2 other old, successful transactions, there is an X at the end instead of an A. Not sure what relevance this does or doesn't have.

     

    bssmither, just tried that code and got this:

     

    "Decoding callback failed. Nothing to decrypt."

     

    :dizzy: 


    Erm, i've just noticed the old gateway also says Protx in the callback?! Could this be an error? I'm assuming that just tells the store which payment system was used?

×
×
  • Create New...