diff --git a/assets/css/wc-payment-checkout.css b/assets/css/wc-payment-checkout.css
index d55a311a78e..a8053f25b97 100644
--- a/assets/css/wc-payment-checkout.css
+++ b/assets/css/wc-payment-checkout.css
@@ -1,5 +1,21 @@
-.wc-payment-card-mounted {
+#payment .payment_methods li .payment_box.payment_method_woocommerce_payments fieldset {
+ padding: 0;
+}
+
+.payment_method_woocommerce_payments > fieldset > legend {
+ padding-top: 0;
+}
+
+.payment_method_woocommerce_payments .woocommerce-error {
+ margin: 1em 0 0;
+}
+
+#wc-payment-card-element {
border: 1px solid #ddd;
padding: 5px 7px;
+ min-height: 29px;
+}
+
+.wc-payment-card-mounted {
background-color: #fff;
}
diff --git a/assets/js/wc-payment-checkout.js b/assets/js/wc-payment-checkout.js
index b346743b296..0c51c500544 100644
--- a/assets/js/wc-payment-checkout.js
+++ b/assets/js/wc-payment-checkout.js
@@ -33,7 +33,7 @@ jQuery( function( $ ) {
displayError.html( '
' )
.find( 'li' ).text( event.error.message );
} else {
- displayError.html( '' );
+ displayError.empty();
}
} );
diff --git a/includes/class-wc-payment-gateway-wcpay.php b/includes/class-wc-payment-gateway-wcpay.php
index 92d50f12706..c10bb383c87 100644
--- a/includes/class-wc-payment-gateway-wcpay.php
+++ b/includes/class-wc-payment-gateway-wcpay.php
@@ -63,7 +63,7 @@ public function __construct( WC_Payments_API_Client $payments_api_client ) {
$this->icon = ''; // TODO: icon.
$this->has_fields = true;
$this->method_title = __( 'WooCommerce Payments', 'woocommerce-payments' );
- $this->method_description = __( 'Accept payments via a WooCommerce-branded payment gateway', 'woocommerce-payments' );
+ $this->method_description = __( 'Accept payments via credit card.', 'woocommerce-payments' );
$this->supports = array(
'products',
'refunds',
@@ -82,14 +82,14 @@ public function __construct( WC_Payments_API_Client $payments_api_client ) {
'title' => __( 'Title', 'woocommerce-payments' ),
'type' => 'text',
'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-payments' ),
- 'default' => __( 'Credit Card (WooCommerce Payments)', 'woocommerce-payments' ),
+ 'default' => __( 'Credit Card', 'woocommerce-payments' ),
'desc_tip' => true,
),
'description' => array(
'title' => __( 'Description', 'woocommerce-payments' ),
'type' => 'text',
'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-payments' ),
- 'default' => __( 'Pay with your credit card via WooCommerce Payments.', 'woocommerce-payments' ),
+ 'default' => '',
'desc_tip' => true,
),
'stripe_account_id' => array(
@@ -183,9 +183,12 @@ public function payment_fields() {
// Output the form HTML.
?>
- get_description() ); ?>
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 2326d68e070..fe94118d888 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -10,7 +10,7 @@
-
+