Add PPEC settings to wizard, to facilitate rerouting via WCS

This commit is contained in:
Paul Dechov 2017-12-05 14:53:44 -05:00
parent 4443d473ab
commit 570a2e9512
1 changed files with 17 additions and 0 deletions

View File

@ -1075,6 +1075,23 @@ class WC_Admin_Setup_Wizard {
'image' => WC()->plugin_url() . '/assets/images/paypal.png', 'image' => WC()->plugin_url() . '/assets/images/paypal.png',
'description' => $paypal_ec_description, 'description' => $paypal_ec_description,
'repo-slug' => 'woocommerce-gateway-paypal-express-checkout', 'repo-slug' => 'woocommerce-gateway-paypal-express-checkout',
'settings' => array(
'reroute_requests' => array(
'label' => __( 'Set up Express Checkout payments for me', 'woocommerce' ),
'type' => 'checkbox',
'value' => 'yes',
'placeholder' => '',
'required' => false,
),
'api_subject' => array(
'label' => __( 'Direct payments to email address:', 'woocommerce' ),
'type' => 'email',
'value' => $user_email,
'placeholder' => __( 'Email address to receive payments', 'woocommerce' ),
'description' => __( "Enter your email address and we'll authenticate payments for you. To claim a payment, you'll need to have a PayPal Business account or create one later. WooCommerce Services and Jetpack will be installed and activated for you.", 'woocommerce' ),
'required' => true,
),
),
), ),
'paypal' => array( 'paypal' => array(
'name' => __( 'PayPal Standard', 'woocommerce' ), 'name' => __( 'PayPal Standard', 'woocommerce' ),