@@ -23,160 +23,160 @@ class Config extends AbstractConfig
2323 /**
2424 * PayPal Express
2525 */
26- const METHOD_EXPRESS = 'paypal_express ' ;
26+ public const METHOD_EXPRESS = 'paypal_express ' ;
2727
2828 /**
2929 * PayPal Standard - alias METHOD_WPP_EXPRESS
3030 */
31- const METHOD_WPS_EXPRESS = 'wps_express ' ;
31+ public const METHOD_WPS_EXPRESS = 'wps_express ' ;
3232
3333 /**
3434 * PayPal Standard Bml - alias METHOD_WPP_BML
3535 */
36- const METHOD_WPS_BML = 'wps_express_bml ' ;
36+ public const METHOD_WPS_BML = 'wps_express_bml ' ;
3737
3838 /**
3939 * PayPal Bill Me Later - Express Checkout
4040 */
41- const METHOD_WPP_BML = 'paypal_express_bml ' ;
41+ public const METHOD_WPP_BML = 'paypal_express_bml ' ;
4242
4343 /**
4444 * PayPal Website Payments Pro - Direct Payments
4545 */
46- const METHOD_WPP_DIRECT = 'paypal_direct ' ;
46+ public const METHOD_WPP_DIRECT = 'paypal_direct ' ;
4747
4848 /**
4949 * PayPal Website Payments Pro - Direct Payments - alias METHOD_PAYFLOWPRO
5050 */
51- const METHOD_PAYMENT_PRO = 'paypal_payment_pro ' ;
51+ public const METHOD_PAYMENT_PRO = 'paypal_payment_pro ' ;
5252
5353 /**
5454 * Express Checkout (Payflow Edition)
5555 */
56- const METHOD_WPP_PE_EXPRESS = 'payflow_express ' ;
56+ public const METHOD_WPP_PE_EXPRESS = 'payflow_express ' ;
5757
5858 /**
5959 * PayPal Bill Me Later - Express Checkout (Payflow Edition)
6060 */
61- const METHOD_WPP_PE_BML = 'payflow_express_bml ' ;
61+ public const METHOD_WPP_PE_BML = 'payflow_express_bml ' ;
6262
6363 /**
6464 * Payflow Pro Gateway
6565 */
66- const METHOD_PAYFLOWPRO = 'payflowpro ' ;
66+ public const METHOD_PAYFLOWPRO = 'payflowpro ' ;
6767
68- const METHOD_PAYFLOWLINK = 'payflow_link ' ;
68+ public const METHOD_PAYFLOWLINK = 'payflow_link ' ;
6969
70- const METHOD_PAYFLOWADVANCED = 'payflow_advanced ' ;
70+ public const METHOD_PAYFLOWADVANCED = 'payflow_advanced ' ;
7171
72- const METHOD_HOSTEDPRO = 'hosted_pro ' ;
72+ public const METHOD_HOSTEDPRO = 'hosted_pro ' ;
7373
74- const METHOD_BILLING_AGREEMENT = 'paypal_billing_agreement ' ;
74+ public const METHOD_BILLING_AGREEMENT = 'paypal_billing_agreement ' ;
7575
7676 /**#@+
7777 * Buttons and images
7878 */
79- const EC_FLAVOR_DYNAMIC = 'dynamic ' ;
79+ public const EC_FLAVOR_DYNAMIC = 'dynamic ' ;
8080
81- const EC_FLAVOR_STATIC = 'static ' ;
81+ public const EC_FLAVOR_STATIC = 'static ' ;
8282
83- const EC_BUTTON_TYPE_SHORTCUT = 'ecshortcut ' ;
83+ public const EC_BUTTON_TYPE_SHORTCUT = 'ecshortcut ' ;
8484
85- const EC_BUTTON_TYPE_MARK = 'ecmark ' ;
85+ public const EC_BUTTON_TYPE_MARK = 'ecmark ' ;
8686
87- const PAYMENT_MARK_SMALL = 'small ' ;
87+ public const PAYMENT_MARK_SMALL = 'small ' ;
8888
89- const PAYMENT_MARK_MEDIUM = 'medium ' ;
89+ public const PAYMENT_MARK_MEDIUM = 'medium ' ;
9090
91- const PAYMENT_MARK_LARGE = 'large ' ;
91+ public const PAYMENT_MARK_LARGE = 'large ' ;
9292
9393 /**#@-*/
94- const DEFAULT_LOGO_TYPE = 'wePrefer_150x60 ' ;
94+ public const DEFAULT_LOGO_TYPE = 'wePrefer_150x60 ' ;
9595
9696 /**#@+
9797 * Payment actions
9898 */
99- const AUTHORIZATION_AMOUNT_ONE = 1 ;
99+ public const AUTHORIZATION_AMOUNT_ONE = 1 ;
100100
101- const AUTHORIZATION_AMOUNT_FULL = 2 ;
101+ public const AUTHORIZATION_AMOUNT_FULL = 2 ;
102102
103103 /**#@-*/
104104
105105 /**#@+
106106 * Require Billing Address
107107 */
108- const REQUIRE_BILLING_ADDRESS_NO = 0 ;
108+ public const REQUIRE_BILLING_ADDRESS_NO = 0 ;
109109
110- const REQUIRE_BILLING_ADDRESS_ALL = 1 ;
110+ public const REQUIRE_BILLING_ADDRESS_ALL = 1 ;
111111
112- const REQUIRE_BILLING_ADDRESS_VIRTUAL = 2 ;
112+ public const REQUIRE_BILLING_ADDRESS_VIRTUAL = 2 ;
113113
114114 /**#@-*/
115115
116116 /**#@+
117117 * Fraud management actions
118118 */
119- const FRAUD_ACTION_ACCEPT = 'Acept ' ;
119+ public const FRAUD_ACTION_ACCEPT = 'Acept ' ;
120120
121- const FRAUD_ACTION_DENY = 'Deny ' ;
121+ public const FRAUD_ACTION_DENY = 'Deny ' ;
122122
123123 /**#@-*/
124124
125125 /**#@+
126126 * Refund types
127127 */
128- const REFUND_TYPE_FULL = 'Full ' ;
128+ public const REFUND_TYPE_FULL = 'Full ' ;
129129
130- const REFUND_TYPE_PARTIAL = 'Partial ' ;
130+ public const REFUND_TYPE_PARTIAL = 'Partial ' ;
131131
132132 /**#@-*/
133133
134134 /**#@+
135135 * Express Checkout flows
136136 */
137- const EC_SOLUTION_TYPE_SOLE = 'Sole ' ;
137+ public const EC_SOLUTION_TYPE_SOLE = 'Sole ' ;
138138
139- const EC_SOLUTION_TYPE_MARK = 'Mark ' ;
139+ public const EC_SOLUTION_TYPE_MARK = 'Mark ' ;
140140
141141 /**#@-*/
142142
143143 /**#@+
144144 * Payment data transfer methods (Standard)
145145 */
146- const WPS_TRANSPORT_IPN = 'ipn ' ;
146+ public const WPS_TRANSPORT_IPN = 'ipn ' ;
147147
148- const WPS_TRANSPORT_PDT = 'pdt ' ;
148+ public const WPS_TRANSPORT_PDT = 'pdt ' ;
149149
150- const WPS_TRANSPORT_IPN_PDT = 'ipn_n_pdt ' ;
150+ public const WPS_TRANSPORT_IPN_PDT = 'ipn_n_pdt ' ;
151151
152152 /**#@-*/
153153
154154 /**#@+
155155 * Billing Agreement Signup type
156156 */
157- const EC_BA_SIGNUP_AUTO = 'auto ' ;
157+ public const EC_BA_SIGNUP_AUTO = 'auto ' ;
158158
159- const EC_BA_SIGNUP_ASK = 'ask ' ;
159+ public const EC_BA_SIGNUP_ASK = 'ask ' ;
160160
161- const EC_BA_SIGNUP_NEVER = 'never ' ;
161+ public const EC_BA_SIGNUP_NEVER = 'never ' ;
162162
163163 /**
164164 * Paypal setting
165165 */
166- const TRANSFER_CART_LINE_ITEMS = 'lineItemsEnabled ' ;
167- const TRANSFER_SHIPPING_OPTIONS = 'transferShippingOptions ' ;
166+ public const TRANSFER_CART_LINE_ITEMS = 'lineItemsEnabled ' ;
167+ public const TRANSFER_SHIPPING_OPTIONS = 'transferShippingOptions ' ;
168168
169169 /**#@-*/
170170
171171 /**
172172 * Config path for enabling/disabling order review step in express checkout
173173 */
174- const XML_PATH_PAYPAL_EXPRESS_SKIP_ORDER_REVIEW_STEP_FLAG = 'payment/paypal_express/skip_order_review_step ' ;
174+ public const XML_PATH_PAYPAL_EXPRESS_SKIP_ORDER_REVIEW_STEP_FLAG = 'payment/paypal_express/skip_order_review_step ' ;
175175
176176 /**
177177 * PayPal PayLater
178178 */
179- const PAYLATER = 'paypal_paylater ' ;
179+ public const PAYLATER = 'paypal_paylater ' ;
180180
181181 /**
182182 *
@@ -1058,7 +1058,7 @@ public function getPaymentMarkWhatIsPaypalUrl(\Magento\Framework\Locale\Resolver
10581058 }
10591059 return sprintf (
10601060 'https://www.paypal.com/%s/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside ' ,
1061- strtolower ($ countryCode )
1061+ $ countryCode !== null ? strtolower ($ countryCode ) : ''
10621062 );
10631063 }
10641064
0 commit comments