Skip to content
Browse files

Add check for VELOCITY_CHECK_EXCEEDED when testing the secret word

  • Loading branch information...
1 parent 4b535d3 commit 254d75712ef985333a7dea0ebd29ddaad1f185bf @haraldpdl haraldpdl committed Jun 25, 2010
View
8 catalog/admin/ext/modules/payment/moneybookers/activation.php
@@ -132,6 +132,14 @@
</form>
<?php
} else {
+ if ($result == 'VELOCITY_CHECK_EXCEEDED') {
+?>
+ <div style="padding: 5px; background-color: #ff9999;">
+ <p><b><u><?php echo MB_ACTIVATION_SECRET_WORD_ERROR_TITLE; ?></u></b></p>
+ <p><?php echo MB_ACTIVATION_SECRET_WORD_ERROR_EXCEEDED; ?></p>
+ </div>
+<?php
+ }
?>
<p><b><u><?php echo MB_ACTIVATION_SECRET_WORD_TITLE; ?></u></b></p>
<p><?php echo MB_ACTIVATION_SECRET_WORD_FAIL_TEXT; ?></p>
View
2 catalog/includes/languages/english/modules/payment/moneybookers.php
@@ -31,6 +31,8 @@
define('MB_ACTIVATION_SECRET_WORD_TITLE', 'Secret Word Test');
define('MB_ACTIVATION_SECRET_WORD_SUCCESS_TEXT', 'The secret word has been setup <b>correctly</b>! Transactions can now be securely verified with the payment gateway.');
define('MB_ACTIVATION_SECRET_WORD_FAIL_TEXT', 'The secret word configuration has <b>failed</b>! Please review the secret word at your Moneybookers "Merchant Tools" account and the configuration of the payment module.');
+ define('MB_ACTIVATION_SECRET_WORD_ERROR_TITLE', 'Error');
+ define('MB_ACTIVATION_SECRET_WORD_ERROR_EXCEEDED', 'The maximum number of tries has been exceeded. Please try again in an hour.');
define('MB_ACTIVATION_CORE_REQUIRED_TITLE', 'Core Moneybookers Module Required');
define('MB_ACTIVATION_CORE_REQUIRED_TEXT', 'The core Moneybookers payment module is required to support the Moneybookers Quick Checkout payment options. Please continue to install and configure the core payment module.');
define('MB_ACTIVATION_VERIFY_ACCOUNT_BUTTON', 'Verify Account');

0 comments on commit 254d757

Please sign in to comment.
Something went wrong with that request. Please try again.