* Plugin Name: GLM Members Database Event Registrations
* Plugin URI: http://www.gaslightmedia.com/
* Description: Add-on to integrate registrations into Events add-on.
- * Version: 1.0.12
+ * Version: 1.0.13
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersRegistrationsAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.0.12
+ * @version 1.0.13
*/
// Check that we're being called by WordPress.
* so that we're sure the other add-ons see an up to date
* version from this plugin.
*/
-define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.12');
+define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.13');
define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_VERSION', '1.0.1');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
public function modelAction($actionData = false)
{
- $messages = array();
+ $messages = array(); // Fatal Messages
+ $noticeMessages = array(); // Non-fatal messages
$cartStatus = 0; // Default to CART
$requestId = false;
$accountId = 0;
);
} else {
- $messages[] = "Sorry, we were unable to store your credit card data for future use, but we did try.";
+ $noticeMessages[] = "Sorry, we were unable to store your credit card data for future use, but we did try.";
}
}
+ // Otherwwise Card Failure
+ } else {
+
+ // Get any short status text that might be available
+ $statusText = '';
+ if (is_array($ccResult) && isset($ccResult['statusText']) ) {
+ $statusText = ' ('.$ccResult['statusText'].')';
+ }
+
+ $messages[] = "Your card was not approved$statusText. Please check the message below and try again.";
+ if (is_array($ccResult) && isset($ccResult['description']) ) {
+ $messages[] = $ccResult['description'];
+ }
}
}
$templateData = array(
'haveMessages' => count($messages),
'messages' => $messages,
+ 'haveNoticeMessages' => count($noticeMessages),
+ 'noticeMessages' => $noticeMessages,
'guestAccount' => $guestAccount,
'requestId' => $requestId,
'summaryCheck' => $summaryCheck,