If you have upgraded to v3.4+ and you don`t want to change your custom theme, but you do want to add support for the Stripe payment gateway, do the following. Note that
it is assumed you have updated the core php files and run the upgrade routine via the zip files above.
1 Add 'content/**/gateway-api/' folder and contents.
2 Open the 'content/**/footer.tpl.php' file and add the following code before the closing </body> tag.
<?php
// If Stripe is enabled, load JS API for Stripe..
if ($this->STRIPE_EN == 'yes') {
include(PATH . $this->THEME_FOLDER . '/gateway-api/stripe.php');
}
?>
3 Open the 'content/**/js/mc-cart.js' file and find the 'mc_chkNav' function. BEFORE "jQuery(document)....", add the following code:
// Check for stripe..
switch(nav) {
case 'pay':
if (jQuery('select[name="payment-type"]').val() == 'stripe') {
mc_ShowSpinner();
mc_Stripe();
return false;
}
break;
default:
// Ok, continue..
break;
}
4 Open the 'content/**/checkout-payment.php' file and add the following id to the form tag:
<form method="post" action="#"
id="pform">
5 Complete gateway
setup.