get_status(), $order->get_meta( 'av_order_tag_key' ) ) ) { return; } $order_payload = array( 'forename' => $order->get_billing_first_name(), 'surname' => $order->get_billing_last_name(), 'email' => $order->get_billing_email(), 'msisdn' => $order->get_billing_phone(), 'building' => $order->get_billing_address_2(), 'street' => $order->get_billing_address_1(), 'city' => $order->get_billing_city(), 'postCode' => $order->get_billing_postcode(), 'country' => $order->get_billing_country(), 'id' => $order->get_id(), 'key' => $order->get_order_key(), ); foreach ( array( 'dob', 'date_of_birth', 'billing_dob' ) as $dob_key ) { $dob = $order->get_meta( $dob_key ); if ( ! is_string( $dob ) || '' === $dob ) { continue; } $uk = AgeCheck::checkout_dob_for_iframe( $dob, DateOfBirth::today() ); if ( '' !== $uk ) { $order_payload['dob'] = $uk; break; } } echo ''; } }