Re: Stripe payment module - Duplicate order
Quote:
Originally Posted by
split63
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
Re: Stripe payment module - Duplicate order
Sorry
$timeoutURL is not Zen cart session expired time.
$SESS_LIFE is Zen cart session expired time.
1 Attachment(s)
Re: Stripe payment module -Duplicate orders
Quote:
Originally Posted by
Gozzandes
I've uploaded stripe module ver 219 to github.com.
You can download following link.
Link of Previous message is different.
stripe module 219 for zen cart
When you upgrade your module, overwrite following 4 files and add jscript_stripe.php.
\includes\checkout.js
\includes\modules\payment\stripe.php
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default.ph p
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_one_confirmation_defaul t.php
\includes\modules\pages\checkout_payment\jscript_stripe.php
I recommend
The module should be test using local computer with Xampp before uploading to live site.
Nihon yokane corporation
Hi Gozzandes, I have performed this procedure... I am in TEST MODE... have the proper test credentials configured in the module's admin section (admin login area of Zen Cart install)... still have no feilds to enter CC info at Step 2 of 3... or at Step 3 of 3.
It's the same as before and simply states "Payment Type: Credit Card" and nothing more.
Should I FTP the entire 2.1.9 module and simply have it "overwrite" any and all duplicate files? Perhaps this will fix the issue?
Here is a "Debug Log" that was generated after I tried this test order FWIW..
[10-Jan-2025 21:13:56 UTC] Request URI: /index.php?main_page=checkout_confirmation, IP address: 35.140.26.5, Language id 1
#1 stripe->pre_confirmation_check() called at [/includes/classes/payment.php:309]
#2 payment->pre_confirmation_check() called at [/includes/modules/pages/checkout_confirmation/header_php.php:92]
#3 require(/includes/modules/pages/checkout_confirmation/header_php.php) called at [/index.php:35]
--> PHP Warning: Undefined array key "paymentIntent" in /includes/modules/payment/stripe.php on line 169.
Attachment 20857
2 Attachment(s)
Re: Stripe payment module -Duplicate orders
[QUOTE=BigB;1405241]Hi Gozzandes, I have performed this procedure... I am in TEST MODE... have the proper test credentials configured in the module's admin section (admin login area of Zen Cart install)... still have no feilds to enter CC info at Step 2 of 3... or at Step 3 of 3.
It's the same as before and simply states "Payment Type: Credit Card" and nothing more.
Should I FTP the entire 2.1.9 module and simply have it "overwrite" any and all duplicate files? Perhaps this will fix the issue?
Here is a "Debug Log" that was generated after I tried this test order FWIW..
[10-Jan-2025 21:13:56 UTC] Request URI: /index.php?main_page=checkout_confirmation, IP address: 35.140.26.5, Language id 1
#1 stripe->pre_confirmation_check() called at [/includes/classes/payment.php:309]
#2 payment->pre_confirmation_check() called at [/includes/modules/pages/checkout_confirmation/header_php.php:92]
#3 require(/includes/modules/pages/checkout_confirmation/header_php.php) called at [/index.php:35]
--> PHP Warning: Undefined array key "paymentIntent" in /includes/modules/payment/stripe.php on line 169.
Here's an up close pic of what I mean.... I don't get any feilds to enter CC info...
Attachment 20859
Re: Stripe payment module -Duplicate orders
[QUOTE=BigB;1405244]
Quote:
Originally Posted by
BigB
Hi Gozzandes, I have performed this procedure... I am in TEST MODE... have the proper test credentials configured in the module's admin section (admin login area of Zen Cart install)... still have no feilds to enter CC info at Step 2 of 3... or at Step 3 of 3.
It's the same as before and simply states "Payment Type: Credit Card" and nothing more.
Should I FTP the entire 2.1.9 module and simply have it "overwrite" any and all duplicate files? Perhaps this will fix the issue?
Here is a "Debug Log" that was generated after I tried this test order FWIW..
[10-Jan-2025 21:13:56 UTC] Request URI: /index.php?main_page=checkout_confirmation, IP address: 35.140.26.5, Language id 1
#1 stripe->pre_confirmation_check() called at [/includes/classes/payment.php:309]
#2 payment->pre_confirmation_check() called at [/includes/modules/pages/checkout_confirmation/header_php.php:92]
#3 require(/includes/modules/pages/checkout_confirmation/header_php.php) called at [/index.php:35]
--> PHP Warning: Undefined array key "paymentIntent" in /includes/modules/payment/stripe.php on line 169.
Here's an up close pic of what I mean.... I don't get any feilds to enter CC info...
Attachment 20859
Copy the following files.
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default.ph p
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_one_confirmation_defaul t.php
and paste/overwrite it to
\includes\templates\responsive_classic\templates\tpl_checkout_confirmation_defau lt.ph p
\includes\templates\responsive_classic\templates\tpl_checkout_one_confirmation_d efaul t.php
Re: Stripe payment module -Duplicate orders
[QUOTE=Gozzandes;1405246]
Quote:
Originally Posted by
BigB
Copy the following files.
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default.ph p
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_one_confirmation_defaul t.php
and paste/overwrite it to
\includes\templates\responsive_classic\templates\tpl_checkout_confirmation_defau lt.ph p
\includes\templates\responsive_classic\templates\tpl_checkout_one_confirmation_d efaul t.php
OK... will give it a go. Thank you
Re: Stripe payment module -Duplicate orders
[QUOTE=Gozzandes;1405246]
Quote:
Originally Posted by
BigB
Copy the following files.
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default.ph p
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_one_confirmation_defaul t.php
and paste/overwrite it to
\includes\templates\responsive_classic\templates\tpl_checkout_confirmation_defau lt.ph p
\includes\templates\responsive_classic\templates\tpl_checkout_one_confirmation_d efaul t.php
This seems to have worked. Now the fields show to enter the faux CC info. I did a test order and everything was showing as it should. Thank you very much for helping. Greatly appreciated :bigups:
I did get this in a Debug Log after doing the test order... not sure if it's a big problem or not:
[11-Jan-2025 19:37:38 UTC] Request URI: /index.php?main_page=checkout_confirmation, IP address: 35.140.26.5, Language id 1
#1 stripe->pre_confirmation_check() called at [/includes/classes/payment.php:309]
#2 payment->pre_confirmation_check() called at [/includes/modules/pages/checkout_confirmation/header_php.php:92]
#3 require(/includes/modules/pages/checkout_confirmation/header_php.php) called at [/index.php:35]
--> PHP Warning: Undefined array key "paymentIntent" in /includes/modules/payment/stripe.php on line 169.
1 Attachment(s)
Re: Stripe payment module - Triplicate orders
Zen: 1.5.7c
I had to disable Stripe.
Not sure what happened, many stripe payments with no Zen order. And one Triplicate order
I have numbered the failed orders below. Here is the feedback from the customers for each
1. Order changed from $98.94 to $102.24; changed shipping method. notification from cash app for the charge but after I submitted the order it just took me back to the main page
2. Selected Cash App pay, clicked confirm order, says the payment went through, but the items I selected were still in my cart and there was a button saying “confirm order”
3. I remember seeing it pop up on my phone as a charge to my account so I assumed it went thru.
4. No feedback yet
Attachment 20860
Re: Stripe payment module - Triplicate orders
[QUOTE=Gozzandes;1405246]
Quote:
Originally Posted by
BigB
Copy the following files.
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default.ph p
\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_one_confirmation_defaul t.php
and paste/overwrite it to
\includes\templates\responsive_classic\templates\tpl_checkout_confirmation_defau lt.ph p
\includes\templates\responsive_classic\templates\tpl_checkout_one_confirmation_d efaul t.php
[QUOTE=BigB;1405256]
Quote:
Originally Posted by
Gozzandes
This seems to have worked. Now the fields show to enter the faux CC info. I did a test order and everything was showing as it should. Thank you very much for helping. Greatly appreciated :bigups:
I did get this in a Debug Log after doing the test order... not sure if it's a big problem or not:
[11-Jan-2025 19:37:38 UTC] Request URI: /index.php?main_page=checkout_confirmation, IP address: 35.140.26.5, Language id 1
#1 stripe->pre_confirmation_check() called at [/includes/classes/payment.php:309]
#2 payment->pre_confirmation_check() called at [/includes/modules/pages/checkout_confirmation/header_php.php:92]
#3 require(/includes/modules/pages/checkout_confirmation/header_php.php) called at [/index.php:35]
--> PHP Warning: Undefined array key "paymentIntent" in /includes/modules/payment/stripe.php on line 169.
I have noticed that on the two test orders I have tried that the payments show as "Pending"... I'm offering digital download products and there is a message that states "NOTE: Downloads are not available until payment has been confirmed".
I would think that payments would be "confirmed" while using test mode but, I don't know for certain. Perhaps there is a setting I need to configure or maybe the Debug Log is pointing to this issue? Any insight or suggestions is greatly appreciated, thanks
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