Results 1 to 10 of 679

Hybrid View

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

    Default Re: Stripe payment module - PAYPAL IMPAIRED

    Quote Originally Posted by split63 View Post
    When I rolled all this to the live site today, the low order fee issue got me again. I had to set the fee to 0.

    It looks like the above did not make it into 2.1.9


    I can confirm that the "TEXT_PAYMENT_STRIPE_PAYMENTSUCCEEDED" message was resolved with the SQL patch
    MODULE_ORDER_TOTAL_LOWORDERFEE_LOW_ORDER_FEE is Allow Low Order Fee.

    Translate the code into English.
    PHP Code:
         if (MODULE_ORDER_TOTAL_LOWORDERFEE_LOW_ORDER_FEE == 'true' && MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER >= $order->info['total']) { 
    If you set "Allow Low Order Fee" to true and customer's order under ## dollar.
    I will add ## dollar to total as a low order fee.

    If you do not want to add low order fee, you should set "Allow Low Order Fee" to false.

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

    Default Re: Stripe payment module - Duplicate order

    With 2.1.9 installed for Zen 1.5.7c I just got another duplicate order.

    This time it was a Link payment. The two orders are 3 minutes apart. Only the 2nd Link Payment shows in Zen as an order.

    Click image for larger version. 

Name:	duplicate order.jpg 
Views:	71 
Size:	10.4 KB 
ID:	20851

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

    Default Re: Stripe payment module - Duplicate order

    I contacted the customer to see if they had any insight into the Link Payment duplication

    "I was called away while ordering and when I returned to finish the order the session had expired so I logged back in to finish"

    How can the session expire in this situation in 3 minutes?

    I have never used Link, so at checkout it does not show as an option. So I'm not clear what the customer sees or how a link payment can process without a Zen order being created

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

    Default Re: Stripe payment module - Duplicate order

    Quote Originally Posted by split63 View Post
    I contacted the customer to see if they had any insight into the Link Payment duplication

    "I was called away while ordering and when I returned to finish the order the session had expired so I logged back in to finish"
    How can the session expire in this situation in 3 minutes?
    The customer claims he was called away for about 45 minutes. So the 1st and 2nd Stripe payments must have occurred when the customer returned, and the duplication was somehow put in motion by the Zen session timeout which perhaps occurred for Zen but not Stripe?

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

    Default Re: Stripe payment module - Duplicate order

    Quote Originally Posted by split63 View Post
    The customer claims he was called away for about 45 minutes. So the 1st and 2nd Stripe payments must have occurred when the customer returned, and the duplication was somehow put in motion by the Zen session timeout which perhaps occurred for Zen but not Stripe?
    Thank you for reporting the problem
    When disconnected the Zen cart session, redirect to the time out page.
    \includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default.ph p line 197 -216
    from
    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-------->
    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-------->

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

    Default Re: Stripe payment module - Duplicate order

    Quote Originally Posted by Gozzandes View Post
    Thank you for reporting the problem
    When disconnected the Zen cart session, redirect to the time out page.
    \includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default.ph p line 197 -216
    According to Stripe:

    To automatically expire unused Checkout Sessions, you can set the expires_at parameter when creating a Checkout Session. This parameter determines the expiration time of the session and can be set to any time between 30 minutes and 24 hours after the session is created. Once a Checkout Session reaches its expiration time without completion, it becomes inaccessible

    The default expiration time for Stripe Checkout Sessions is 24 hours


    Perhaps the easy fix is to set this parameter to just less than whatever the session time out is for Zen?
    I don't see where it is ever set in the stripe code
    Last edited by split63; 7 Jan 2025 at 07:44 PM.

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

    Default Re: Stripe payment module - Duplicate order

    Quote Originally Posted by split63 View Post
    According to Stripe:

    To automatically expire unused Checkout Sessions, you can set the expires_at parameter when creating a Checkout Session. This parameter determines the expiration time of the session and can be set to any time between 30 minutes and 24 hours after the session is created. Once a Checkout Session reaches its expiration time without completion, it becomes inaccessible

    The default expiration time for Stripe Checkout Sessions is 24 hours


    Perhaps the easy fix is to set this parameter to just less than whatever the session time out is for Zen?
    I don't see where it is ever set in the stripe code
    Zen Cart's session timeout is 1440 seconds by default. This is 24 minutes.
    Stripe's timeout is between 30 minutes and 24 hours, so the same issue will occur during these 6 minutes.
    For this reason, the tpl_checkout_comfirm########.php script is set up to redirect to the time_out page as soon as the Zen Cart session timeout occurs.
    If you want to set it on the Stripe side, you can insert "expires_at:" and the timeout time line 37 of checkout.js. (I haven't check this though)

    $timeoutURL is Zen cart session time

 

 

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