dr`ERerpPtdr`ERerpPtjrP<hrP`2jr`<2r`|7r`>Kr|%Cr>  P  p GH犃R@dr`nEdrpnEjrPn<hrPPn2Rer@`ntRer0pntjr`n<2r`n|7r`n>Kro|%Cro> 0 d  0 犃R@dr` Edrp EjrP <hrPP 2Rer@` tRer0p tjr` <2r` |7r` >Kr|%Cr> 0 d  pQH 犃Ru /** * The field value availability for the Entry Preview field. * * @since 1.10.0 * * @param bool $is_supported The field availability. * @param string $value The submitted Credit Card detail. * @param array $field Field data. * @param array $form_data Form data. * * @return bool * * @noinspection PhpMissingParamTypeInspection * @noinspection PhpUnusedParameterInspection */B ;I犃RlorP3?)'rP@`5=r`p5cErp@5+%Cr6>I_rP9p@r9DFkr9<hrP92Fkr9<%Cr:>Z@[犃R``}lorPE?)'rP@`G=r`pGcErp@G+%CrH>I_rPKp@rKDFkrK<hrPK2FkrK<%CrL>P  `a`a[\犃R{ { erg`HpjrPH<=rP`HcEr`@H+%CrI>/rhpMR}77G@y@y犃R} lorPC?dr`EERerpPEtGrEd(rP@`E]gr``EGrEd(rPpE]grppEjrE<7rE>%CrF>@A_ӓ ?Ieu5.%get_subscription_plan_id_without_rule +*~ paypal-commerce-webhooks-enabled@ v N||&paypal-commerce-webhooks-communication ł7P#wpforms_paypal_commerce_connections@3fM'wpforms_paypal_commerce_unlock_connect_"wpforms-field-paypal-commerce-code&wpforms-field-paypal-commerce-carddate"wpforms-field-paypal-commerce-date$wpforms-field-paypal-commerce-number)OiN*&get_supported_process_method_for_order22B޴!maybe_webhook_settings_is_updatedled.@ nB &wpforms\integrations\paypalcommerce\__ x Wtg PayPal Secret mismatch detected. _ ZX'g"Unauthorized or other API failure.@ ^r DOMAIN_REGISTERED_TRANSIENT_NAME I]&WPFORMS_PAYPAL_COMMERCE_CONNECT_SERVER "&yH&wpforms_paypal_commerce_connect_server&wpforms-field-paypal-commerce-cardcode"wpforms-field-paypal-commerce-name4&wpforms-field-paypal-commerce-cardnameXJ֞$maybe_create_domain_association_fileA/?/"is_address_field_valid_from_fieldsr@ E> --apple-pay-button-border-radius(`M#render_pay_later_messages_containerion (`M#render_pay_later_messages_container@ ݠ'PayPal Commerce Apple Pay Documentation)awWm .$wpforms_display_field_payment-couponJ8&0000000049e7e4e10000000004d7c22eformatw?&wpforms_process_format_paypal-commerce RSTx$wpforms-paypal-commerce-integrations ^(4#paypal-commerce-connection-required /d~$R!Select payment methods to enable. a`yx$wpforms-field-option-paypal-checkout YXD wpforms-field-option-credit-card @ v"Select the default payment method. gR>_!
[ބ'wpforms_process_validate_payment-coupon>`} dispatch_paypal_webhooks_payloadts@ =͋lj&wpforms-paypal-commerce-google-pay-sdk G>}%https://pay.google.com/gp/p/js/pay.js&wpforms-paypal-commerce-payment-method@ 3d\wڅ!wpforms-paypal-commerce-googlepay |p]A wpforms-paypal-commerce-fastlaney.js7QI9-%wpforms_process_format_payment-coupon .,4 WPFormsPaypalCommerce\Connection h =;vA wpforms-paypal-commerce-applepayI1H enqueue_subscriptions_sdk_script&wpforms-paypal-commerce-payment-methodL{#iterate_payment_methods_with_assets&wpforms-paypal-commerce-google-pay-sdk D h%wpforms-paypal-commerce-apple-pay-sdk ؈ˢ\&wpforms-paypal-commerce-payment-method I1H enqueue_subscriptions_sdk_script L{#iterate_payment_methods_with_assets@ ip`$wpforms-paypal-commerce-create-orderl . 9fG%wpforms-paypal-commerce-approve-order i]j"PayPal.js failed to load properly. MSl.!Please enter a valid card number.@ `A "Please enter the Card Holder Name. hU b&Please enter a valid Fastlane details. 2LN&6"WPFormsPaypalCommerce.onLoadSDK( 'age-@ &WPForms\Integrations\PayPalCommerce\__ ZS eP_ <8k5%is_submitted_payment_amount_corrupted`֚1pFWPForms\Integrations\PayPalCommerce\PaymentMethods\GooglePay\GooglePay fRDWPForms\Integrations\PayPalCommerce\PaymentMethods\Checkout\Checkout` )MɃŒ>WPForms\Integrations\PayPalCommerce\PaymentMethods\Venmo\Venmo  O_r\ =WPForms\Integrations\PayPalCommerce\Process\ProcessSingleAjax< DU?CWPForms\Integrations\PayPalCommerce\Process\ProcessSubscriptionAjaxrms_ }F?c9WPForms\Integrations\PayPalCommerce\wpforms_is_admin_pagecessorajax ]9wpforms\integrations\paypalcommerce\wpforms_is_admin_page  @ 0e"-=wpforms\integrations\paypalcommerce\process\processsingleajaxȒ  %xsCwpforms\integrations\paypalcommerce\process\processsubscriptionajax  z9WPForms\Integrations\PayPalCommerce\Fields\PayPalCommercee\Api\@on` uև9wpforms\integrations\paypalcommerce\fields\paypalcommerce  ?@g<:WPForms\Integrations\PayPalCommerce\Admin\Builder\EnqueuesEE C܌5<:wpforms\integrations\paypalcommerce\admin\builder\enqueuesE  [o<WPForms\Integrations\PayPalCommerce\wpforms_is_frontend_ajaxF ; R<wpforms\integrations\paypalcommerce\wpforms_is_frontend_ajax z@ 5<:WPForms\Integrations\PayPalCommerce\Admin\Builder\Settings  )Iso=:wpforms\integrations\paypalcommerce\admin\builder\settings8  [?WPForms\Integrations\PayPalCommerce\Admin\Builder\NotificationsS` YN@?wpforms\integrations\paypalcommerce\admin\builder\notifications@le t SVo\GWPForms\Integrations\PayPalCommerce\Admin\Payments\SingleActionsHandler  lP.Gwpforms\integrations\paypalcommerce\admin\payments\singleactionshandler χ j<wpforms\integrations\paypalcommerce\paymentmethods\card\card   mDwpforms\integrations\paypalcommerce\paymentmethods\applepay\applepay@ #Fwpforms\integrations\paypalcommerce\paymentmethods\googlepay\googlepay kɁDwpforms\integrations\paypalcommerce\paymentmethods\fastlane\fastlane פw>wpforms\integrations\paypalcommerce\paymentmethods\venmo\venmoc` ƃӱDwpforms\integrations\paypalcommerce\paymentmethods\checkout\checkoutms_T Dtee Y i;WPForms\Integrations\PayPalCommerce\wpforms_paypal_commerce ? fOc];wpforms\integrations\paypalcommerce\wpforms_paypal_commerceapi\ ]s3Awpforms\integrations\paypalcommerce\wpforms_get_currency_decimals @ ga 48WPForms\Integrations\PayPalCommerce\wpforms_get_currencye G#]s8wpforms\integrations\paypalcommerce\wpforms_get_currency wpforms\ 7f@WPForms\Integrations\PayPalCommerce\wpforms_is_addon_initialized ` @wpforms\integrations\paypalcommerce\wpforms_is_addon_initializedrms\ uPϭ<WPForms\Integrations\PayPalCommerce\wpforms_get_license_typei A<wpforms\integrations\paypalcommerce\wpforms_get_license_type  );WPForms\Integrations\PayPalCommerce\wpforms_get_license_key  0SM;wpforms\integrations\paypalcommerce\wpforms_get_license_keyix @ @QAWPForms\Integrations\PayPalCommerce\WPFORMS_PAYPAL_COMMERCE_WHURL  uLAwpforms\integrations\paypalcommerce\WPFORMS_PAYPAL_COMMERCE_WHURLForms\ `?wAwpforms\integrations\paypalcommerce\wpforms_paypal_commerce_whurlsh ?yZ0%WPForms\@or\S {mm( ! empty( $filters['type'] ) && 'all' !== $filters['type'] ) { $filters['type'] = strtolower( $filters['type'] ); switch ( $filters['type'] ) { case 'warn_error': $criteria[] = array( 'col' => 'type', 'val' => array( 'warn', 'error' ) ); break; case 'error': case 'warn': $criteria[] = array( 'col' => 'type', 'val' => $filters['type'] ); break; case 'info': default: $criteria[] = array( 'col' => 'type', 'val' => array( 'info', 'log' ) ); break; } } if ( ! empty( $filters['request_type'] ) ) { $filters['request_type'] = strtolower( $filters['request_type'] ); if ( in_array( $filters['request_type'], array( 'call', 'ajax', 'cron' ) ) ) { $criteria[] = array( 'col' => 'request_type', 'val' => $filters['request_type'] ); } } if ( ! empty( $filters['file'] ) ) { $criteria[] = array( 'col' => 'file', 'op' => 'LIKE', 'val' => '%' . esc_sql( $filters['file'] ), ); } if ( ! empty( $filters['function'] ) ) { $criteria[] = array( 'col' => 'function', 'op' => 'LIKE', 'val' => '%' . esc_sql( $filters['function'] ), ); } if ( ! empty( $filters['process_id'] ) && is_numeric( $filters['process_id'] ) ) { $criteria[] = array( 'col' => 'process_id', 'val' => $filters['process_id'] ); } if ( ! empty( $filters['logger'] ) ) { $criteria[] = array( 'col' => 'logger', 'op' => 'LIKE', 'val' => '%' . esc_sql( $filters['logger'] ) . '%', ); } if ( ! empty( $filters['message'] ) ) { $criteria[] = array( 'col' => 'message', 'op' => 'LIKE', 'val' => '%' . esc_sql( $filters['message'] ) . '%', ); } if ( 0 < count( $criteria ) ) { $query .= "\nWHERE\n"; $first = true; foreach ( $criteria as $c ) { if ( ! $first ) { $query .= "AND\n"; } if ( is_array( $c['val'] ) ) { $operator = 'IN'; for ( $i = 0, $len = count( $c['val'] ); $i < $len; $i ++ ) { $c['val'][ $i ] = "'" . esc_sql( $c['val'][ $i ] ) . "'"; } $val = '(' . implode( ',', $c['val'] ) . ')'; } else { $operator = ! empty( $c['op'] ) ? $c['op'] : '='; $val = "'" . esc_sql( $c['val'] ) . "'"; } $query .= "`{$c['col']}` {$operator} {$val}\n"; $first = false; } } } if ( ! is_array( $order ) ) { $order = array( 'col' => 'id', 'order' => 'desc' ); } $query .= " ORDER BY {$order['col']} {$order['order']} LIMIT {$offset},{$limit}"; return $query; } /** * Load logs from DB. * * @author Vova Feldman (@svovaf) * @since 1.2.1.6 * * @param bool $filters * @param int $limit * @param int $offset * @param bool $order * * @return object[]|null */ public static function load_db_logs( $filters = false, $limit = 200, $offset = 0, $order = false ) { global $wpdb; $query = self::build_db_logs_query( $filters, $limit, $offset, $order ); return $wpdb->get_results( $query ); } /** * Load logs from DB. * * @author Vova Feldman (@svovaf) * @since 1.2.1.6 * * @param bool $filters * @param string $filename * @param int $limit * @param int $offset * @param bool $order * * @return false|string File download URL or false on failure. */ public static function download_db_logs( $filters = false, $filename = '', $limit = 10000, $offset = 0, $order = false ) { if ( empty( $filename ) ) { $filename = 'fs-logs-' . date( 'Y-m-d_H-i-s', WP_FS__SCRIPT_START_TIME ) . '.csv'; } $upload_dir = wp_upload_dir(); $filepath = rtrim( $upload_dir['path'], '/' ) . "/{$filename}"; WP_Filesystem(); if ( ! $GLOBALS['wp_filesystem']->is_writable( dirname( $filepath ) ) ) { return false; } $query = self::build_db_logs_query( $filters, $limit, $offset, $order, true ); $columns = ''; for ( $i = 0, $len = count( self::$_log_columns ); $i < $len; $i ++ ) { if ( $i > 0 ) { $columns .= ', '; } $columns .= "'" . self::$_log_columns[ $i ] . "'"; } $query = "SELECT {$columns} UNION ALL " . $query; $result = $GLOBALS['wpdb']->get_results( $query ); if ( false === $result ) { return false; } if ( ! self::write_csv_to_filesystem( $filepath, $result ) ) { return false; } return rtrim( $upload_dir['url'], '/' ) . '/' . $filename; } /** * @author Vova Feldman (@svovaf) * @since 1.2.1.6 * * @param string $filename * * @return string */ public static function get_logs_download_url( $filename = '' ) { $upload_dir = wp_upload_dir(); if ( empty( $filename ) ) { $filename = 'fs-logs-' . date( 'Y-m-d_H-i-s', WP_FS__SCRIPT_START_TIME ) . '.csv'; } return rtrim( $upload_dir['url'], '/' ) . $filename; } /** * @param string $file_path * @param array $query_results * * @return bool */ private static function write_csv_to_filesystem( $file_path, $query_results ) { if ( empty( $query_results ) ) { return false; } $content = ''; foreach ( $query_results as $row ) { $row_data = array_map( function ( $value ) { return str_replace( "\n", ' ', $value ); }, (array) $row ); $content .= implode( "\t", $row_data ) . "\n"; } if ( ! $GLOBALS['wp_filesystem']->put_contents( $file_path, $content, FS_CHMOD_FILE ) ) { return false; } return true; } #endregion }