Title: payment gateway error
Last modified: August 7, 2021

---

# payment gateway error

 *  Resolved [sinan1](https://wordpress.org/support/users/sinan1/)
 * (@sinan1)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/payment-gateway-error-4/)
 * when I enable stripe payment gateway I am getting this error. Also, I was advised
   by stripe it is an error from woocommerce, not stripe.
 * “Invalid value for paymentRequest(): country should be one of the following strings:
   AE, AT, AU, BE, BG, BR, CA, CH, CI, CR, CY, CZ, DE, DK, DO, EE, ES, FI, FR, GB,
   GI, GR, GT, HK, HU, ID, IE, IN, IT, JP, LI, LT, LU, LV, MT, MX, MY, NL, NO, NZ,
   PE, PH, PL, PT, RO, SE, SG, SI, SK, SN, TH, TT, US, UY. You specified: AF.”
 * Please advise what has to be done
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpayment-gateway-error-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/payment-gateway-error-4/#post-14746849)
 * Hi [@sinan1](https://wordpress.org/support/users/sinan1/),
 * Upon checking the error it looks like you have set as a shop location the country
   with code AF which stands for Afghanistan. Can you confirm this is the correct
   shop location?
 * If needed, you can change your shop’s address country and state, where you are
   based as a seller, by heading to **WooCommerce > Settings > General**.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/payment-gateway-error-4/#post-14770061)
 * Hi there,
 * Just a heads up, we’ve not heard back from you in a while so I’ll go ahead and
   mark this thread as resolved. Hopefully, you were able to find a solution to 
   this issue.
 * If you have further questions, please feel free to open a new topic.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘payment gateway error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/payment-gateway-error-4/#post-14770061)
 * Status: resolved