mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Check if terms checkbox is available
This commit is contained in:
parent
984019cb2b
commit
902d6bb0cf
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ class CreateOrderEndpoint implements EndpointInterface {
|
|||
*/
|
||||
private function validate_paynow_form( string $form_values ) {
|
||||
$parsed_values = wp_parse_args( $form_values );
|
||||
if ( ! isset( $parsed_values['terms'] ) ) {
|
||||
if ( isset( $parsed_values['terms-field'] ) && ! isset( $parsed_values['terms'] ) ) {
|
||||
throw new \RuntimeException(
|
||||
__( 'Please read and accept the terms and conditions to proceed with your order.', 'woocommerce-paypal-payments' )
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue