includes/compat/class-wc-stripe-sepa-subs-compat.php 1 location
|
@@ 181-184 (lines=4) @@
|
178 |
|
$subscription = wc_get_order( $order_id ); |
179 |
|
$prepared_source = $this->prepare_source( get_current_user_id(), true ); |
180 |
|
|
181 |
|
if ( empty( $prepared_source->source ) ) { |
182 |
|
$localized_message = __( 'Payment processing failed. Please retry.', 'woocommerce-gateway-stripe' ); |
183 |
|
throw new WC_Stripe_Exception( print_r( $prepared_source, true ), $localized_message ); |
184 |
|
} |
185 |
|
|
186 |
|
$this->save_source_to_order( $subscription, $prepared_source ); |
187 |
|
|
includes/compat/class-wc-stripe-subs-compat.php 1 location
|
@@ 144-147 (lines=4) @@
|
141 |
|
throw new WC_Stripe_Exception( print_r( $source_object, true ), $localized_message ); |
142 |
|
} |
143 |
|
|
144 |
|
if ( empty( $prepared_source->source ) ) { |
145 |
|
$localized_message = __( 'Payment processing failed. Please retry.', 'woocommerce-gateway-stripe' ); |
146 |
|
throw new WC_Stripe_Exception( print_r( $prepared_source, true ), $localized_message ); |
147 |
|
} |
148 |
|
|
149 |
|
$this->save_source_to_order( $subscription, $prepared_source ); |
150 |
|
|
includes/class-wc-gateway-stripe.php 1 location
|
@@ 703-706 (lines=4) @@
|
700 |
|
throw new WC_Stripe_Exception( print_r( $prepared_source->source_object, true ), $localized_message ); |
701 |
|
} |
702 |
|
|
703 |
|
if ( empty( $prepared_source->source ) ) { |
704 |
|
$localized_message = __( 'Payment processing failed. Please retry.', 'woocommerce-gateway-stripe' ); |
705 |
|
throw new WC_Stripe_Exception( print_r( $prepared_source, true ), $localized_message ); |
706 |
|
} |
707 |
|
|
708 |
|
$this->save_source_to_order( $order, $prepared_source ); |
709 |
|
|