includes/abstracts/abstract-wc-stripe-payment-gateway.php 1 location
|
@@ 243-246 (lines=4) @@
|
| 240 |
|
* @param object $order |
| 241 |
|
*/ |
| 242 |
|
public function validate_minimum_order_amount( $order ) { |
| 243 |
|
if ( $order->get_total() * 100 < WC_Stripe_Helper::get_minimum_amount() ) { |
| 244 |
|
/* translators: 1) dollar amount */ |
| 245 |
|
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 ) ) ); |
| 246 |
|
} |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
/** |
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/compat/class-wc-stripe-subs-compat.php 1 location
|
@@ 195-198 (lines=4) @@
|
| 192 |
|
*/ |
| 193 |
|
public function process_subscription_payment( $amount = 0.0, $renewal_order, $retry = true, $previous_error ) { |
| 194 |
|
try { |
| 195 |
|
if ( $amount * 100 < WC_Stripe_Helper::get_minimum_amount() ) { |
| 196 |
|
/* translators: minimum amount */ |
| 197 |
|
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 ) ) ); |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
$order_id = WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $renewal_order->id : $renewal_order->get_id(); |
| 201 |
|
|