includes/compat/class-wc-stripe-sepa-subs-compat.php 1 location
|
@@ 423-425 (lines=3) @@
|
| 420 |
|
$customer_user = WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $subscription->customer_user : $subscription->get_customer_id(); |
| 421 |
|
|
| 422 |
|
// bail for other payment methods |
| 423 |
|
if ( ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $subscription->payment_method : $subscription->get_payment_method() ) !== $this->id || ! $customer_user ) { |
| 424 |
|
return $payment_method_to_display; |
| 425 |
|
} |
| 426 |
|
|
| 427 |
|
$stripe_source_id = get_post_meta( ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $subscription->id : $subscription->get_id() ), '_stripe_source_id', true ); |
| 428 |
|
|
includes/compat/class-wc-stripe-subs-compat.php 1 location
|
@@ 435-437 (lines=3) @@
|
| 432 |
|
$customer_user = WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $subscription->customer_user : $subscription->get_customer_id(); |
| 433 |
|
|
| 434 |
|
// bail for other payment methods |
| 435 |
|
if ( ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $subscription->payment_method : $subscription->get_payment_method() ) !== $this->id || ! $customer_user ) { |
| 436 |
|
return $payment_method_to_display; |
| 437 |
|
} |
| 438 |
|
|
| 439 |
|
$stripe_source_id = get_post_meta( ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $subscription->id : $subscription->get_id() ), '_stripe_source_id', true ); |
| 440 |
|
|