steamedian
Forum Replies Created
-
Forum: Plugins
In reply to: [Braintree for WooCommerce Payment Gateway] 422 error with PayPalThanks – I’ve reached out.
Unfortunately the update didn’t fix my issue – I still get the above long string error.
Cleared my browser cache, my WP Rocket cache, loaded the page in incognito – no luck.
The first thing I see is you’re using multiple Stripe plugins at the same time which isn’t recommended. It looks like you’re doing that to route payments to different accounts based on the customer’s location.
Yes – the plan is to serve payment methods depending on the user’s location. When launched, you won’t be able to see the multiple Stripe options.
The plugin removes existing notices when an error message is triggered so that might be what’s happening, we’ll do some testing.
I’m OK with the plugin removing an existing notice or error message, but the coupon form shouldn’t be amongst those removed.
But the card form is way below the coupon code, it’s doubtful anyone would get to the card section before entering the coupon info since the coupon is the first element on your page.
While this is true, there’s still a good possibility of it occurring. I’d like to ensure a smooth user experience by not having the coupon form stripped upon error.
Let me know if you need any additional details on this – happy to provide insights to help debug =)
Here is a log sample:
2022-01-19T08:58:28+00:00 INFO Smart PayPal Checkout For WooCommerce Version: 2.0.9 2022-01-19T08:58:28+00:00 INFO WooCommerce Version: 6.1.0 2022-01-19T08:58:28+00:00 INFO Test Mode: Yes 2022-01-19T08:58:28+00:00 INFO Action Name : Create order 2022-01-19T08:58:28+00:00 INFO Order Request : Array ( [intent] => CAPTURE [application_context] => Array ( [brand_name] => THINKWARE Store [locale] => en-US [landing_page] => NO_PREFERENCE [shipping_preference] => SET_PROVIDED_ADDRESS [user_action] => PAY_NOW [return_url] => https://www.google.com [cancel_url] => https://www.google.com ) [payment_method] => Array ( [payee_preferred] => UNRESTRICTED ) [purchase_units] => Array ( [0] => Array ( [reference_id] => wc_order_aLvW24UV9CTO3 [amount] => Array ( [currency_code] => CAD [value] => 302.39 [breakdown] => Array ( [item_total] => Array ( [currency_code] => CAD [value] => 269.99 ) [tax_total] => Array ( [currency_code] => CAD [value] => 32.4 ) ) ) [soft_descriptor] => THINKWARESTORE [invoice_id] => WC-PP-US85130 [custom_id] => {"order_id":105774,"order_key":"wc_order_QalYFfoc2Uv44"} [items] => Array ( [0] => Array ( [name] => F790 [sku] => TW-F790 [category] => PHYSICAL_GOODS [quantity] => 1 [unit_amount] => Array ( [currency_code] => CAD [value] => 269.99 ) ) ) [shipping] => Array ( [name] => Array ( [full_name] => John Doe ) [address] => Array ( [address_line_1] => 5555 Fake Street [admin_area_2] => Springfield [admin_area_1] => [postal_code] => 43215 [country_code] => OH ) ) ) ) [payer] => Array ( [email_address] => test@gmail.com [phone] => Array ( [phone_number] => Array ( [national_number] => 555-555-5555 ) ) [name] => Array ( [given_name] => John [surname] => Doe ) [address] => Array ( [address_line_1] => 5555 Fake Street [admin_area_2] => Springfield [admin_area_1] => [postal_code] => 43215 [country_code] => OH ) ) ) 2022-01-19T08:58:28+00:00 INFO Error Message : Array ( [name] => INVALID_REQUEST [message] => Request is not well-formed, syntactically incorrect, or violates schema. [debug_id] => 53edc1c225cb1 [details] => Array ( [0] => Array ( [field] => /purchase_units/@reference_id=='wc_order_aLvW24UV9CTO3'/amount/value [value] => 302.3899999999999863575794734060764312744140625 [location] => body [issue] => INVALID_STRING_LENGTH [description] => The value of a field is either too short or too long. ) [1] => Array ( [field] => /purchase_units/@reference_id=='wc_order_aLvW24UV9CTO3'/amount/breakdown/item_total/value [value] => 269.990000000000009094947017729282379150390625 [location] => body [issue] => INVALID_STRING_LENGTH [description] => The value of a field is either too short or too long. ) [2] => Array ( [field] => /purchase_units/@reference_id=='wc_order_aLvW24UV9CTO3'/items/0/unit_amount/value [value] => 269.990000000000009094947017729282379150390625 [location] => body [issue] => INVALID_STRING_LENGTH [description] => The value of a field is either too short or too long. ) [3] => Array ( [field] => /purchase_units/@reference_id=='wc_order_aLvW24UV9CTO3'/amount/breakdown/tax_total/value [value] => 32.39999999999999857891452847979962825775146484375 [location] => body [issue] => INVALID_STRING_LENGTH [description] => The value of a field is either too short or too long. ) ) [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH [rel] => information_link [encType] => application/json ) ) )
I do see the
[values]
having the correct initial numbers, but then a string of other numbers get added for some reason.Gah – wrong plugin – please disregard.
Great! Excited for the next release =)
Hi – I’ve rechecked this in troubleshooting mode with only the following plugins enabled:
- Country Based Restrictions for WooCommerce
- Customer Reviews for WooCommerce
- WooCommerce
- Uncode Core (required)
- Uncode WPBakery Page Builder (required)
I still get these issues:
Console: https://prntscr.com/263a5qt
Network tab: https://prntscr.com/263accp
Response Header (General): https://prntscr.com/263b0lr
Response header (Payload): https://prntscr.com/263ak78
Only disabling Country Based Restrictions will restore the Show More functionality.
For your reference, these are the “Lazy Load Reviews” settings I’m using on my Customer Reviews for WooCommerce plugin:
I have tested this on a separate install of WordPress with WooCommerce, Customer Reviews for WooCommerce, and Country Based Restrictions – and the exact same result happens.
I should note that also the Review Image Upload and clicking on the Star histograms also does not work.
I’m using Uncode.