diff --git a/booking.balance.inc b/booking.balance.inc index 86fc820..2063667 100644 --- a/booking.balance.inc +++ b/booking.balance.inc @@ -14,7 +14,7 @@ function booking_balance_page() { //verify that arg(1) is a uuid if (! preg_match('/^[0-9A-Fa-f\-]+$/', arg(1))) { //parameter from url is not what we were expecting - drupal_set_message("Error: Invalid session ID supplied to the balance payment page. Please use the contact us form to let us know.", 'error', FALSE); + drupal_set_message("Error: Invalid token supplied to the balance payment page. Please use the contact us form to let us know.", 'error', FALSE); drupal_goto(''); return ""; } @@ -49,7 +49,8 @@ function booking_balance_page() { //maximum length for invoice id in paypal is 127 characters so truncate if necessary $invoiceid = substr($invoiceid, 0, 126); } else { - drupal_set_message("Unable to find matching session ID " . arg(1), 'error', FALSE); + drupal_set_message("Error: Invalid token supplied to the balance payment page. Please use the contact us form to let us know.", 'error', FALSE); + drupal_goto(''); return ""; }