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 1 to 20 of 29
This thread is locked. New replies are disabled.
7 Nov 2009, 7:22 PM
#1
lackew avatar

lackew

Zen Follower

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

bluepay intergration

On the home stretch of going Live, and trying to figure out how to insert Bluepays payment error messages to show inside ZC where the offline processing errors show instead of atop of the title bar where it is dificult for the customer to see (it appears the page just reloads if you dont look up and hard).

I added the define error strings to english.php but that didnt work any Suggestions????

blessed be the day we make tomorrow a better yesterday

7 Nov 2009, 10:42 PM
#2
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

this is want I want to insert

define('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');
?>

into ZC payment modules

blessed be the day we make tomorrow a better yesterday

9 Nov 2009, 9:14 PM
#3
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

On the home stretch of going Live, and trying to figure out how to insert Bluepays payment error messages to show inside ZC where the offline processing errors show instead of atop of the title bar where it is dificult for the customer to see (it appears the page just reloads if you dont look up and hard).
this is want I want to insert

define('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');
?>

into ZC payment modules

I added the define error strings to english.php but that didnt work any Suggestions????

blessed be the day we make tomorrow a better yesterday

9 Nov 2009, 9:32 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,747
Plugin Contributions:
0

Re: bluepay intergration

Moderator's note: New thread on same topic merged here. Please don't start a new thread.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

10 Nov 2009, 4:21 PM
#5
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

sorry but I thought I may have posted in the wrong topic!

blessed be the day we make tomorrow a better yesterday

12 Nov 2009, 3:47 PM
#6
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

Actually I only want to have the error messages show in page 2 or 3 of check out where the normal error messages show

blessed be the day we make tomorrow a better yesterday

12 Nov 2009, 5:59 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: bluepay intergration

Lackew:

trying to figure out how to insert Bluepays payment error messages to show inside ZC ... instead of atop of the title barChange the messageStack for the error message to be 'checkout_payment' instead of 'header'

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

12 Nov 2009, 8:54 PM
#8
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

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 /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
Link to bluepay files
did a search with Tool and saw nothing that stood out either!:no:

blessed be the day we make tomorrow a better yesterday

12 Nov 2009, 9:04 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: bluepay intergration

Dude, that module is ancient, and contains an outdated html_output.php file that is dangerous to apply to a live v1.3.x site.

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

12 Nov 2009, 9:22 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: bluepay intergration

As far as changing the way error messages are displayed, you'll need to do similarly to what's posted here: http://www.zen-cart.com/forum/showthread.php?t=141469

Namely, make edits to the /includes/modules/payment/bluepay2.php payment module file:

Line 210: change this:zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));to this:global $messageStack; $messageStack->add_session('checkout_payment', $error, 'error'); zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));and lines 304-313, change this:if ($_POST['APPROVED_URL'] == 'DECLINED') { zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_BLUEPAY2_TEXT_ERROR_DECLINE), 'SSL', true, false)); } elseif ($_POST['APPROVED_URL'] == 'MISSING') { zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_BLUEPAY2_TEXT_ERROR), 'SSL', true, false)); }to this:```
global $messageStack;
if ($_POST['APPROVED_URL'] == 'DECLINED')
{
$messageStack->add_session('checkout_payment', MODULE_PAYMENT_BLUEPAY2_TEXT_ERROR_DECLINE, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
}
elseif ($_POST['APPROVED_URL'] == 'MISSING')
{
$messageStack->add_session('checkout_payment', MODULE_PAYMENT_BLUEPAY2_TEXT_ERROR, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
}

If you find this useful, please consider a donation to the Zen Cart team for the time spent in rewriting the code for you: <http://www.zen-cart.com/index.php?main_page=infopages&pages_id=14>

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

12 Nov 2009, 9:57 PM
#11
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

great will work on it tonight and let your know morrow if I get it right!
And I will definately make a donation, yet if you Senei, Nick & Linda (fellow buckeye) are ever in the Tampa Bay area I will spring for a steak dinner too and be personal tour guide (I was treated GRANDLY in Toronto)!

blessed be the day we make tomorrow a better yesterday

12 Nov 2009, 10:08 PM
#12
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

DrByte:

Dude, that module is ancient, and contains an outdated html_output.php file that is dangerous to apply to a live v1.3.x site.

hmmmmmmm will have to get with bluepay, that is what they sent to me:(

perhaps I can work with the default file, maybe that is why my CSS buttons disappeared for no reason

blessed be the day we make tomorrow a better yesterday

12 Nov 2009, 10:10 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: bluepay intergration

Lackew:

perhaps I can work with the default file, maybe that is why my CSS buttons disappeared for no reason
Yes, most likely. I'd skip the html_output.php file they included. You really want the newest one with the security patches in it anyway.

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

12 Nov 2009, 10:21 PM
#14
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

I just uploaded the ZC original hmtl_output.php and the cart still works ok so far. Dont know why bluepay changed the file - I see that it is half the original file size.

My CSS buttons are BACK:clap:

blessed be the day we make tomorrow a better yesterday

12 Nov 2009, 10:29 PM
#15
drbyte avatar

drbyte

Sensei

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

Re: bluepay intergration

The newer module, which you uploaded, appears to not require the edits I posted above. I'm puzzled why you weren't using that module on your site instead of the old one.
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1447

.
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, 3:23 PM
#16
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

unfortunately the rewrite didnt work

blessed be the day we make tomorrow a better yesterday

13 Nov 2009, 4:34 PM
#17
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

think my admin is broken. this is what appears in modules/payments

Payment Modules

Modules Sort Order Orders Status Action
Authorize.net (SIM) authorizenet
Authorize.net (AIM) authorizenet_aim
Authorize.net - eCheck authorizenet_echeck

Fatal error: Cannot redeclare class bluepay2 in /home/content/d/e/m/demonann/html/shop/includes/modules/payment/bluepay2.php on line 23

nothing else
HELP!!!!!!!!!!

blessed be the day we make tomorrow a better yesterday

13 Nov 2009, 4:44 PM
#18
drbyte avatar

drbyte

Sensei

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

Re: bluepay intergration

That sounds like you've got the module file in the languages folder instead of the language file being there.

.
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, 4:51 PM
#19
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

Yeah I did a search, but didnt find anything tho. nothing was uploaded recently - just edited the bluepay2.php lat night and everything was Ok then
got everything back:clap:
right before I was about to break out in Tears!!!!!!!!!

blessed be the day we make tomorrow a better yesterday

13 Nov 2009, 5:22 PM
#20
lackew avatar

lackew

Zen Follower

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

Re: bluepay intergration

DrByte:

The newer module, which you uploaded, appears to not require the edits I posted above. I'm puzzled why you weren't using that module on your site instead of the old one.
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1447

hmmmmmmmmmm not sure what you are saying????

blessed be the day we make tomorrow a better yesterday