
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-------->
Bookmarks