Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2016
    Location
    Norcatur, Kansas, USA
    Posts
    80
    Plugin Contributions
    3

    help question Session payment_method_messages how to set for payment module

    I have written a Rent-To-Own payment module but I need to have a payment message displayed upon checkout success, like the older version of Zencart used to do. I have done some searching through the code and found the variable:

    $_SESSION['payment_method_messages']

    in HEADER_PHP.php but I was wondering how and where in the payment module I would set this so it gets displayed on the order confirmation page.

    I am using Zencart 1.5.5

    Thanks

  2. #2
    Join Date
    Mar 2016
    Location
    Norcatur, Kansas, USA
    Posts
    80
    Plugin Contributions
    3

    Default Re: Session payment_method_messages how to set for payment module

    Okay, I figured out how to do it. In the "modules/payments/paybyrto.php" file (which I copied from the paybyphone.php) I added the following code:

    Code:
        function after_process() {
    		$_SESSION['payment_method_messages'] = MODULE_PAYMENT_PBRTO_TEXT_DESCRIPTION ;
          return false;
        }

 

 

Similar Threads

  1. v139b how to set up payment module authorize.net AIM or SIM
    By rich00693 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 10 Oct 2013, 12:27 PM
  2. v150 How do I set a Payment Zone into my payment module's settings?
    By apt763 in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 2 Mar 2012, 07:10 PM
  3. How to set up zones for payment module
    By Dustie in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 28 Dec 2010, 04:10 PM
  4. Replies: 25
    Last Post: 28 Jun 2009, 07:54 AM
  5. How do I set up Trust Commerce Payment Module with Zen Cart?
    By tclayla in forum Addon Payment Modules
    Replies: 0
    Last Post: 17 Oct 2008, 06:11 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR