Forums / Addon Payment Modules / Stripe.com payment integration module

Stripe.com payment integration module

Views: 234,114

Results 661 to 680 of 680
30 Jan 2026, 2:42 AM
#661
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

Stripe.com payment integration module

lat9:

...It feels like your site-specific change...

i do not believe that i have a site specific change.

in addition, it seems that @balihr also had the same problem.

so are you suggesting that we both have site specific changes that are similar if not exact in nature?

while i have discussed some code with balihr and i have in fact collaborated with him on some projects, we have never had conversations prior to this exchange with regards to this payment module.

perhaps when i have the time and inclination i will test on a vanilla install.

but as you say, you have only "restructured" the existing code.... and as i said, i did not think the code prior to your restructuring was ready for use...

i have not done extensive testing, but this basic test just reinforces my opinion.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

30 Jan 2026, 2:34 PM
#662
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Stripe.com payment integration module

carlwhat:

i do not believe that i have a site specific change.

in addition, it seems that @balihr also had the same problem.

so are you suggesting that we both have site specific changes that are similar if not exact in nature?

while i have discussed some code with balihr and i have in fact collaborated with him on some projects, we have never had conversations prior to this exchange with regards to this payment module.

perhaps when i have the time and inclination i will test on a vanilla install.

but as you say, you have only "restructured" the existing code.... and as i said, i did not think the code prior to your restructuring was ready for use...

i have not done extensive testing, but this basic test just reinforces my opinion.

best.
The 'base' checkout_process code has no idea what the requirements of the selected payment method are, that's why your (and @balihr's) bypass of the checkout_confirmation page's processing caused issues. As I noted before, OPC's "Payment Methods that handle submit" configuration setting enables OPC to bypass its auto-submit of the checkout_confirmation page for payment modules so configured.

1 Feb 2026, 7:21 PM
#663
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

Re: Stripe.com payment integration module

lat9:

The 'base' checkout_process code has no idea what the requirements of the selected payment method are, that's why your (and @balihr's) bypass of the checkout_confirmation page's processing caused issues. As I noted before, OPC's "Payment Methods that handle submit" configuration setting enables OPC to bypass its auto-submit of the checkout_confirmation page for payment modules so configured.

this is everything that is wrong, IMO, with this payment module and the checkout flow.

we have a page called checkout_payment. and yet stripe does nothing/little on that page?

i look at this section of code:

https://github.com/lat9/stripe/blob/7becdd955a5695502ebf495a8f719b8ec9ac4914/includes/modules/payment/stripe.php#L140-L163

and there is no validation of a valid stripe payment or anything of the sort.

so you want to force this payment flow to work the way that you want? ignoring what zc provides for the payment?

it seems you want to use the checkout_confirmation page for a payment. that is not really what the base checkout code gives developers.

as i have previously noted in OPC (which i am not sure why you are bringing OPC up in this thread), order totals do NOT match when doing a standard 3 page checkout v OPC. as i have also noted, you get around this quandary by putting in observers in your paypalr module to accommodate this seeming inconsistency. while i have clients that use OPC, i hardly love it.

payment modules should not have to jump through hoops for their use. nor should they require observers to get them to work with OPC v. 3 page checkout.

i will no longer comment on this thread. there are far too many issues, IMO, for this modules use. if other people can get it to work, great. but it is not for me.

i had a client who wanted to implement stripe. after going over the particulars about its use with him, he has decided to not pursue it.

i will further note that my code does NOTHING of the sort that you say. it does NOT bypass checkout confirmation. having javascript submit a form on a checkout confirmation page is not what i would call bypassing the page. bypassing said page would require far too much modification of core ZC code, of which i am loathe to do.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

2 Feb 2026, 12:24 PM
#664
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Stripe.com payment integration module

You can take your dissatisfaction with Zen Cart's checkout flow to another post (either here or on GitHub).

5 Mar 2026, 7:50 PM
#665
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,186
Plugin Contributions:
0

Re: Stripe.com payment integration module

Cindy,
Using ZenCart 2.2.0 Alpha, PHP 8.4.17
Modules: One Page Checkout 2.6.0 beta1, Bootstrap 3.7.9 beta1, Stripe 3.0.0
I created an order with Guest Checkout and getting the following error below:

[05-Mar-2026 13:02:15 America/Chicago] Request URI: /index.php?main_page=checkout_one_confirmation, IP address: XXXXXXXXXX, Language id 1
#0 /includes/modules/pages/checkout_one_confirmation/jscript_stripe_checkout_one_confirmation.php(2): zen_debug_error_handler()
#1 /includes/templates/template_default/common/html_header_js_loader.php(58): require('/home/XXXXX/...')
#2 /includes/templates/boot_haredo220/common/html_header_js_loader.php(26): require('/home/XXXXX/...')
#3 /includes/templates/boot_haredo220/common/html_header.php(161): require('/home/XXXXXX/...')
#4 /index.php(48): require('/home/XXXXX/...') --> PHP Warning: Undefined variable $stripe_select in /includes/modules/pages/checkout_one_confirmation/jscript_stripe_checkout_one_confirmation.php on line 2

I have edited the following file: /includes/modules/pages/checkout_one_confirmation/jscript_stripe_checkout_one_confirmation.php right above line 2 and placed this code

// FIX: Prevent PHP Warning: Undefined variable $stripe_select
if (!isset($stripe_select)) {
$stripe_select = 'True';
}.

Am I correct?
Thank you!

<?php // FIX: Prevent PHP Warning: Undefined variable $stripe_select if (!isset($stripe_select)) { $stripe_select = 'True'; } if (defined('MODULE_PAYMENT_STRIPE_STATUS') && MODULE_PAYMENT_STRIPE_STATUS === 'True' && $stripe_select === 'True') { // ----- // Gather the order data-related values needed by checkout.js. // require DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/stripepay/create.php'; ?>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

6 Mar 2026, 1:09 PM
#666
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Stripe.com payment integration module

haredo:

Cindy,
Using ZenCart 2.2.0 Alpha, PHP 8.4.17
Modules: One Page Checkout 2.6.0 beta1, Bootstrap 3.7.9 beta1, Stripe 3.0.0
I created an order with Guest Checkout and getting the following error below:

[05-Mar-2026 13:02:15 America/Chicago] Request URI: /index.php?main_page=checkout_one_confirmation, IP address: XXXXXXXXXX, Language id 1
#0 /includes/modules/pages/checkout_one_confirmation/jscript_stripe_checkout_one_confirmation.php(2): zen_debug_error_handler()
#1 /includes/templates/template_default/common/html_header_js_loader.php(58): require('/home/XXXXX/...')
#2 /includes/templates/boot_haredo220/common/html_header_js_loader.php(26): require('/home/XXXXX/...')
#3 /includes/templates/boot_haredo220/common/html_header.php(161): require('/home/XXXXXX/...')
#4 /index.php(48): require('/home/XXXXX/...') --> PHP Warning: Undefined variable $stripe_select in /includes/modules/pages/checkout_one_confirmation/jscript_stripe_checkout_one_confirmation.php on line 2

I have edited the following file: /includes/modules/pages/checkout_one_confirmation/jscript_stripe_checkout_one_confirmation.php right above line 2 and placed this code
.

Am I correct?
Thank you!
I'm not sure. Was stripe selected as the order's payment method?

6 Mar 2026, 1:30 PM
#667
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,186
Plugin Contributions:
0

Re: Stripe.com payment integration module

Dang it, I forgot to add in my problem PayPal was used to complete the payment and then I noticed the error log in my admin panel.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

8 Mar 2026, 5:00 PM
#669
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,186
Plugin Contributions:
0

Re: Stripe.com payment integration module

@lat9
Thank you for fixing this issue!

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

19 Mar 2026, 2:56 PM
#670
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Stripe.com payment integration module

v3.0.1 of the Stripe payment-module is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1548

This release corrects two GitHub issues:

#3: Undefined array key
#4: Undefined variable $stripe_select when stripe's enabled but not selected

13 May 2026, 2:33 PM
#671
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: Stripe.com payment integration module

Hi,

I have installed Stripe Payments on a new install of Zencart v2.2.2 and using PHP 8.4.

On the checkout page I have got 2 Confirm Order buttons (one from zencart and one from Stripe). How do I hide one of them please?

Kind regards

13 May 2026, 8:49 PM
#672
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Stripe.com payment integration module

cjsmiff:

Hi,

I have installed Stripe Payments on a new install of Zencart v2.2.2 and using PHP 8.4.

On the checkout page I have got 2 Confirm Order buttons (one from zencart and one from Stripe). How do I hide one of them please?

Kind regards
What template are you using?

13 May 2026, 9:02 PM
#673
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: Stripe.com payment integration module

lat9:

What template are you using?

I'm using wokiee template. I managed to edit the css to hide the one that comes with the Stripe payment module.

14 May 2026, 4:37 PM
#674
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: Stripe.com payment integration module

Ok, that did not work as the payments remain as 'incomplete' in Stripe. I have undone the CSS, so now I have got 2 buttons again.

Do you know what I need to change in the wokiee template please?

Kind regards

14 May 2026, 5:08 PM
#675
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Stripe.com payment integration module

cjsmiff:

Ok, that did not work as the payments remain as 'incomplete' in Stripe. I have undone the CSS, so now I have got 2 buttons again.

Do you know what I need to change in the wokiee template please?

Kind regards
The jscript_stripe_checkout_confirmation.php file that is added to the checkout_confirmation (and checkout_one_confirmation) pages looks for the 'base' submit button as either

  • a div with the class of confirm-order
  • an id of checkoutConfirmationDefault-btn-toolbar

In your wokiee template, you could wrap that 'confirm order' button withe a <div class="confirm-order"></div> or, if already wrapped by a div, just add the confirm-order class.

14 May 2026, 5:16 PM
#676
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: Stripe.com payment integration module

lat9:

The jscript_stripe_checkout_confirmation.php file that is added to the checkout_confirmation (and checkout_one_confirmation) pages looks for the 'base' submit button as either

  • a div with the class of confirm-order
  • an id of checkoutConfirmationDefault-btn-toolbar

In your wokiee template, you could wrap that 'confirm order' button withe a <div class="confirm-order"></div> or, if already wrapped by a div, just add the confirm-order class.

Thank you very much :-)

1 Jun 2026, 6:03 PM
#677
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: Stripe.com payment integration module

Suggestion: if Test Mode Stripe Secure Payment Module is False (i.e. not in test mode), the module should not show a red message if the Test API Keys are not filled in.

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.

2 Jun 2026, 12:53 AM
#678
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Stripe.com payment integration module

swguy:

Suggestion: if Test Mode Stripe Secure Payment Module is False (i.e. not in test mode), the module should not show a red message if the Test API Keys are not filled in.
A GitHub issue will help me remember your request!

2 Jun 2026, 6:51 AM
#679
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: Stripe.com payment integration module

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.

17 Aug 2026, 6:13 PM
#680
hep avatar

hep

Member

Join Date:
Aug 2026
Posts:
1
Plugin Contributions:
0

Re: Stripe.com payment integration module

I recently upgraded to Zencart 2.2.2 and installed the Stripe module, version 3.0.1. Most of my customers check-out as a guest, and I was having an issue with Stripe attributing the same email and customer ID to each purchase. This means if a customer wanted a transaction receipt email, it would never get to them. Even though I had run the TRUNCATE SQL code, it kept happening. Narrowing the issue to the create.php code, I ran it through Grok, and it determined the code didn't want to create a fresh user or customer ID for each guest checkout, so a one-time TRUNCATE would actually need to be performed every time there was a 'guest' checkout. It provided me with a replacement create.php, changing only a portion of the code for when a guest checks out. It seems to have solved my issue for guest checkout to Stripe, so I've attached the whole updated file to share here, but if I've missed something please let me know!