Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    May 2010
    Posts
    1
    Plugin Contributions
    0

    Default CMCiC french banks - IPN troubles

    Hi all,

    I'm the creator of the french banks CMCiC contribution for osCommerce. As I'm translating it for ZenCart (lot of people tried but nobody gets it...) I'm in trouble with the IPN process. The session isn't recovered so the order can't be recognized by the system as the customer as just paid and is still on the bank server.

    Here is the code :

    PHP Code:
    echo 'session :'.$CMCIC_bruteVars['texte-libre'].'<br />';

    if (!
    function_exists('session_start')) {
        
    define('PHP_SESSION_NAME''zenid');
        
    define('PHP_SESSION_PATH'$cookie_path);
        
    define('PHP_SESSION_DOMAIN'$cookie_domain);
        
    define('PHP_SESSION_SAVE_PATH'SESSION_WRITE_DIRECTORY);

        include(
    DIR_WS_CLASSES 'sessions.php');
    }

    zen_session_name('zenid');
    zen_session_save_path(SESSION_WRITE_DIRECTORY);
    // récupération de l'id de session contenu dans texte-libre
    zen_session_id($CMCIC_bruteVars['texte-libre']);
    $session_started false;
    zen_session_start();
    $session_started true;

    echo 
    'customer_id :'.$_SESSION['customer_id'].'<br />'
    When I manually execute it as the bank does, I can read the right $CMCIC_bruteVars['texte-libre'] identifier. But the session seems not to be created as $_SESSION['customer_id'] seems to be desperatly empy.

    Do anyone has got ideas about this ?

  2. #2
    Join Date
    Sep 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: CMCiC french banks - IPN troubles

    Hello

    I'm very interested about this... Did you get it ?
    Maybe i can help you with my little knowledge ?

  3. #3
    Join Date
    Apr 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: CMCiC french banks - IPN troubles

    I've got a module that do the jobs, BUT one problem still exists.
    In the mail sent to customer I've got the list of items purchased, but no Price into the Emails and no totals.
    This is also the same into the table Order Total.

    What the process used to get the price of items and set the correct values into tables.

    Pascal

  4. #4
    Join Date
    Apr 2010
    Posts
    74
    Plugin Contributions
    0

    Default HOW TO get a complete CheckOut process with CMCIC?

    Hi all,

    I've added the CMCIC Module on my shop.
    Lots of problem, because this module is designed for PHP 5, and my serveur is using PHP 4
    Now all the processus works, I can send the request to the CMCIC server and get the response upon paiement done.

    The last thing that is missing, is that I don't have the table order_total updated with this order.

    Into the Email, I just get the list of purchased item with no prices.
    What's missing into the process ?

    Any idea ?
    Thanks for your help
    Pascal

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,264
    Plugin Contributions
    3

    Default Re: HOW TO get a complete CheckOut process ?

    Where did you get this "CMCIC" module and what is it designed to do?
    20 years a Zencart User

  6. #6
    Join Date
    Apr 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: HOW TO get a complete CheckOut process ?

    I've download it from the French Zencart download.
    The process is supposed to send a request to CMCIC Server for Credit Card payement and get back the response upon success or not.

    All seems good EXCEPT the fact that the table Order Total is not updated.

    Pascal

  7. #7
    Join Date
    Apr 2010
    Posts
    74
    Plugin Contributions
    0

    Default Payment Module HOW TO?

    Hello,

    I'm looking for information on HOW TO design a payment module.
    I've got a module and things are missing during the process.
    There is no price added to product for my order.
    HOW Can I check/correct this ?

    The payment is done in two way : The first one where we create the button to process the payment to a Bank Server.
    And upon payment the Bank server notify the Shop, and there we recreate the context to create the order, but the order is not complete because the order total table does not contains any information of the order, AND the email just remind all the order items with no price.

    Any idea ?
    To complete this module

    Pascal

  8. #8
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Payment Module HOW TO?

    Quote Originally Posted by zattara View Post
    I'm in trouble with the IPN process.
    The use of an IPN to complete an order is ALWAYS going to be problematic.
    A BETTER approach is for the bank/gateway to allow API calls which the store can use to submit the transaction and receive an immediate response. Then the order doesn't need to be reconstructed, and thus all the VERY SERIOUS security problems of using an IPN can be avoided.

    Quote Originally Posted by fe1lho View Post
    And upon payment the Bank server notify the Shop
    THAT is the problem.
    It is better to allow the shop to directly control the transaction, instead of giving away all control to the bank.

    Quote Originally Posted by fe1lho View Post
    and there we recreate the context to create the order, but the order is not complete because the order total table does not contains any information of the order
    The order table, and orders_products and order_total tables will NOT contain ANY details of the order until the payment module completes the payment.
    A proper gateway module will receive confirmation IMMEDIATELY (not via an IPN) while the customer is in the browser, with active session, as part of the checkout_process code execution, which will run the before_process() and after_process() methods of the payment module to finalize the payment details and validation process, then hand off the order information to the order class to save the order and order total details, and then finally send the emails to the customer and storeowner.

    If you insist on using an IPN process, you must RECREATE your OWN custom version of the ENTIRE checkout_process logic after you first rebuild a COPY of the entire customer's session in their absence. This also requires you to do CAREFUL security validation to ensure there is no fraudulent hijacking or spoofing taking place.

    Using an IPN process is not ideal, and fraught with the sorts of problems you are encountering.
    .

    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.

  9. #9
    Join Date
    Apr 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: Payment Module HOW TO?

    Quote Originally Posted by DrByte View Post
    The order table, and orders_products and order_total tables will NOT contain ANY details of the order until the payment module completes the payment.
    A proper gateway module will receive confirmation IMMEDIATELY (not via an IPN) while the customer is in the browser, with active session, as part of the checkout_process code execution, which will run the before_process() and after_process() methods of the payment module to finalize the payment details and validation process, then hand off the order information to the order class to save the order and order total details, and then finally send the emails to the customer and storeowner.
    Well as I said, on the response transaction from the bank, there is some checks according transactions and session, so there is some security.

    The order in my case is there created and the order products table are updated with the current order.
    BUT there is no price associated to the product, and the email sent to the customer and storeowner, just list the products with no price, and no Total

    I just notice that in may case the CMCI Class does not extend the base..
    Is it there the solution ???
    Any idea ?

    Pascal

  10. #10
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Payment Module HOW TO?

    Extending "base" is not going to solve this problem of yours.

    You need to study your code to determine where it is missing the steps which properly build the order details, and fix that.
    .

    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 2 12 LastLast

Similar Threads

  1. v139h Paypal IPN redirected to french version
    By JE2009 in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 9 Mar 2012, 09:57 AM
  2. How do i change banks when using Google check out for my zen cart?
    By len47811 in forum Addon Payment Modules
    Replies: 1
    Last Post: 2 Jul 2010, 12:04 AM
  3. Bank to Bank Transaction module for two different banks with min and max limit!
    By dionidis in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 21 Sep 2009, 02:28 PM
  4. paypal ipn problem (not echeque) timeout getting IPN
    By miccysoft in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 9 May 2007, 12:40 PM
  5. Which Merchant Banks
    By xcphil in forum General Questions
    Replies: 1
    Last Post: 9 Oct 2006, 03:49 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