If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Payment Modules / bluepay intergration

bluepay intergration

Locked

Started by lackew on 7 Nov 2009, 7:22 PM · Views: 4,153

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,512
Plugin Contributions:
176

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

blessed be the day we make tomorrow a better yesterday

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

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

blessed be the day we make tomorrow a better yesterday

14 Nov 2009, 5:09 PM
#25
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: bluepay intergration

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

Delete them all and start again.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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;
  }

blessed be the day we make tomorrow a better yesterday

14 Nov 2009, 6:45 PM
#27
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: bluepay intergration

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

blessed be the day we make tomorrow a better yesterday

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

blessed be the day we make tomorrow a better yesterday