Re: Stripe payment module -Duplicate orders
Quote:
Originally Posted by
BigB
I have tried this.. unfortunately I'm still experiencing the same issue... there are no feilds showing to enter CC info during checkout. I have the site in "Test Mode" and my Stripe account is in Test Mode... the Stripe API test keys are entered in the module correctly.
I have the stripe_module_zc201 version installed on a Zen Cart 2.1.0 website.
Not sure what to do. Any other suggestions?
Stripe form is displayed after receiving client secret(clientS) from stripe server so far.
This is the problem.
Following code receive from stripe directly.
checkout.js Restoring line 39 OK
I'll upload revised module to github.com tomorrow as a version 219
checkout.js Restoring line 39 and
stripe.php line167
from
PHP Code:
require_once 'stripepay/create.php' ;
to
PHP Code:
if ($_SESSION['paymentIntent'] == '' ){
require_once 'stripepay/create.php' ;
}
tpl_checkout_confirmation_default line194
tpl_checkout_one_confirmation_default line235
PHP Code:
<script>
if (typeof clientS === null) {
PHP Code:
<?php
$jason_stripe_select = json_encode($stripe_select);
?>
<script>
var stripe_select = JSON.parse('<?php echo $jason_stripe_select; ?>');
if (stripe_select === "True") {
Re: Stripe payment module -Duplicate orders
and add a file in the following folder.
\includes\modules\pages\checkout_payment
file name is jscript_stripe.php
The contents of the file are as follows
PHP Code:
<?php
if ( isset($_SESSION['paymentIntent'])){
$_SESSION['paymentIntent'] = '';
}
?>
Re: Stripe payment module -Duplicate orders
I've uploaded stripe module ver 219 to github.com.
You can download following link.
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.
Re: Stripe payment module -Duplicate orders
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
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
Ok, Thank you very much. I'll give it a go
Re: Stripe payment module -Duplicate orders
Quote:
Originally Posted by
Gozzandes
I've uploaded stripe module ver 219 to github.com.
Does this 219 version address both BigB issues as well as the duplicate order issue?
Re: Stripe payment module -Duplicate orders
Quote:
Originally Posted by
split63
Does this 219 version address both BigB issues as well as the duplicate order issue?
I build a demo shop in my computer and tested it.
First of all, the issue of the duplicate order issue had been resolved in version 218. Also, BigB's problem was caused by not overwriting checkout_confirmation_default.php for this module in the template folder.
split63's problem was double payments with PayPal etc.
It was caused by moving from checkout_confirmation page to Paypal payment page,
and then when returning to checkout_confirmation page, the browser re-loads the create.php(modules\stripepay\create.php) again.
The checkout_confirmation page (returning URL)is specified in includes\checkout.js return_url, the problem occurs when create.php is re-executed when returning to checkout_confirmation page.
so I fixed it that create.php is not executed when checkout_confirmation page is reloaded.
I was not able to actual test with PayPal, I checked it by reloading (F5 key) the checkout_confirmation page in my computer's browser.
Re: Stripe payment module -Duplicate orders
Quote:
Originally Posted by
Gozzandes
I build a demo shop in my computer and tested it.
First of all, the issue of the duplicate order issue had been resolved in version 218.
I must have missed this, I thought commenting out line 39 of the \includes\checkout.js was the fix.
Re: Stripe payment module -Duplicate orders
Quote:
Originally Posted by
split63
I must have missed this, I thought commenting out line 39 of the \includes\checkout.js was the fix.
\includes\checkout.js line 39
return_url: confirmationURL,
This code is needed here.
Customers will return to this is the page after PayPal payment page.
I didn't take this into consideration.
Sorry.
Re: Stripe payment module -Duplicate orders
Quote:
Originally Posted by
Gozzandes
\includes\checkout.js line 39
return_url: confirmationURL,
This code is needed here.
Customers will return to this is the page after PayPal payment page.
I didn't take this into consideration.
Sorry.
2.1.9 Stripe_module_zc157c installed
Both Stripe and PayPal seem okay.
I ran a few test credit card orders thru stripe, all went okay. Once I hit the "continue" button on the 3rd checkout page, I then rapid clicked the "continue" button to see if I can create a duplicate order. It briefly displays "A processing error occurred." to the left of the "continue" button, but the order completes and there is no duplicate charge at stripe or at Zen.
However, directly after I click "continue" the first time, I see this text displayed to the left of the "continue" button: "TEXT_PAYMENT_STRIPE_PAYMENTSUCCEEDED". That seems odd.
All this is on my duplicate test site. I have yet to role it into my live site. :cheers: