--- a/modules/payment/includes/commerce_payment.checkout_pane.inc
+++ b/modules/payment/includes/commerce_payment.checkout_pane.inc
@@ -104,8 +104,9 @@ function commerce_payment_pane_checkout_form($form, &$form_state, $checkout_pane
       $pane_form['payment_details'] = array();
     }

-    $pane_form['payment_details']['#prefix'] = '<div id="payment-details">';
-    $pane_form['payment_details']['#suffix'] = '</div>';
+    $class = $payment_method['method_id'];
+    $pane_form['payment_details']['#prefix'] = '<div id="payment-details"><div class="'.$class.'">';
+    $pane_form['payment_details']['#suffix'] = '</div></div>';
   }

   return $pane_form;