capture B:OP and B:BP failure_status values from payment attempts, #21117
[freeside.git] / FS / FS / pay_batch.pm
index 3a06914..8c6c368 100644 (file)
@@ -735,7 +735,8 @@ sub import_from_gateway {
           $total += $cust_pay_batch->paid;
         }
         else {
-          $error = $cust_pay_batch->decline($item->error_message);
+          $error = $cust_pay_batch->decline($item->error_message,
+                                            $item->failure_status);
         }
 
         if ( $error ) {