Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: Advise needed to change the format of INVNUM, to fight duplicated orders?

    Update. I received two duplicated submission cases over the weekend. Both are intercepted by this mod in this thread properly. No duplicated payments are received. Now I'm using 120s (2m) delay time.

    Case #1
    2023-04-29 12:15:34 INVNUM 14023207
    DoDirectPayment, Elapsed: 3159ms -- Success

    2023-04-29 12:15:34 INVNUM 14023207
    DoDirectPayment, Elapsed: 3640ms -- Failure

    2023-04-29 12:15:35 INVNUM 14023207
    DoDirectPayment, Elapsed: 3832ms -- Failure

    Case #2
    2023-05-01 08:12:26 INVNUM 14024526
    DoDirectPayment, Elapsed: 3060ms -- Success

    2023-05-01 08:12:28 INVNUM 14024526
    DoDirectPayment, Elapsed: 2460ms -- Failure

    2023-05-01 08:12:28 INVNUM 14024526
    DoDirectPayment, Elapsed: 2777ms -- Failure

    2023-05-01 08:13:43 INVNUM 14024526
    DoDirectPayment, Elapsed: 2512ms -- Failure

  2. #12
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,718
    Plugin Contributions
    123

    Default Re: Advise needed to change the format of INVNUM, to fight duplicated orders?

    Quote Originally Posted by njcyx View Post
    Done. Here is the link for my PR. Actually it is my first time to submit a PR...lol.
    Thanks for doing this - hopefully we'll see more PRs from you in the future!
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #13
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: Advise needed to change the format of INVNUM, to fight duplicated orders?

    Update again: I just changed the INVNUM interval back to 60s. I used the 120s interval in the past two months. I haven't received any duplicated orders and this trick didn't trigger as designed. But I received two "Friendly Fire" in this period: two customers tried to checkout with credit card (OPC) in two minutes, so later transaction was blocked.

    I started to think, this issue may be due to the ISP/server, since I didn't change paypal code other than INVNUM. Not sure.
    Last edited by njcyx; 29 Jun 2023 at 10:23 PM.

  4. #14
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,718
    Plugin Contributions
    123

    Default Re: Advise needed to change the format of INVNUM, to fight duplicated orders?

    60 might be the right balance of risk and reward.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #15
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: Advise needed to change the format of INVNUM, to fight duplicated orders?

    Possibly yes. I used 60s in my PR.

    As it is said, "The first draft is always perfect"...lol.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. ZJ Black Template advise needed
    By mlamme in forum Addon Templates
    Replies: 0
    Last Post: 17 Feb 2010, 01:04 PM
  2. Replies: 0
    Last Post: 14 Apr 2008, 08:54 PM
  3. Change the format of strikethrough
    By eaglewu in forum General Questions
    Replies: 0
    Last Post: 10 Feb 2007, 05:07 AM

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