Contributions
Geotrust/SkipJack Payment Module
Payment module for Geotrust and SkipJack. This has been tested on 2.2MS2. I will NOT support this contribution through e-mail.
Expand All / Collapse All
Updated process_button function in includes/modules/payment/skipjack.php. The orderstring was not being properly constructed due to a logic error. Orders with multiple items would have only shown one item. This has been corrected.
This is an update to the Skipjack Payment Module for merchants who wish to process with Skipjack Financial Services. Updated before_process function in includes/modules/payment/skipjack.php as per user vev's post. Apparently, customers were not receiving error messages when their card declined. This was probably more a symptom of the merchant not creating a proper response page for their Skipjack account to post to. Nonetheless, vev's changes have been incorporated to ameliorate the perceived issue.
This is for Skipjack Module submitted bymcsem82 at 8 Nov 2007 ONLY!!!
My customer was never receiving error messages when cards were declined
----- Open file:
includes/modules/payment/skipjack.php
----- FIND:
function before_process() {
return false;
}
----- REPLACE WITH:
function before_process() {
global $HTTP_POST_VARS;
if ($HTTP_POST_VARS['szIsApproved'] != '1') {
if(isset($HTTP_POST_VARS['szAuthorizationDeclinedMessage']) && $HTTP_POST_VARS['szAuthorizationDeclinedMessage']!='')
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($HTTP_POST_VARS['szAuthorizationDeclinedMessage']), 'SSL', true, false));
else
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_SKIPJACK_TEXT_ERROR_MESSAGE), 'SSL', true, false));
}
}
P.S. Full Package has been attached.
Merchants with a Skipjack Financial Services account can use this payment module to process osCommerce credit card payments on their Skipjack account.
Hi. I noticed that I was never receiving error messages when cards were declined. this was because the before_process() function was never run in checkout_process.php.
To fix, I changed (around line 60):
/ load the before_process function from the payment modules
// Authorize.net processing has move this called to a later point
// This is maintained for compatiblity with all other modules
if (!MODULE_PAYMENT_AUTHORIZENET_STATUS)
To:
/ load the before_process function from the payment modules
// Authorize.net processing has move this called to a later point
// This is maintained for compatiblity with all other modules
if (!defined(MODULE_PAYMENT_AUTHORIZENET_STATUS))
Hope this helps others!
DO NOT use the files in the previous post. This is the latest working version.
- Updated the installation text file
- Fixed a typo in the language file.
- Fixed the "Teanas" bug. It should now fill in with the STORE_NAME variable.
- Fixed a typo in the language file.
- Fixed the "Teanas" bug. It should now fill in with the STORE_NAME variable.
08/20/03 - added one more step that I left out in the original contribution in the install directions.
Payment module for Geotrust QuickPayments and SkipJack. This has been tested on 2.2MS2. I will NOT support this contribution through e-mail. Please refer to the forums for support.
Payment module for Geotrust and SkipJack. This has been tested on 2.2MS2. I will NOT support this contribution through e-mail.
Note: Contributions are used at own risk.