includes/compat/class-wc-stripe-sepa-subs-compat.php 1 location
|
@@ 214-217 (lines=4) @@
|
| 211 |
|
*/ |
| 212 |
|
public function process_subscription_payment( $amount = 0.0, $renewal_order, $retry = true, $previous_error ) { |
| 213 |
|
try { |
| 214 |
|
if ( $amount * 100 < WC_Stripe_Helper::get_minimum_amount() ) { |
| 215 |
|
/* translators: minimum amount */ |
| 216 |
|
return new WP_Error( 'stripe_error', sprintf( __( 'Sorry, the minimum allowed order total is %1$s to use this payment method.', 'woocommerce-gateway-stripe' ), wc_price( WC_Stripe_Helper::get_minimum_amount() / 100 ) ) ); |
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
$order_id = WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $renewal_order->id : $renewal_order->get_id(); |
| 220 |
|
|
includes/abstracts/abstract-wc-stripe-payment-gateway.php 1 location
|
@@ 228-231 (lines=4) @@
|
| 225 |
|
* @param object $order |
| 226 |
|
*/ |
| 227 |
|
public function validate_minimum_order_amount( $order ) { |
| 228 |
|
if ( $order->get_total() * 100 < WC_Stripe_Helper::get_minimum_amount() ) { |
| 229 |
|
/* translators: 1) dollar amount */ |
| 230 |
|
throw new WC_Stripe_Exception( 'Did not meet minimum amount', sprintf( __( 'Sorry, the minimum allowed order total is %1$s to use this payment method.', 'woocommerce-gateway-stripe' ), wc_price( WC_Stripe_Helper::get_minimum_amount() / 100 ) ) ); |
| 231 |
|
} |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
/** |
includes/compat/class-wc-stripe-subs-compat.php 1 location
|
@@ 216-219 (lines=4) @@
|
| 213 |
|
*/ |
| 214 |
|
public function process_subscription_payment( $amount = 0.0, $renewal_order, $retry = true, $previous_error ) { |
| 215 |
|
try { |
| 216 |
|
if ( $amount * 100 < WC_Stripe_Helper::get_minimum_amount() ) { |
| 217 |
|
/* translators: minimum amount */ |
| 218 |
|
return new WP_Error( 'stripe_error', sprintf( __( 'Sorry, the minimum allowed order total is %1$s to use this payment method.', 'woocommerce-gateway-stripe' ), wc_price( WC_Stripe_Helper::get_minimum_amount() / 100 ) ) ); |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
$order_id = WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $renewal_order->id : $renewal_order->get_id(); |
| 222 |
|
|