includes/legacy/class-wc-gateway-stripe.php 1 location
|
@@ 245-250 (lines=6) @@
|
| 242 |
|
|
| 243 |
|
$user = wp_get_current_user(); |
| 244 |
|
|
| 245 |
|
if ( $user ) { |
| 246 |
|
$user_email = get_user_meta( $user->ID, 'billing_email', true ); |
| 247 |
|
$user_email = $user_email ? $user_email : $user->user_email; |
| 248 |
|
} else { |
| 249 |
|
$user_email = ''; |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
$display = ''; |
| 253 |
|
|
includes/class-wc-gateway-stripe.php 1 location
|
@@ 291-296 (lines=6) @@
|
| 288 |
|
$user = wp_get_current_user(); |
| 289 |
|
$display_tokenization = $this->supports( 'tokenization' ) && is_checkout() && $this->saved_cards; |
| 290 |
|
|
| 291 |
|
if ( $user->ID ) { |
| 292 |
|
$user_email = get_user_meta( $user->ID, 'billing_email', true ); |
| 293 |
|
$user_email = $user_email ? $user_email : $user->user_email; |
| 294 |
|
} else { |
| 295 |
|
$user_email = ''; |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
if ( is_add_payment_method_page() ) { |
| 299 |
|
$pay_button_text = __( 'Add Card', 'woocommerce-gateway-stripe' ); |