Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Descroption of payment method modules

    I was reading through the moneyorder module and noticed that there were a lot of method for the class. I wanted to know if there was any sort of listing of what each method was made for or when it is supposed to trigger?

    I can get the gist of the some of the methods (__construct is the PHP constructor for when the class is invoked and made, update_status to see if the module is enabled, selection is used when ZC tries to compile the list of modules, install when the module is installed for the first time, remove when the module is being removed, and keys contains an array of the configuration keys necessary for the module to run.

    But when does javascript_validation, pre_confirmation_check, process_button, before_process, after_process, get_error run?

    I tried to read up on it but the entries are sparse in the documentation manual.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,338
    Plugin Contributions
    94

    Default Re: Descroption of payment method modules

    Quote Originally Posted by retched View Post
    I was reading through the moneyorder module and noticed that there were a lot of method for the class. I wanted to know if there was any sort of listing of what each method was made for or when it is supposed to trigger?

    I can get the gist of the some of the methods (__construct is the PHP constructor for when the class is invoked and made, update_status to see if the module is enabled, selection is used when ZC tries to compile the list of modules, install when the module is installed for the first time, remove when the module is being removed, and keys contains an array of the configuration keys necessary for the module to run.

    But when does javascript_validation, pre_confirmation_check, process_button, before_process, after_process, get_error run?

    I tried to read up on it but the entries are sparse in the documentation manual.
    Sparse to non-existent ... unfortunately.

    My best suggestion while waiting for the documentation to catch up is to do a search for each of those methods (e.g. ->javascript_validation) to see where they're issued. Once you know that, you've got a further clue as to a method's use.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 5 May 2020, 05:50 PM
  2. v155 Payment Modules Missing from Modules/Payment Modules When I Upgrade
    By greenftechn in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 23 Dec 2018, 10:57 PM
  3. v155 Admin payment modules page not showing all modules
    By Kennith69 in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 23 Jul 2017, 02:59 AM
  4. v151 Disable a payment method for a chosen shipping method?
    By chowyungunz in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 12 Jun 2015, 12:56 PM
  5. Only show payment method when UPS shipping method chosen?
    By helen610 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Aug 2008, 03:04 AM

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