Plugin Directory

Changeset 3358158


Ignore:
Timestamp:
09/08/2025 08:55:30 PM (6 months ago)
Author:
agechecker
Message:

Account for server maintenance

Location:
agecheckernet
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • agecheckernet/trunk/class-wc-integration-agechecker-integration.php

    r3329934 r3358158  
    12951295                    ));
    12961296                    if (is_wp_error($post)) {
     1297                        $error_body = json_encode(array(
     1298                            'message' => 'Woo: WP203 error during validation',
     1299                            'error' => $post->get_error_message()
     1300                        ), JSON_FORCE_OBJECT);
     1301                        $post = wp_remote_post("https://api.agechecker.net/v1/error_console", array(
     1302                            'method'      => 'POST',
     1303                            'timeout'     => 20,
     1304                            'httpversion' => '1.1',
     1305                            'headers'     => array(
     1306                                'Content-Type' => 'application/json'
     1307                            ),
     1308                            'body'        => $error_body
     1309                        ));
    12971310                        throw new Exception('The age verification service could not verify you at this time. Need help? Contact help@agechecker.net. (Error WP203)');
    12981311                    } else {
     
    22922305
    22932306        public function update_order_verification($order_id, $body) {
     2307            // Do not do anything to the order if the call to v1/create or v1/status
     2308            // returned that AgeChecker is currently in maintenance mode
     2309            if ($body['code'] && $body['code'] === 503) return;
     2310
    22942311            $order = new WC_Order($order_id);
    22952312
  • agecheckernet/trunk/readme.txt

    r3329934 r3358158  
    44Requires at least: 4.4
    55Tested up to: 6.7
    6 Stable tag: 1.20.4
     6Stable tag: 1.20.5
    77
    88AgeChecker.Net seamlessly and securely verifies the age of your customers directly on your website during the checkout process.
     
    6363== Changelog ==
    6464
     65= 1.20.5 =
     66*Release Date - 08 September 2025*
     67
     68* Account for server maintenance
     69
    6570= 1.20.4 =
    6671*Release Date - 17 July 2025*
Note: See TracChangeset for help on using the changeset viewer.