@@ -85,7 +85,7 @@ public function is_account_creation_possible() {
85
85
* @return string
86
86
*/
87
87
public function get_button_type () {
88
- return isset ( $ this ->stripe_settings ['express_checkout_button_type ' ] ) ? $ this ->stripe_settings ['express_checkout_button_type ' ] : 'default ' ;
88
+ return isset ( $ this ->stripe_settings ['payment_request_button_type ' ] ) ? $ this ->stripe_settings ['payment_request_button_type ' ] : 'default ' ;
89
89
}
90
90
91
91
/**
@@ -94,7 +94,7 @@ public function get_button_type() {
94
94
* @return string
95
95
*/
96
96
public function get_button_theme () {
97
- return isset ( $ this ->stripe_settings ['express_checkout_button_theme ' ] ) ? $ this ->stripe_settings ['express_checkout_button_theme ' ] : 'dark ' ;
97
+ return isset ( $ this ->stripe_settings ['payment_request_button_theme ' ] ) ? $ this ->stripe_settings ['payment_request_button_theme ' ] : 'dark ' ;
98
98
}
99
99
100
100
/**
@@ -103,7 +103,7 @@ public function get_button_theme() {
103
103
* @return string
104
104
*/
105
105
public function get_button_height () {
106
- $ height = isset ( $ this ->stripe_settings ['express_checkout_button_size ' ] ) ? $ this ->stripe_settings ['express_checkout_button_size ' ] : 'default ' ;
106
+ $ height = isset ( $ this ->stripe_settings ['payment_request_button_size ' ] ) ? $ this ->stripe_settings ['payment_request_button_size ' ] : 'default ' ;
107
107
if ( 'small ' === $ height ) {
108
108
return '40 ' ;
109
109
}
@@ -121,7 +121,7 @@ public function get_button_height() {
121
121
* @return string
122
122
*/
123
123
public function get_button_radius () {
124
- $ height = isset ( $ this ->stripe_settings ['express_checkout_button_size ' ] ) ? $ this ->stripe_settings ['express_checkout_button_size ' ] : 'default ' ;
124
+ $ height = isset ( $ this ->stripe_settings ['payment_request_button_size ' ] ) ? $ this ->stripe_settings ['payment_request_button_size ' ] : 'default ' ;
125
125
if ( 'small ' === $ height ) {
126
126
return '2 ' ;
127
127
}
@@ -1329,18 +1329,18 @@ public function get_login_confirmation_settings() {
1329
1329
*/
1330
1330
public function get_button_locations () {
1331
1331
// If the locations have not been set return the default setting.
1332
- if ( ! isset ( $ this ->stripe_settings ['express_checkout_button_locations ' ] ) ) {
1332
+ if ( ! isset ( $ this ->stripe_settings ['payment_request_button_locations ' ] ) ) {
1333
1333
return [ 'product ' , 'cart ' ];
1334
1334
}
1335
1335
1336
1336
// If all locations are removed through the settings UI the location config will be set to
1337
1337
// an empty string "". If that's the case (and if the settings are not an array for any
1338
1338
// other reason) we should return an empty array.
1339
- if ( ! is_array ( $ this ->stripe_settings ['express_checkout_button_locations ' ] ) ) {
1339
+ if ( ! is_array ( $ this ->stripe_settings ['payment_request_button_locations ' ] ) ) {
1340
1340
return [];
1341
1341
}
1342
1342
1343
- return $ this ->stripe_settings ['express_checkout_button_locations ' ];
1343
+ return $ this ->stripe_settings ['payment_request_button_locations ' ];
1344
1344
}
1345
1345
1346
1346
/**
@@ -1351,7 +1351,7 @@ public function get_button_locations() {
1351
1351
* @return boolean
1352
1352
*/
1353
1353
public function is_express_checkout_enabled () {
1354
- return isset ( $ this ->stripe_settings ['express_checkout ' ] ) && 'yes ' === $ this ->stripe_settings ['express_checkout ' ];
1354
+ return isset ( $ this ->stripe_settings ['payment_request ' ] ) && 'yes ' === $ this ->stripe_settings ['payment_request ' ];
1355
1355
}
1356
1356
1357
1357
/**
0 commit comments