Results 1 to 10 of 64

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by icecold View Post
    ok, but that draws the standard checkout button pages, and that is not what I want, I need to draw a button below the cart the way paypal and google checkout do, because the standard checkout process, has to be avoided, the only thing my process_button() method(sorry for the function thing), needs to do is submit these data, using a custom International Checkout button, that will not interfere with the standard checkout process.
    LOL - sounds like it is absolutely interfering with the standard checkout process, by bypassing it entirely!
    Quote Originally Posted by icecold View Post
    That's why I wanted to know if the code can go withing the class or I have to write in other file, or somewhere in the shopping cart.
    I don't know how GC does it.
    The PayPal button is simply drawn within the template where it's required.
    .

    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.

  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 DrByte View Post
    LOL - sounds like it is absolutely interfering with the standard checkout process, by bypassing it entirely!
    I don't know how GC does it.
    The PayPal button is simply drawn within the template where it's required.
    Lol, it does

    ok, so that's std way GC process_button() is empty!

    BTW is there an easier such as writing the code in a separate file and require it or inside the class?

    Because in my case I just need to write button the way Paypal does, but there is no need for a handler.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    I don't see why you couldn't do it that way.
    .

    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.

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

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

    Quote Originally Posted by DrByte View Post
    I don't see why you couldn't do it that way.
    I read Paypal files, and the Paypal template button file, and is calling ipn_main_handler.php, linking to it,

    HTML Code:
    <div id="PPECbutton" class="buttonRow">
      <a href="<?php echo zen_href_link('ipn_main_handler.php', 'type=ec', 'SSL', true, true, true); ?>"><img src="<?php echo MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG ?>" alt="<?php echo MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT; ?>" /></a>
    </div>
    so in my case do you you think if I link directly to my payment class will work? Won't it try to write to CONFIGURE table and return an error?

    I know you can instantiate a class, but my understanding of PHP Objects is still limited, so I am not sure how that will behave, If that specific method will make a new conflict ... or if I can have new instance, and don't worry about it ...
    Last edited by icecold; 6 Apr 2010 at 12:27 AM.

  5. #5
    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
    I read Paypal files, and the Paypal template button file, and is calling ipn_main_handler.php, linking to it,

    so in my case do you you think if I link directly to my payment class will work? Won't it try to write to CONFIGURE table and return an error?

    I know you can instantiate a class, but my understanding of PHP Objects is still limited, so I am not sure how that will behave, If that specific method will make a new conflict ... or if I can have new instance, and don't worry about it ...

    Sorry I forgot to mention this code is inside Paypal's button template, the tpl_shopping_cart_default, just links to this template.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Yes, but that's just the URL that the button goes to when you click it. You don't need to use ipn_main_handler or anything like that. Use whatever you want for your unique needs. PayPal does way more than what you're talking about, so has only marginal similarities to your needs.
    .

    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.

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

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

    Quote Originally Posted by DrByte View Post
    Yes, but that's just the URL that the button goes to when you click it. You don't need to use ipn_main_handler or anything like that. Use whatever you want for your unique needs. PayPal does way more than what you're talking about, so has only marginal similarities to your needs.
    ok I managed to display the nice button ... but when I click the link I got a permission problem ...

    Access forbidden!

    You don't have permission to access the requested object. It is either read-protected or not readable by the server.

    If you think this is a server error, please contact the webmaster.
    Error 403
    www.store.com
    04/06/10 00:22:47
    Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6

 

 

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