Credit Card Auto Payment Generation Tweak:
I decided to update the class file that auto generates Super Orders payments for credit card paid orders based on Blindside's post here:
http://www.zen-cart.com/forum/showpo...&postcount=207. (just the part of this code which relates to credit payments.. PayPal auto payments are handled differently)
I liked the fact that it no longer hardcodes the credit card codes, and instead relies on the data in the Super Orders payments types table. IF a NEW credit card type is supported by Zen Cart, the only thing Super Orders users need to do is to create a corresponding Super Orders payment type (the Super Orders payment code must match the corresponding credit card as it does now for supported credit cards).. This is loads easier for all I think!!
This will help keep people -- particularly newbies -- "out of the code" just to update the module.. Having to edit module files is often where things go wrong for newbies..
Just so it's clear -- Auto payment generation for credit cards is slightly different than the new PayPal auto payment generation.
Auto payment generation for credit cards happens at the time of checkout. While PayPal auto payments are generated when the order is accessed from the Super Orders management screen.
The reason for this difference has everything to do with the general assumption that credit card payments are collected at the time of the sale, while PayPal payments may not be confirmed until 24-28 hours after the order is completed.
Bookmarks