• Hello,

    We noted some logs as following, and please note that we replaced some customer info and our site domain name.

    We already noted that the customer placed order and redirect to the order-recieved page on Google GA4, but we did not recieved the order, and there is even no failed order email.

    Could you please let us know why this happened, and failed to place order?

    2023-12-18T00:33:02+00:00 DEBUG POST https://api-m.paypal.com/v2/checkout/orders
    
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"21.20","breakdown":{"item_total":{"currency_code":"USD","value":"19.27"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"1.93"}}},"description":"","items":[{"name":"Macbook Case Sleeve For Air 13 M1 Pro Retina 13.3 11 14 16 15 - Purple, M1 A2337 A2338","unit_amount":{"currency_code":"USD","value":"19.27"},"quantity":1,"description":"","sku":"product_SKU-030","category":"PHYSICAL_GOODS","url":"https:\/\/oursite.com\/shop\/briefcases\/sleeve-case-for-macbook-air-13-m1-pro-retina-13-3-11-14-16-15\/?attribute_pa_color=purple&attribute_pa_model=m1-a2337-a2338","image_url":"https:\/\/cdn.oursite.com\/wp-content\/uploads\/2022\/02\/11084442\/sleeve-case-for-macbook-air-13-m1-pro-retina-133-11-14-16-15-4.jpg","cart_item_key":"309be8a380cb885a6924a91e2df81935"}],"shipping":{"name":{"full_name":"Colleen Minor"},"address":{"country_code":"US","address_line_1":"Customer_address","admin_area_1":"TX","admin_area_2":"Houston","postal_code":"77089"}},"custom_id":"pcp_customer_t_5ba0ca3af9860aafd2cb8c249433e5","soft_descriptor":"oursite"}],"application_context":{"user_action":"PAY_NOW","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"BILLING","locale":"en-US","brand_name":"oursite.com","return_url":"https:\/\/oursite.com\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/oursite.com\/checkout\/","payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED"}},"payer":{"email_address":"[email protected]","name":{"given_name":"Colleen","surname":"Minor"},"address":{"country_code":"US","address_line_1":"Customer_address","admin_area_1":"TX","admin_area_2":"Houston","postal_code":"77089"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"customer_phone_no"}}}}
    
    Response Debug ID: 5c6ca6103a55c
    
    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":"5c6ca6103a55c","details":[{"field":"/payer/email_address","value":"[email protected]","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"}]}
    
    2023-12-18T00:33:02+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
    
    2023-12-18T00:33:02+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
    
    2023-12-18T00:33:02+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
    
    2023-12-18T00:33:57+00:00 DEBUG POST https://api-m.paypal.com/v2/checkout/orders
    
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"21.20","breakdown":{"item_total":{"currency_code":"USD","value":"19.27"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"1.93"}}},"description":"","items":[{"name":"Macbook Case Sleeve For Air 13 M1 Pro Retina 13.3 11 14 16 15 - Purple, M1 A2337 A2338","unit_amount":{"currency_code":"USD","value":"19.27"},"quantity":1,"description":"","sku":"product_SKU-030","category":"PHYSICAL_GOODS","url":"https:\/\/oursite.com\/shop\/briefcases\/sleeve-case-for-macbook-air-13-m1-pro-retina-13-3-11-14-16-15\/?attribute_pa_color=purple&attribute_pa_model=m1-a2337-a2338","image_url":"https:\/\/cdn.oursite.com\/wp-content\/uploads\/2022\/02\/11084442\/sleeve-case-for-macbook-air-13-m1-pro-retina-133-11-14-16-15-4.jpg","cart_item_key":"309be8a380cb885a6924a91e2df81935"}],"shipping":{"name":{"full_name":"Colleen Minor"},"address":{"country_code":"US","address_line_1":"Customer_address","admin_area_1":"TX","admin_area_2":"Houston","postal_code":"77089"}},"custom_id":"pcp_customer_t_5ba0ca3af9860aafd2cb8c249433e5","soft_descriptor":"oursite"}],"application_context":{"user_action":"PAY_NOW","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"BILLING","locale":"en-US","brand_name":"oursite.com","return_url":"https:\/\/oursite.com\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/oursite.com\/checkout\/","payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED"}},"payer":{"email_address":"[email protected]","name":{"given_name":"Colleen","surname":"Minor"},"address":{"country_code":"US","address_line_1":"Customer_address","admin_area_1":"TX","admin_area_2":"Houston","postal_code":"77089"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"customer_phone_no"}}}}
    
    Response Debug ID: 7c0d7c9db5806
    
    Response: Array
    
    (
    
    ? ? [code] => 400
    
    ? ? [message] => Bad Request
Viewing 1 replies (of 1 total)
  • Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @alexliii

    This error typically indicates that the format or structure of the request sent to the PayPal API does not meet the expected standards or requirements.

    One potential cause for this issue, could be related to the manual login process. If the client ID or secret key used during the manual login were incorrect or not properly configured, it would result in such errors.

    Please let us know if the problem persist after logging via onboarding wizard.

    Please feel free to reach out if you need any further assistance or if there are any additional details you can provide that might help in resolving this issue.

    Kind Regards,

    Krystian

Viewing 1 replies (of 1 total)
  • The topic ‘code 400, message Bad Request’ is closed to new replies.