Results 1 to 10 of 64

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    360
    Plugin Contributions
    0

    Default Re: Create a new module for International Checkout payment module

    so far so good but where the module method has to be called in order to pass the hidden fields to the form?

    In this line inside the module ic I call for a bogus action, but nothing happens from the line of code after //This is not working:

    PHP Code:
    function ic() {
        global 
    $order;

        
    $this->code 'ic';
        if (
    IS_ADMIN_FLAG === true) {
          
    // Payment module title in Admin
          
    $this->title MODULE_PAYMENT_IC_TEXT_ADMIN_TITLE;
        } else {
          
    $this->title MODULE_PAYMENT_IC_TEXT_CATALOG_TITLE;
        }
        
    $this->description MODULE_PAYMENT_IC_TEXT_DESCRIPTION;
        
    $this->sort_order MODULE_PAYMENT_IC_SORT_ORDER;
        
    $this->enabled = ((MODULE_PAYMENT_IC_STATUS == 'True') ? true false);
     
    // This is not working 
     
    $this->form_action_url "https://sandbox.php";
    //works fine    
    if ((int)MODULE_PAYMENT_IC_ORDER_STATUS_ID 0) {
          
    $this->order_status MODULE_PAYMENT_IC_ORDER_STATUS_ID;
        }

        if (
    is_object($order)) $this->update_status();
      } 

  2. #2
    Join Date
    Jul 2008
    Posts
    360
    Plugin Contributions
    0

    Default Re: Create a new module for International Checkout payment module

    Quote Originally Posted by icecold View Post
    so far so good but where the module method has to be called in order to pass the hidden fields to the form?

    In this line inside the module ic I call for a bogus action, but nothing happens from the line of code after //This is not working:

    PHP Code:
    function ic() {
        global 
    $order;

        
    $this->code 'ic';
        if (
    IS_ADMIN_FLAG === true) {
          
    // Payment module title in Admin
          
    $this->title MODULE_PAYMENT_IC_TEXT_ADMIN_TITLE;
        } else {
          
    $this->title MODULE_PAYMENT_IC_TEXT_CATALOG_TITLE;
        }
        
    $this->description MODULE_PAYMENT_IC_TEXT_DESCRIPTION;
        
    $this->sort_order MODULE_PAYMENT_IC_SORT_ORDER;
        
    $this->enabled = ((MODULE_PAYMENT_IC_STATUS == 'True') ? true false);
     
    // Note a full bogus URL doesn't work, no error messages
     
    $this->form_action_url "https://www.store.com/store/sandbox.php";
    //works fine    
    if ((int)MODULE_PAYMENT_IC_ORDER_STATUS_ID 0) {
          
    $this->order_status MODULE_PAYMENT_IC_ORDER_STATUS_ID;
        }

        if (
    is_object($order)) $this->update_status();
      } 
    I made a typo before but I am not getting form_action_url to work ... as there are no errors ... no nothing ...

 

 

Similar Threads

  1. How to create new payment module?
    By Macedonium in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 May 2009, 09:47 PM
  2. Create payment module for cc gateway
    By ccppll in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 22 Apr 2009, 05:00 PM
  3. How to Create a Transaction ID for Payment Module?
    By Diego Vieira in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 21 Mar 2009, 04:40 PM
  4. How to create new payment module?
    By mscro in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 28 Apr 2008, 12:23 AM
  5. How do I create a new payment module?
    By meeven in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 12 Aug 2007, 01:29 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