woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 47 forks source link

TypeError: Cannot read properties of undefined (reading 'country_code') (2171) #1205

Open DylVadim opened 1 year ago

DylVadim commented 1 year ago

Describe the Bug

Send alert in Checkout: Something went wrong. Please try again or choose another payment source. Error in Console: TypeError: Cannot read properties of undefined (reading 'country_code')

To Reproduce

  1. Go to Checkout
  2. Click on button "PayPal"
  3. See error

Screenshots

image

Expected Behavior

Redirect to the PayPal platform for making a payment

Actual Behavior

Send alert in Checkout: Something went wrong. Please try again or choose another payment source. Error in Console: TypeError: Cannot read properties of undefined (reading 'country_code')

Environment

Additional Details

System status ``` TypeError: Cannot read properties of undefined (reading 'country_code') ```
DylVadim commented 1 year ago

In the WooCommerce settings, you need to set the following parameters: image

DylVadim commented 1 year ago

for some reason, the above described problem persists for some users: 332133243_734756291519664_6695303533807517111_n (2) 332133243_734756291519664_6695303533807517111_n 333739700_1918370338508930_919817929481323996_n (2) 333739700_1918370338508930_919817929481323996_n

kmligue commented 1 year ago

im having similar error. were you able to fix it?

DylVadim commented 1 year ago

No, i could not fix the error, the client decided to switch back to the Shopify platform.