File tree Expand file tree Collapse file tree 6 files changed +2
-26
lines changed
app/code/Magento/Paypal/etc/adminhtml/system
dev/tests/functional/tests/app/Magento/Paypal/Test/Block/System/Config Expand file tree Collapse file tree 6 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 23
23
<label >Express Checkout</label >
24
24
<frontend_model >Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Expanded</frontend_model >
25
25
<field id =" business_account" translate =" label comment tooltip" showInDefault =" 1" showInWebsite =" 1" sortOrder =" 5" >
26
- <label >Email Associated with PayPal Merchant Account</label >
26
+ <label >Email Associated with PayPal Merchant Account (Optional)</label >
27
+ <frontend_class >not-required</frontend_class >
27
28
<comment >
28
29
<![CDATA[ <a href="http://www.magentocommerce.com/paypal">Start accepting payments via PayPal!</a>]]>
29
30
</comment >
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ class ExpressCheckout extends Block
20
20
* @var array
21
21
*/
22
22
private $ fields = [
23
- 'Email Associated with PayPal Merchant Account ' => '#payment_us_paypal_alternative_payment_methods_express_ ' .
24
- 'checkout_us_express_checkout_required_express_checkout_required_express_checkout_business_account ' ,
25
23
'API Username ' => '#payment_us_paypal_alternative_payment_methods_express_checkout_us_express_checkout_ ' .
26
24
'required_express_checkout_required_express_checkout_api_username ' ,
27
25
'API Password ' => '#payment_us_paypal_alternative_payment_methods_express_checkout_us_express_checkout_ ' .
@@ -72,8 +70,6 @@ public function getFields()
72
70
*/
73
71
public function specifyCredentials ()
74
72
{
75
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])
76
- ->setValue ('test@test.com ' );
77
73
$ this ->_rootElement ->find ($ this ->fields ['API Username ' ])->setValue ('1 ' );
78
74
$ this ->_rootElement ->find ($ this ->fields ['API Password ' ])->setValue ('1 ' );
79
75
$ this ->_rootElement ->find ($ this ->fields ['API Signature ' ])->setValue ('1 ' );
@@ -86,7 +82,6 @@ public function specifyCredentials()
86
82
*/
87
83
public function clearCredentials ()
88
84
{
89
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])->setValue ('' );
90
85
$ this ->_rootElement ->find ($ this ->fields ['API Username ' ])->setValue ('' );
91
86
$ this ->_rootElement ->find ($ this ->fields ['API Password ' ])->setValue ('' );
92
87
$ this ->_rootElement ->find ($ this ->fields ['API Signature ' ])->setValue ('' );
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ class PayflowLink extends Block
20
20
* @var array
21
21
*/
22
22
private $ fields = [
23
- 'Email Associated with PayPal Merchant Account ' => '#payment_us_paypal_payment_gateways_payflow_link_us_ ' .
24
- 'payflow_link_required_payflow_link_payflow_link_business_account ' ,
25
23
'Partner ' => '#payment_us_paypal_payment_gateways_payflow_link_us_payflow_link_required_payflow_link_payflow_ ' .
26
24
'link_partner ' ,
27
25
'Vendor ' => '#payment_us_paypal_payment_gateways_payflow_link_us_payflow_link_required_payflow_link_payflow_ ' .
@@ -60,8 +58,6 @@ class PayflowLink extends Block
60
58
*/
61
59
public function specifyCredentials ()
62
60
{
63
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])
64
- ->setValue ('test@test.com ' );
65
61
$ this ->_rootElement ->find ($ this ->fields ['Partner ' ])->setValue ('1 ' );
66
62
$ this ->_rootElement ->find ($ this ->fields ['Vendor ' ])->setValue ('1 ' );
67
63
$ this ->_rootElement ->find ($ this ->fields ['User ' ])->setValue ('1 ' );
@@ -75,7 +71,6 @@ public function specifyCredentials()
75
71
*/
76
72
public function clearCredentials ()
77
73
{
78
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])->setValue ('' );
79
74
$ this ->_rootElement ->find ($ this ->fields ['Partner ' ])->setValue ('' );
80
75
$ this ->_rootElement ->find ($ this ->fields ['Vendor ' ])->setValue ('' );
81
76
$ this ->_rootElement ->find ($ this ->fields ['User ' ])->setValue ('' );
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ class PayflowPro extends Block
20
20
* @var array
21
21
*/
22
22
private $ fields = [
23
- 'Email Associated with PayPal Merchant Account ' => '#payment_us_paypal_payment_gateways_paypal_payflowpro_ ' .
24
- 'with_express_checkout_paypal_payflow_required_paypal_payflow_api_settings_business_account ' ,
25
23
'Partner ' => '#payment_us_paypal_payment_gateways_paypal_payflowpro_with_express_checkout_paypal_payflow_ ' .
26
24
'required_paypal_payflow_api_settings_partner ' ,
27
25
'Vendor ' => '#payment_us_paypal_payment_gateways_paypal_payflowpro_with_express_checkout_paypal_payflow_ ' .
@@ -60,8 +58,6 @@ class PayflowPro extends Block
60
58
*/
61
59
public function specifyCredentials ()
62
60
{
63
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])
64
- ->setValue ('test@test.com ' );
65
61
$ this ->_rootElement ->find ($ this ->fields ['Partner ' ])->setValue ('1 ' );
66
62
$ this ->_rootElement ->find ($ this ->fields ['Vendor ' ])->setValue ('1 ' );
67
63
$ this ->_rootElement ->find ($ this ->fields ['User ' ])->setValue ('1 ' );
@@ -75,7 +71,6 @@ public function specifyCredentials()
75
71
*/
76
72
public function clearCredentials ()
77
73
{
78
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])->setValue ('' );
79
74
$ this ->_rootElement ->find ($ this ->fields ['Partner ' ])->setValue ('' );
80
75
$ this ->_rootElement ->find ($ this ->fields ['Vendor ' ])->setValue ('' );
81
76
$ this ->_rootElement ->find ($ this ->fields ['User ' ])->setValue ('' );
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ class PaymentsAdvanced extends Block
20
20
* @var array
21
21
*/
22
22
private $ fields = [
23
- 'Email Associated with PayPal Merchant Account ' => '#payment_us_paypal_group_all_in_one_payflow_advanced_ ' .
24
- 'required_settings_payments_advanced_business_account ' ,
25
23
'Partner ' => '#payment_us_paypal_group_all_in_one_payflow_advanced_required_settings_payments_advanced_partner ' ,
26
24
'Vendor ' => '#payment_us_paypal_group_all_in_one_payflow_advanced_required_settings_payments_advanced_vendor ' ,
27
25
'User ' => '#payment_us_paypal_group_all_in_one_payflow_advanced_required_settings_payments_advanced_user ' ,
@@ -54,8 +52,6 @@ class PaymentsAdvanced extends Block
54
52
*/
55
53
public function specifyCredentials ()
56
54
{
57
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])
58
- ->setValue ('test@test.com ' );
59
55
$ this ->_rootElement ->find ($ this ->fields ['Partner ' ])->setValue ('1 ' );
60
56
$ this ->_rootElement ->find ($ this ->fields ['Vendor ' ])->setValue ('1 ' );
61
57
$ this ->_rootElement ->find ($ this ->fields ['User ' ])->setValue ('1 ' );
@@ -69,7 +65,6 @@ public function specifyCredentials()
69
65
*/
70
66
public function clearCredentials ()
71
67
{
72
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])->setValue ('' );
73
68
$ this ->_rootElement ->find ($ this ->fields ['Partner ' ])->setValue ('' );
74
69
$ this ->_rootElement ->find ($ this ->fields ['Vendor ' ])->setValue ('' );
75
70
$ this ->_rootElement ->find ($ this ->fields ['User ' ])->setValue ('' );
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ class PaymentsPro extends Block
20
20
* @var array
21
21
*/
22
22
private $ fields = [
23
- 'Email Associated with PayPal Merchant Account ' => '#payment_us_paypal_group_all_in_one_wpp_usuk_paypal_ ' .
24
- 'payflow_required_paypal_payflow_api_settings_business_account ' ,
25
23
'Partner ' => '#payment_us_paypal_group_all_in_one_wpp_usuk_paypal_payflow_required_paypal_payflow_api_ ' .
26
24
'settings_partner ' ,
27
25
'Vendor ' => '#payment_us_paypal_group_all_in_one_wpp_usuk_paypal_payflow_required_paypal_payflow_api_ ' .
@@ -60,8 +58,6 @@ class PaymentsPro extends Block
60
58
*/
61
59
public function specifyCredentials ()
62
60
{
63
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])
64
- ->setValue ('test@test.com ' );
65
61
$ this ->_rootElement ->find ($ this ->fields ['Partner ' ])->setValue ('1 ' );
66
62
$ this ->_rootElement ->find ($ this ->fields ['Vendor ' ])->setValue ('1 ' );
67
63
$ this ->_rootElement ->find ($ this ->fields ['User ' ])->setValue ('1 ' );
@@ -75,7 +71,6 @@ public function specifyCredentials()
75
71
*/
76
72
public function clearCredentials ()
77
73
{
78
- $ this ->_rootElement ->find ($ this ->fields ['Email Associated with PayPal Merchant Account ' ])->setValue ('' );
79
74
$ this ->_rootElement ->find ($ this ->fields ['Partner ' ])->setValue ('' );
80
75
$ this ->_rootElement ->find ($ this ->fields ['Vendor ' ])->setValue ('' );
81
76
$ this ->_rootElement ->find ($ this ->fields ['User ' ])->setValue ('' );
You can’t perform that action at this time.
0 commit comments