|
@@ 498-503 (lines=6) @@
|
| 495 |
|
if ( $source->id === $stripe_source_id ) { |
| 496 |
|
$found_source = true; |
| 497 |
|
|
| 498 |
|
if ( $card ) { |
| 499 |
|
/* translators: 1) card brand 2) last 4 digits */ |
| 500 |
|
$payment_method_to_display = sprintf( __( 'Via %1$s card ending in %2$s', 'woocommerce-gateway-stripe' ), ( isset( $card->brand ) ? $card->brand : __( 'N/A', 'woocommerce-gateway-stripe' ) ), $card->last4 ); |
| 501 |
|
} else { |
| 502 |
|
$payment_method_to_display = __( 'N/A', 'woocommerce-gateway-stripe' ); |
| 503 |
|
} |
| 504 |
|
break; |
| 505 |
|
} |
| 506 |
|
} |
|
@@ 513-518 (lines=6) @@
|
| 510 |
|
$card = $sources[0]->card; |
| 511 |
|
} |
| 512 |
|
|
| 513 |
|
if ( $card ) { |
| 514 |
|
/* translators: 1) card brand 2) last 4 digits */ |
| 515 |
|
$payment_method_to_display = sprintf( __( 'Via %1$s card ending in %2$s', 'woocommerce-gateway-stripe' ), ( isset( $card->brand ) ? $card->brand : __( 'N/A', 'woocommerce-gateway-stripe' ) ), $card->last4 ); |
| 516 |
|
} else { |
| 517 |
|
$payment_method_to_display = __( 'N/A', 'woocommerce-gateway-stripe' ); |
| 518 |
|
} |
| 519 |
|
} |
| 520 |
|
} |
| 521 |
|
|