diff --git ubercart/payment/uc_paypal/uc_paypal.module ubercart/payment/uc_paypal/uc_paypal.module
index 397f599..a454645 100644
--- ubercart/payment/uc_paypal/uc_paypal.module
+++ ubercart/payment/uc_paypal/uc_paypal.module
@@ -408,7 +408,7 @@ function uc_paypal_wpp_charge($order_id, $amount, $data) {
     }
   }
 
-  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'));
+  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'), $order);
   $types = uc_credit_transaction_types();
 
   switch ($nvp_response['ACK']) {
@@ -721,10 +723,11 @@ function uc_paypal_ec_checkout($form, &$form_state) {
     unset($nvp_request['ADDROVERRIDE']);
   }
 
-  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'));
+  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'), $order);
 
   if ($nvp_response['ACK'] != 'Success') {
     drupal_set_message(t('Error message from PayPal:<br />@message', array('@message' => $nvp_response['L_LONGMESSAGE0'])), 'error');
+    watchdog('uc_paypal', 'Error message from PayPal:<br />@message', array('@message' => $nvp_response['L_LONGMESSAGE0']), WATCHDOG_ERROR);
     drupal_goto('cart/checkout');
   }
 
@@ -813,7 +816,13 @@ function uc_paypal_ec_form_submit($form, &$form_state) {
   $order->products = $items;
   uc_order_save($order);
 
-  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'));
+  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'), $order);
+
+  if ($nvp_response['ACK'] != 'Success') {
+    drupal_set_message(t('Error message from PayPal:<br />@message', array('@message' => $nvp_response['L_LONGMESSAGE0'])), 'error');
+    watchdog('uc_paypal', 'Error message from PayPal:<br />@message', array('@message' => $nvp_response['L_LONGMESSAGE0']), WATCHDOG_ERROR);
+    drupal_goto('cart/checkout');
+  }
 
   $_SESSION['cart_order'] = $order->order_id;
   $_SESSION['TOKEN'] = $nvp_response['TOKEN'];
@@ -897,7 +906,13 @@ function uc_paypal_ec_submit_form_submit($form, &$form_state) {
     'CURRENCYCODE' => $currency,
   );
 
-  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'));
+  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'), $order);
+
+  if ($nvp_response['ACK'] != 'Success') {
+    drupal_set_message(t('Error message from PayPal:<br />@message', array('@message' => $nvp_response['L_LONGMESSAGE0'])), 'error');
+    watchdog('uc_paypal', 'Error message from PayPal:<br />@message', array('@message' => $nvp_response['L_LONGMESSAGE0']), WATCHDOG_ERROR);
+    drupal_goto('cart/checkout');
+  }
 
   unset($_SESSION['TOKEN'], $_SESSION['PAYERID']);
   $_SESSION['do_complete'] = TRUE;
@@ -1086,7 +1101,7 @@ function uc_paypal_wps_form($form_state, $order) {
 /**
  * Sends a request to PayPal and returns a response array.
  */
-function uc_paypal_api_request($request, $server) {
+function uc_paypal_api_request($request, $server, $order) {
   // We use $request += to add API credentials so that
   // if a key already exists, it will not be overridden
   $request += array(
@@ -1096,6 +1111,8 @@ function uc_paypal_api_request($request, $server) {
     'SIGNATURE' => variable_get('uc_paypal_api_signature', ''),
   );
 
+  drupal_alter('uc_paypal_api_request', $request, $order);
+
   $data = '';
   foreach ($request as $key => $value) {
     $data .= $key .'='. urlencode(str_replace(',', '', $value)) .'&';
diff --git ubercart/payment/uc_paypal/uc_paypal.pages.inc ubercart/payment/uc_paypal/uc_paypal.pages.inc
index 93c452f..601ae29 100644
--- ubercart/payment/uc_paypal/uc_paypal.pages.inc
+++ ubercart/payment/uc_paypal/uc_paypal.pages.inc
@@ -180,7 +182,7 @@ function uc_paypal_ec_review_redirect() {
     'TOKEN' => $_SESSION['TOKEN'],
   );
 
-  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'));
+  $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'), $order);
 
   $_SESSION['PAYERID'] = $nvp_response['PAYERID'];
 
@@ -203,7 +205,7 @@ function uc_paypal_ec_review() {
       'TOKEN' => $_SESSION['TOKEN'],
     );
 
-    $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'));
+    $nvp_response = uc_paypal_api_request($nvp_request, variable_get('uc_paypal_wpp_server', 'https://api-3t.sandbox.paypal.com/nvp'), $order);
 
     $_SESSION['PAYERID'] = $nvp_response['PAYERID'];
 
