@@ 226-233 (lines=8) @@ | ||
223 | */ |
|
224 | public function process_subscription_payment( $amount, $renewal_order, $retry = true, $previous_error = false ) { |
|
225 | try { |
|
226 | if ( $amount * 100 < WC_Stripe_Helper::get_minimum_amount() ) { |
|
227 | /* translators: minimum amount */ |
|
228 | $message = 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 ) ); |
|
229 | throw new WC_Stripe_Exception( |
|
230 | 'Error while processing renewal order ' . $renewal_order->get_id() . ' : ' . $message, |
|
231 | $message |
|
232 | ); |
|
233 | } |
|
234 | ||
235 | $order_id = $renewal_order->get_id(); |
|
236 |
@@ 239-246 (lines=8) @@ | ||
236 | */ |
|
237 | public function process_subscription_payment( $amount, $renewal_order, $retry = true, $previous_error = false ) { |
|
238 | try { |
|
239 | if ( $amount * 100 < WC_Stripe_Helper::get_minimum_amount() ) { |
|
240 | /* translators: minimum amount */ |
|
241 | $message = 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 ) ); |
|
242 | throw new WC_Stripe_Exception( |
|
243 | 'Error while processing renewal order ' . $renewal_order->get_id() . ' : ' . $message, |
|
244 | $message |
|
245 | ); |
|
246 | } |
|
247 | ||
248 | $order_id = $renewal_order->get_id(); |
|
249 |