• Resolved khubaib927

    (@khubaib927)


    Hello, I got these errors today when tried using paypal on my website.

    INVALID_STRING_LENGTH The value of a field is either too short or too long.
    INVALID_PARAMETER_SYNTAX The value of a field does not conform to the expected format.

    ` WordPress Environment</p> <p class=””>WordPress address (URL): https://mysqlclient.com<br>Site address (URL): https://mysqlclient.com<br>WC Version: 8.0.2<br>REST API Version: ? 8.0.2<br>WC Blocks Version: ? 10.6.5<br>Action Scheduler Version: ? 3.6.1<br>Log Directory Writable: ?<br>WP Version: 6.3<br>WP Multisite: –<br>WP Memory Limit: 1 GB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_US<br>External object cache: – Server Environment</p> <p class=””>Server Info: Apache<br>PHP Version: 8.2.8<br>PHP Post Max Size: 512 MB<br>PHP Time Limit: 500<br>PHP Max Input Vars: 1000<br>cURL Version: 8.2.1<br>OpenSSL/1.1.1v</p> <p class=””>SUHOSIN Installed: –<br>MySQL Version: 5.7.43<br>Max Upload Size: 512 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ? Your server does not have the SoapClient class enabled – some gateway plugins which use SOAP may not work as expected.<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database</p> <p class=””>WC Database Version: 8.0.2<br>WC Database Prefix: MFhsk_<br>Total Database Size: 53.01MB<br>Database Data Size: 48.40MB<br>Database Index Size: 4.61MB<br>MFhsk_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>MFhsk_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>MFhsk_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB<br>MFhsk_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_aiowps_audit_log: Data: 12.52MB + Index: 0.36MB + Engine InnoDB<br>MFhsk_aiowps_debug_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_aiowps_login_lockdown: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>MFhsk_aiowps_permanent_block: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_arm_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_auto_message: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_badges_achievements: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_coupons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_debug_general_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_debug_payment_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_dripped_contents: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_drip_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_entries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_fail_attempts: Data: 19.05MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_forms: Data: 0.16MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_form_field: Data: 0.08MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_login_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_members: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_arm_membership_setup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_member_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_payment_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_subscription_plans: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_arm_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_comments: Data: 0.05MB + Index: 0.09MB + Engine InnoDB<br>MFhsk_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB<br>MFhsk_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>MFhsk_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_myCRED_log: Data: 0.02MB + Index: 0.09MB + Engine InnoDB<br>MFhsk_options: Data: 2.42MB + Index: 0.06MB + Engine InnoDB<br>MFhsk_postmeta: Data: 3.16MB + Index: 1.61MB + Engine InnoDB<br>MFhsk_posts: Data: 9.11MB + Index: 0.13MB + Engine InnoDB<br>MFhsk_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_term_relationships: Data: 0.11MB + Index: 0.08MB + Engine InnoDB<br>MFhsk_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>MFhsk_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>MFhsk_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>MFhsk_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>MFhsk_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>MFhsk_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>MFhsk_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB<br>MFhsk_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>MFhsk_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>MFhsk_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>MFhsk_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>MFhsk_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts</p> <p class=””>attachment: 9<br>custom_css: 2<br>customize_changeset: 1<br>elementor_library: 5<br>mycred_rank: 2<br>nav_menu_item: 16<br>page: 27<br>post: 2<br>product: 3<br>revision: 328<br>shop_coupon: 1<br>shop_order: 2<br>vidmov_artist: 10<br>vidmov_audio: 11<br>vidmov_cast: 10<br>vidmov_crew: 10<br>vidmov_playlist: 6<br>vidmov_series: 6<br>vidmov_user_profile: 128<br>vidmov_video: 61<br>vidmov_video_ads: 6<br>wp_global_styles: 1 Security</p> <p class=””>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (19)</p> <p class=””>Thank You Page for WooCommerce: by Nitin Prakash – 4.0.0<br>Redux Framework: by Team Redux – 4.4.4<br>All In One WP Security: by All In One WP Security & Firewall Team – 5.2.2<br>ARMember – Complete Membership Plugin: by Repute InfoSystems – 5.9.3<br>BeeTeam368 Extensions Pro: by BeeTeam368 – 1.9.4<br>BeeTeam368 Extensions: by BeeTeam368 – 1.9.4<br>CMB2: by CMB2 team – 2.10.1<br>Elementor Pro: by Elementor.com – 3.14.0<br>Elementor: by Elementor.com – 3.14.1<br>Publitio: by Publitio – 2.1.6<br>Sassy Social Share: by Team Heateor – 3.3.52<br>Theme My Login: by Theme My Login – 7.1.5<br>User Role Editor: by Vladimir Garagulya – 4.63.3<br>Visibility Logic for Elementor: by StaxWP – 2.3.5.1<br>WooCommerce Stripe Gateway: by WooCommerce – 7.5.0<br>WooCommerce PayPal Payments: by WooCommerce – 2.2.0<br>WooCommerce: by Automattic – 8.0.2<br>WP-PageNavi: by Lester ‘GaMerZ’ Chan – 2.94.1<br>WPForms Lite: by WPForms – 1.8.2.2 Inactive Plugins (6)</p> <p class=””>myCred: by myCred – 2.5.3<br>One Click Demo Import: by OCDI – 3.1.2<br>Visibility Logic PRO for Elementor: by StaxWP – 2.3.2<br>WooCommerce Authorize.Net Gateway: by Pledged Plugins – 6.0.4<br>WooCommerce Subscriptions: by WooCommerce – 5.1.3<br>WP File Manager: by mndpsingh287 – 7.1.9 Dropin Plugins (1)</p> <p class=””>maintenance.php: maintenance.php Settings</p> <p class=””>API Enabled: –<br>Force SSL: –<br>Currency: USD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>subscription (subscription)<br>variable (variable)<br>variable subscription (variable-subscription)</p> <p class=””>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)</p> <p class=””>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages</p> <p class=””>Shop base: #2492 – /shop/<br>Cart: #2494 – /cart/<br>Checkout: #2496 – /checkout/<br>My account: #2498 – /my-account/<br>Terms and conditions: ? Page not set Theme</p> <p class=””>Name: VidMov Child<br>Version: 1.0.0<br>Author URL: https://themeforest.net/user/beeteam368<br>Child Theme: ?<br>Parent Theme Name: VidMov<br>Parent Theme Version: 1.9.4<br>Parent Theme Author URL: https://themeforest.net/user/beeteam368<br>WooCommerce Support: ? Templates</p> <p class=””>Overrides: vidmov/woocommerce/global/sidebar.php version – is out of date. The core version is 1.6.4<br>vidmov/woocommerce/global/wrapper-end.php version – is out of date. The core version is 3.3.0<br>vidmov/woocommerce/global/wrapper-start.php version – is out of date. The core version is 3.3.0</p> <p class=””>Outdated Templates: ?</p> <pre class=”wp-block-code”><code> Learn how to update</code></pre> <p class=””>WooCommerce PayPal Payments</p> <p class=””>Onboarded: ?<br>Shop country code: US<br>WooCommerce currency supported: ?<br>Advanced Card Processing available in country: ?<br>Pay Later messaging available in country: ?<br>Webhook status: ?<br>PayPal Vault enabled: –<br>ACDC Vault enabled: –<br>Logging enabled: ?<br>Reference Transactions: –<br>Used PayPal Checkout plugin: –<br>Tracking enabled: – Admin</p> <p class=””>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page</p> <p class=””>Disabled Features: minified-js<br>new-product-management-experience<br>product-variation-management<br>settings<br>async-product-editor-category-field</p> <p class=””>Daily Cron: ? Next scheduled: 2023-08-21 07:34:49 +00:00<br>Options: ?<br>Notes: 83<br>Onboarding: – Action Scheduler</p> <p class=””>Complete: 86<br>Oldest: 2023-07-21 07:40:46 +0000<br>Newest: 2023-08-21 07:06:03 +0000</p> <p class=””>Failed: 2<br>Oldest: 2023-07-08 07:49:31 +0000<br>Newest: 2023-08-16 07:02:33 +0000</p> <p class=””>Pending: 3<br>Oldest: 2023-08-21 13:50:42 +0000<br>Newest: 2023-08-25 21:14:03 +0000 Status report information</p> <p class=””>Generated at: 2023-08-21 07:31:54 +00:00<br>`

    2023-08-21T07:18:50+00:00 DEBUG POST https://api.paypal.com/v1/oauth2/token?grant_type=client_credentials Response Debug ID: 0bfcd2469dd05 Response: Array ( [code] => 200 [message] => OK ) 2023-08-21T07:18:50+00:00 DEBUG GET https://api.paypal.com/v1/customer/partners/K8SKZ36LQBWXJ/merchant-integrations/TCDZQRYZWPTPS Response Debug ID: f14bb1cdd16ad Response: Array ( [code] => 200 [message] => OK ) 2023-08-21T07:18:51+00:00 DEBUG GET https://api.paypal.com/v1/customer/partners/K8SKZ36LQBWXJ/merchant-integrations/TCDZQRYZWPTPS Response Debug ID: 5806894ea9173 Response: Array ( [code] => 200 [message] => OK ) 2023-08-21T07:18:52+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks Response Debug ID: 3bda1e2f67399 Response: Array ( [code] => 200 [message] => OK ) 2023-08-21T07:28:51+00:00 DEBUG POST https://api.paypal.com/v2/checkout/orders Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"32.00","breakdown":{"item_total":{"currency_code":"USD","value":"32.00"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"0.00"}}},"description":"","items":[{"name":"1 Month Subscription","unit_amount":{"currency_code":"USD","value":"32.00"},"quantity":1,"description":"","sku":"Monthly","category":"DIGITAL_GOODS"}],"payee":{"merchant_id":"TCDZQRYZWPTPS "},"custom_id":"pcp_customer_t_1263f9bd2a692db24c409792dd6c4e"}],"application_context":{"user_action":"PAY_NOW","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"en-US","brand_name":"Instruction Surplus","return_url":"https:\/\/mysqlclient.com\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/mysqlclient.com\/checkout\/"},"payer":{"email_address":"[email protected]","name":{"given_name":"Khubaib","surname":"Ahmed"},"address":{"country_code":"PK","address_line_1":"Model Town","admin_area_1":"PB","admin_area_2":"Bahawalpur","postal_code":"63100"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"03033287355"}}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}} Response Debug ID: 9a8281491673f Response: Array ( [code] => 400 [message] => Bad Request ) Response Body: {"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violates schema.","debug_id":"9a8281491673f","details":[{"field":"/purchase_units/@reference_id=='default'/payee/merchant_id","value":"TCDZQRYZWPTPS ","location":"body","issue":"INVALID_STRING_LENGTH","description":"The value of a field is either too short or too long."},{"field":"/purchase_units/@reference_id=='default'/payee/merchant_id","value":"TCDZQRYZWPTPS ","location":"body","issue":"INVALID_PARAMETER_SYNTAX","description":"The value of a field does not conform to the expected format."}],"links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX","rel":"information_link","encType":"application/json"},{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH","rel":"information_link","encType":"application/json"}]} 2023-08-21T07:28:51+00:00 WARNING Failed to create order. PayPal API response: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH 2023-08-21T07:28:51+00:00 ERROR Order creation failed: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH 2023-08-21T07:28:51+00:00 ERROR Order creation failed: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @khubaib927

    It looks like there is an empty space at the end of your Merchand id:

    "merchant_id":"TCDZQRYZWPTPS "

    I suggest navigating to the Connection tab, removing this space, saving the settings, and trying it again.
    If any problems persist, I advise disconnecting your account and reconnecting it using the onboarding wizard.

    Following the next update, this field will be validated to prevent issues like this from happening. I hope this helps!

    Kind regards,
    Niklas

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello,

    Since we have not received any response or further questions from you, we assume that everything is working according to your requirements. If you still have any questions for us, please open a new thread, as we will mark this one as resolved.

    Regards,
    Krystian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paypal is not working’ is closed to new replies.