|
@@ 384-395 (lines=12) @@
|
| 381 |
|
give_set_error( 'invalid_donation_amount', __( 'Please insert a valid donation amount.', 'give' ) ); |
| 382 |
|
|
| 383 |
|
} // End if(). |
| 384 |
|
elseif ( ! give_verify_minimum_price( 'minimum' ) ) { |
| 385 |
|
// translators: %s: minimum donation amount. |
| 386 |
|
give_set_error( |
| 387 |
|
'invalid_donation_minimum', |
| 388 |
|
sprintf( |
| 389 |
|
/* translators: %s: minimum donation amount */ |
| 390 |
|
__( 'This form has a minimum donation amount of %s.', 'give' ), |
| 391 |
|
give_currency_filter( give_format_amount( give_get_form_minimum_price( $form_id ), array( 'sanitize' => false ) ) ) |
| 392 |
|
) |
| 393 |
|
); |
| 394 |
|
|
| 395 |
|
} // End if(). |
| 396 |
|
elseif ( ! give_verify_minimum_price( 'maximum' ) ) { |
| 397 |
|
// translators: %s: Maximum donation amount. |
| 398 |
|
give_set_error( |
|
@@ 396-407 (lines=12) @@
|
| 393 |
|
); |
| 394 |
|
|
| 395 |
|
} // End if(). |
| 396 |
|
elseif ( ! give_verify_minimum_price( 'maximum' ) ) { |
| 397 |
|
// translators: %s: Maximum donation amount. |
| 398 |
|
give_set_error( |
| 399 |
|
'invalid_donation_maximum', |
| 400 |
|
sprintf( |
| 401 |
|
/* translators: %s: Maximum donation amount */ |
| 402 |
|
__( 'This form has a maximum donation amount of %s.', 'give' ), |
| 403 |
|
give_currency_filter( give_format_amount( give_get_form_maximum_price( $form_id ), array( 'sanitize' => false ) ) ) |
| 404 |
|
) |
| 405 |
|
); |
| 406 |
|
|
| 407 |
|
} //Is this test mode zero donation? Let it through but set to manual gateway. |
| 408 |
|
elseif ( $amount == 0 && give_is_test_mode() ) { |
| 409 |
|
|
| 410 |
|
$gateway = 'manual'; |