From 80fad900b42adbe5a94d025d4e25f9fc2271d776 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Fri, 19 Aug 2022 11:22:50 +0200 Subject: [PATCH] switch the position of standard and advanced card processing radio buttons --- .../src/Render/OnboardingOptionsRenderer.php | 78 +++++++++---------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/modules/ppcp-onboarding/src/Render/OnboardingOptionsRenderer.php b/modules/ppcp-onboarding/src/Render/OnboardingOptionsRenderer.php index c760b2f2c..ba302c86f 100644 --- a/modules/ppcp-onboarding/src/Render/OnboardingOptionsRenderer.php +++ b/modules/ppcp-onboarding/src/Render/OnboardingOptionsRenderer.php @@ -103,6 +103,44 @@ class OnboardingOptionsRenderer { $is_us_shop = 'US' === $this->country; + $basic_table_rows = array( + $this->render_table_row( + __( 'Credit & Debit Card form fields', 'woocommerce-paypal-payments' ), + __( 'Prebuilt user experience', 'woocommerce-paypal-payments' ) + ), + ! $is_us_shop ? '' : $this->render_table_row( + __( 'Credit & Debit Card pricing', 'woocommerce-paypal-payments' ), + __( '3.49% + $0.49', 'woocommerce-paypal-payments' ), + '', + __( 'for US domestic transactions', 'woocommerce-paypal-payments' ) + ), + $this->render_table_row( + __( 'Seller Protection', 'woocommerce-paypal-payments' ), + __( 'Yes', 'woocommerce-paypal-payments' ), + __( 'No matter what you sell, Seller Protection can help you avoid chargebacks, reversals, and fees on eligible PayPal payment transactions — even when a customer has filed a dispute.', 'woocommerce-paypal-payments' ), + __( 'for eligible PayPal transactions', 'woocommerce-paypal-payments' ) + ), + $this->render_table_row( + __( 'Seller Account Type', 'woocommerce-paypal-payments' ), + __( 'Business or Casual', 'woocommerce-paypal-payments' ), + __( 'For Standard payments, Casual sellers may connect their Personal PayPal account in eligible countries to sell on WooCommerce. For Advanced payments, a Business PayPal account is required.', 'woocommerce-paypal-payments' ) + ), + ); + $items[] = ' +
  • + + ' . $this->render_tooltip( __( 'Card transactions are managed by PayPal, which simplifies compliance requirements for you.', 'woocommerce-paypal-payments' ) ) . ' + + ' . implode( $basic_table_rows ) . ' +
    +
  • '; + if ( $is_shop_supports_dcc ) { $dcc_table_rows = array( $this->render_table_row( @@ -148,7 +186,7 @@ class OnboardingOptionsRenderer { ' . $this->render_tooltip( __( 'PayPal acts as the payment processor for card transactions. You can add optional features like Chargeback Protection for more security.', 'woocommerce-paypal-payments' ) ) . ' @@ -157,44 +195,6 @@ class OnboardingOptionsRenderer { '; } - $basic_table_rows = array( - $this->render_table_row( - __( 'Credit & Debit Card form fields', 'woocommerce-paypal-payments' ), - __( 'Prebuilt user experience', 'woocommerce-paypal-payments' ) - ), - ! $is_us_shop ? '' : $this->render_table_row( - __( 'Credit & Debit Card pricing', 'woocommerce-paypal-payments' ), - __( '3.49% + $0.49', 'woocommerce-paypal-payments' ), - '', - __( 'for US domestic transactions', 'woocommerce-paypal-payments' ) - ), - $this->render_table_row( - __( 'Seller Protection', 'woocommerce-paypal-payments' ), - __( 'Yes', 'woocommerce-paypal-payments' ), - __( 'No matter what you sell, Seller Protection can help you avoid chargebacks, reversals, and fees on eligible PayPal payment transactions — even when a customer has filed a dispute.', 'woocommerce-paypal-payments' ), - __( 'for eligible PayPal transactions', 'woocommerce-paypal-payments' ) - ), - $this->render_table_row( - __( 'Seller Account Type', 'woocommerce-paypal-payments' ), - __( 'Business or Casual', 'woocommerce-paypal-payments' ), - __( 'For Standard payments, Casual sellers may connect their Personal PayPal account in eligible countries to sell on WooCommerce. For Advanced payments, a Business PayPal account is required.', 'woocommerce-paypal-payments' ) - ), - ); - $items[] = ' -
  • - - ' . $this->render_tooltip( __( 'Card transactions are managed by PayPal, which simplifies compliance requirements for you.', 'woocommerce-paypal-payments' ) ) . ' -
  • - ' . implode( $basic_table_rows ) . ' -
    -'; - return '