Re: Stripe payment module - Triplicate orders
[QUOTE=BigB;1405258][QUOTE=Gozzandes;1405246]
Quote:
Originally Posted by
BigB
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
Following 2 files should be changed
www\includes\modules\pages\checkout_one\jscript_stripe.php
\www\includes\modules\pages\checkout_payment\jscript_stripe.php
from
PHP Code:
<?php
if ( isset($_SESSION['paymentIntent'])){
$_SESSION['paymentIntent'] = '';
}
?>
to
PHP Code:
<?php
$_SESSION['paymentIntent'] = '';
?>
could you check it and reply?
Re: Stripe payment module - Triplicate orders
Quote:
Originally Posted by
split63
#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
When Zen cart session end and Stripe session sill alive.
Stripe payment:Pass
Zen cart: Not pass
When Stripe session end and Zen cart session still alive.
Stripe payment:Not Pass
Zen cart: pass
Even if Zen cart session ended and Stripe session also ended, Stripe "Confirm button" displayed.
and the customers redirect to the front page after pushing the button.
You can check your Zen cart session time in inculdes/functions/sessions.php
line15-31
$SESS_LIFE
Did you rewrite following codes to bottom of the tpl_checkout _confirmation_default.php?
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-------->
Re: Stripe payment module - Triplicate orders
Quote:
Originally Posted by
Gozzandes
Did you rewrite following codes to bottom of the tpl_checkout _confirmation_default.php?
The stripe module is the 2.1.9 release, no changes. This module was essentially working until Jan 10th, then all non credit card payments there after failed to create a Zen Order.
I had not messed with the session issue yet.
inculdes/functions/sessions.php should be that from 1.5.7c unaltered:
PHP Code:
if (IS_ADMIN_FLAG === true) {
$SESS_LIFE = (int)SESSION_TIMEOUT_ADMIN;
// if strict is enabled, must be a max of 900
if (PADSS_ADMIN_SESSION_TIMEOUT_ENFORCED != 0 && $SESS_LIFE > 900) {
$SESS_LIFE = 900;
}
} else {
// read PHP config
$SESS_LIFE = get_cfg_var('session.gc_maxlifetime');
// override if set
if (defined('SESSION_TIMEOUT_CATALOG') && (int)SESSION_TIMEOUT_CATALOG > 120) {
$SESS_LIFE = (int)SESSION_TIMEOUT_CATALOG;
}
// if set toooo short, reset to default
if ((int)$SESS_LIFE < 120) {
$SESS_LIFE = 1440;
This is the code at the bottom of /responsive_classic/templates/tpl_checkout_confirmation_default.php
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-------->
Re: Stripe payment module - Triplicate orders
[QUOTE=Gozzandes;1405263][QUOTE=BigB;1405258]
Quote:
Originally Posted by
Gozzandes
Following 2 files should be changed
www\includes\modules\pages\checkout_one\jscript_stripe.php
\www\includes\modules\pages\checkout_payment\jscript_stripe.php
from
PHP Code:
<?php
if ( isset($_SESSION['paymentIntent'])){
$_SESSION['paymentIntent'] = '';
}
?>
to
PHP Code:
<?php
$_SESSION['paymentIntent'] = '';
?>
could you check it and reply?
Ok, I will give it a try and post results when done. Thank you
1 Attachment(s)
Re: Stripe payment module - Triplicate orders
[QUOTE=Gozzandes;1405263][QUOTE=BigB;1405258]
Quote:
Originally Posted by
Gozzandes
Following 2 files should be changed
www\includes\modules\pages\checkout_one\jscript_stripe.php
\www\includes\modules\pages\checkout_payment\jscript_stripe.php
from
PHP Code:
<?php
if ( isset($_SESSION['paymentIntent'])){
$_SESSION['paymentIntent'] = '';
}
?>
to
PHP Code:
<?php
$_SESSION['paymentIntent'] = '';
?>
could you check it and reply?
Ok, I was able to change the php file for \www\includes\modules\pages\checkout_payment\jscript_stripe.php
However, I do not have a folder for www\includes\modules\pages\checkout_one
with a jscript_stripe.php file for me to modify.
Is this a folder with files I need to FTP over into my ZC installation?
I did try a test order all the same after making the modifuaction in \www\includes\modules\pages\checkout_payment\jscript_stripe.php
and still get the same message "NOTE: Downloads are not available until payment has been confirmed"
Attachment 20861
Re: Stripe payment module - Triplicate orders
[QUOTE=BigB;1405272][QUOTE=Gozzandes;1405263]
Quote:
Originally Posted by
BigB
Ok, I was able to change the php file for
\www\includes\modules\pages\checkout_payment\jscript_stripe.php
However, I do not have a folder for
www\includes\modules\pages\checkout_one
with a
jscript_stripe.php file for me to modify.
Is this a folder with files I need to FTP over into my ZC installation?
I did try a test order all the same after making the modifuaction in
\www\includes\modules\pages\checkout_payment\jscript_stripe.php
and still get the same message "NOTE: Downloads are not available until payment has been confirmed"
Attachment 20861
download ver 2.1.11and overwrite all files.
Re: Stripe payment module - Triplicate orders
[QUOTE=Gozzandes;1405275][QUOTE=BigB;1405272]
Quote:
Originally Posted by
Gozzandes
download ver 2.1.11and overwrite all files.
OK, I downloaded version 2.1.11... I'll give it a go. Thank you
Re: Stripe payment module - Triplicate orders
you should change the status.
Re: Stripe payment module - Triplicate orders
You should change the status after cheking the payment in the admin page.
or change the default order value of setting.
Re: Stripe payment module - Triplicate orders
Quote:
Originally Posted by
Gozzandes
You should change the status after cheking the payment in the admin page.
or change the default order value of setting.
OK... Right now all test orders are "pending". Not sure what they should be changed to... the other choices are processing, delivered or update.
Should this be done before I update the stripe module to version 2.1.11 or after I update the module?