Results 1 to 10 of 679

Hybrid View

  1. #1
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: Stripe payment module - Triplicate orders

    #4 just provided this info:

    "I kept getting redirected back to the cart after I selected the Amazon Pay without receiving any notice at all. there was no information about if the order payment was denied or anything else.
    So, after 2 Amazon attempts, I decided to try my credit card, and I was able to complete the order."


    Its as if something changed at Stripe and now Payments other than credit cards, fail to create an order in Zen

  2. #2
    Join Date
    Jul 2021
    Location
    Fukuoka Japan
    Posts
    132
    Plugin Contributions
    2

    Default Re: Stripe payment module - Triplicate orders

    Quote Originally Posted by split63 View Post
    #4 just provided this info:

    "I kept getting redirected back to the cart after I selected the Amazon Pay without receiving any notice at all. there was no information about if the order payment was denied or anything else.
    So, after 2 Amazon attempts, I decided to try my credit card, and I was able to complete the order."


    Its as if something changed at Stripe and now Payments other than credit cards, fail to create an order in Zen


    When Zen cart session end and Stripe session sill alive.
    Stripe payment######
    Zen cart: Not pass

    When Stripe session end and Zen cart session still alive.
    Stripe payment:Not Pass
    Zen cart: pass

    Even if Zen cart session ended and Stripe session also ended, Stripe "Confirm button" displayed.
    and the customers redirect to the front page after pushing the button.

    You can check your Zen cart session time in inculdes/functions/sessions.php
    line15-31
    $SESS_LIFE


    Did you rewrite following codes to bottom of the tpl_checkout _confirmation_default.php?


    PHP Code:
    <!--------stripe-------->

    <?php
    $jason_stripe_select 
    json_encode($stripe_select);
    $jason_sess_life json_encode($SESS_LIFE);
    $timeoutURL '"' HTTPS_SERVER DIR_WS_HTTPS_CATALOG 'index.php?main_page=time_out"';
    ?>
    <script>

    var stripe_select = JSON.parse('<?php echo $jason_stripe_select?>'); 
    var sess_life = JSON.parse('<?php echo $jason_sess_life?>'); 
    var timeoutURL = JSON.parse('<?php echo $timeoutURL?>'); 

    if (stripe_select === "True") {

        document.getElementById('btn_submit').style.display ="none";
        document.getElementById('checkout_confirmation').style.display ="none";
        document.getElementById('payment-form','submit').display ="block";
        setTimeout(function(){window.location.href = timeoutURL;}, sess_life*1000);


      }else{
        document.getElementById('btn_submit').display ="block";
        document.getElementById('checkout_confirmation').display ="block";
        document.getElementById('payment-form','submit').style.display ="none";

      }

    </script>
    <!--------end-stripe-------->

  3. #3
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: Stripe payment module - Triplicate orders

    Quote Originally Posted by Gozzandes View Post
    Did you rewrite following codes to bottom of the tpl_checkout _confirmation_default.php?
    The stripe module is the 2.1.9 release, no changes. This module was essentially working until Jan 10th, then all non credit card payments there after failed to create a Zen Order.
    I had not messed with the session issue yet.

    inculdes/functions/sessions.php should be that from 1.5.7c unaltered:

    PHP Code:
    if (IS_ADMIN_FLAG === true) {
        
    $SESS_LIFE = (int)SESSION_TIMEOUT_ADMIN;
        
    // if strict is enabled, must be a max of 900
        
    if (PADSS_ADMIN_SESSION_TIMEOUT_ENFORCED != && $SESS_LIFE 900) {
            
    $SESS_LIFE 900;
        }
    } else {
        
    // read PHP config
        
    $SESS_LIFE get_cfg_var('session.gc_maxlifetime');
        
    // override if set
        
    if (defined('SESSION_TIMEOUT_CATALOG') && (int)SESSION_TIMEOUT_CATALOG 120) {
            
    $SESS_LIFE = (int)SESSION_TIMEOUT_CATALOG;
        }
        
    // if set toooo short, reset to default
        
    if ((int)$SESS_LIFE 120) {
            
    $SESS_LIFE 1440

    This is the code at the bottom of /responsive_classic/templates/tpl_checkout_confirmation_default.php

    PHP Code:
    <!--------stripe-------->

    <?php
    $jason_stripe_select 
    json_encode($stripe_select);
    ?>
    <script>

    var stripe_select = JSON.parse('<?php echo $jason_stripe_select?>'); 
    if (stripe_select === "True") {
        document.getElementById('btn_submit').style.display ="none";
        document.getElementById('checkout_confirmation').style.display ="none";
        document.getElementById('payment-form','submit').display ="block";
      }else{
        document.getElementById('btn_submit').display ="block";
        document.getElementById('checkout_confirmation').display ="block";
        document.getElementById('payment-form','submit').style.display ="none";

      }
    </script>
    <!--------end-stripe-------->
    Last edited by split63; 12 Jan 2025 at 04:16 PM.

 

 

Similar Threads

  1. pay2check.com payment module?
    By sunrise99 in forum Addon Payment Modules
    Replies: 0
    Last Post: 1 Nov 2011, 03:55 AM
  2. klikandpay.com payment module
    By rulest in forum Addon Payment Modules
    Replies: 0
    Last Post: 24 Sep 2010, 06:06 PM
  3. AlertPay Payment Module Integration Help Please!
    By etorf9751 in forum Addon Payment Modules
    Replies: 8
    Last Post: 16 Aug 2010, 05:06 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