Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default 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

  2. #2
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default Re: bluepay intergration

    this is want I want to insert
    HTML Code:
    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

  3. #3
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default 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

    HTML Code:
    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

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

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

  5. #5
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default 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

  6. #6
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default 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

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: bluepay intergration

    Quote Originally Posted by Lackew View Post
    trying to figure out how to insert Bluepays payment error messages to show inside ZC ... instead of atop of the title bar
    Change 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.

  8. #8
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default 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!
    blessed be the day we make tomorrow a better yesterday

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

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

  10. #10
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default 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:
    Code:
          zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));
    to this:
    Code:
          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:
    Code:
        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:
    Code:
        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?ma...es&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.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. BluePay module?
    By dan182skater in forum Addon Payment Modules
    Replies: 8
    Last Post: 18 Nov 2010, 02:16 AM
  2. Bluepay Gateway 2.0
    By mbaigBP in forum Addon Payment Modules
    Replies: 1
    Last Post: 18 Nov 2010, 02:12 AM
  3. Lost BluePay Order
    By Bella_Ana in forum General Questions
    Replies: 2
    Last Post: 27 Oct 2008, 05:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg