Pay now form – additional action needed
-
Hi,
In Pay now form we have custom checkboxes which should be checked during checkout. Unfortunately your current code only checks terms and terms-field:
modules/ppcp-button/src/Endpoint/CreateOrderEndpoint.phpprivate function validate_paynow_form( array $form_fields ): void { if ( isset( $form_fields['terms-field'] ) && ! isset( $form_fields['terms'] ) ) { throw new ValidationException( array( __( 'Please read and accept the terms and conditions to proceed with your order.', 'woocommerce-paypal-payments' ) ) ); } }
There is a change to add some action here so I will be able to validate other fields in pay now form?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Pay now form – additional action needed’ is closed to new replies.