Zen Cart Logo
Forums / Addon Payment Modules / bluepay intergration

bluepay intergration

Locked

Views: 4,140

Results 21 to 29 of 29
This thread is locked. New replies are disabled.
13 Nov 2009, 6:07 PM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

bluepay intergration

Lackew:

There are only about 5 bluepay files (2duplicates?) ...
here are the files/names
/blupay_process.php
\includes\languages\english\modules\payment\bluepay2.php
\includes\functions\html_output.php
\includes\modules\pages\checkout_payment\jscript_blupay_cvv.php
**\includes\modules\payment\blupay2.php**Those 2 files with the same "name" are NOT duplicates.
They have the same name, but VERY different content.
If you mix them up, you'll get errors.

13 Nov 2009, 6:41 PM
#22
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Location:
Tampa Bay
Posts:
223
Plugin Contributions:
1

Re: bluepay intergration

gotcha
so the rewrite was for \includes\languages\english\modules\payment\bluepay2.php ???
this was the one I edited

13 Nov 2009, 6:44 PM
#23
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: bluepay intergration

No. The edits were for the module itself, not the language file.
The file you just mentioned is the LANGUAGE file ... note the "/languages/english/" part in the filename path. ALL that file should contain is a bunch of "define" statements.

14 Nov 2009, 3:30 PM
#24
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Location:
Tampa Bay
Posts:
223
Plugin Contributions:
1

Re: bluepay intergration

Lackew:

must be having a brain freeze cause I cant find what you referenced Sensei. There are only about 5 bluepay files (2duplicates?) and found nothing with 'header' relating to errors/messages
here are the files/names /bluepay_process.php
\includes\languages\english\modules\payment\bluepay2.php
\includes\functions\html_output.php
\includes\modules\pages\checkout_payment\jscript_blupay_cvv.php
\includes\modules\payment\blupay2.php

this is what I have in the highlighted file ```html
('MODULE_PAYMENT_BLUEPAY2_TEXT_JS_CC_NUMBER', '* The credit card number must be at least ' . CC_NUMBER_MIN_LENGTH . ' characters.\n');
define('MODULE_PAYMENT_BLUEPAY2_TEXT_JS_CC_CVV', '* You must enter the 3 or 4 digit number on the back of your credit card\n');
define('MODULE_PAYMENT_BLUEPAY2_TEXT_ERROR_MESSAGE', 'There has been an error processing you credit card, please try again.');
define('MODULE_PAYMENT_BLUEPAY2_TEXT_ERROR_DECLINE', 'Your credit card has been declined - please select another payment option');
define('MODULE_PAYMENT_BLUEPAY2_TEXT_ERROR', 'Oops - there was an error please check your card details');
?>


\includes\languages\english\modules\payment\bluepay2.php is the file I applied the rewrite
14 Nov 2009, 5:09 PM
#25
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: bluepay intergration

You've got the files backwards, and they're incomplete.

Delete them all and start again.

14 Nov 2009, 6:35 PM
#26
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Location:
Tampa Bay
Posts:
223
Plugin Contributions:
1

Re: bluepay intergration

ok deleted everthing and uploaded again....
no changes noted (strange that all the tests buys showed in my bluepay back office)
now about to redo the rewrites

clear now I dont know what I am doing yet last night I was looking at some codes that perhaps may help achieve my goal?

$messageStack->add_session('checkout_payment', $error . '<!-- ['.$this->code.'] -->', 'error');
      zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));
    }

and

function get_error() 
  {
    global $_GET;

    $error = array('title' => MODULE_PAYMENT_BLUEPAY2_TEXT_ERROR,
                   'error' => stripslashes(urldecode($_GET['error'])));

    return $error;
  }
14 Nov 2009, 6:48 PM
#28
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Location:
Tampa Bay
Posts:
223
Plugin Contributions:
1

Re: bluepay intergration

now the rewrites draw a blank page
I corrected an typo I made
all is ok
but no effect on error messages

15 Nov 2009, 3:07 PM
#29
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Location:
Tampa Bay
Posts:
223
Plugin Contributions:
1

Re: bluepay intergration

:oops: I finally figured out what has happened. I didnt know that I had 2 versions. I downloaded directly from my backoffice and installed an old mod.
Then I was emailed the new mod and thought (assumed) it was the same.
So I deleted the old Again and installed the new mod and everything is working great - Including the error messages are showing where I wanted!
Thank You :bigups: for your time for if it werent for you Senei I would have never caught my mistake!!!!