Title: PreparePayment failed
Last modified: October 8, 2019

---

# PreparePayment failed

 *  Resolved [DensitySK](https://wordpress.org/support/users/densitysk/)
 * (@densitysk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/preparepayment-failed/)
 * Hi,
 * I’ve found an error log caused by BARION plugin. Can you please check what could
   it be?
 * 10-07-2019 @ 14:38:15 – PreparePayment failed. Errors array: [{“ErrorCode”:”ModelValidationError”,”
   Title”:”Model Validation Error”,”Description”:”The field Region must be a string
   or array type with a minimum length of ‘2’.”},{“ErrorCode”:”ModelValidationError”,”
   Title”:”Model Validation Error”,”Description”:”The field Region must be a string
   or array type with a minimum length of ‘2’.”}]
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpreparepayment-failed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [szelpe](https://wordpress.org/support/users/szelpe/)
 * (@szelpe)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/preparepayment-failed/#post-12010477)
 * Hi,
 * What values do you allow your users for the billing state/county field?
 * Best,
    Peter
 *  Thread Starter [DensitySK](https://wordpress.org/support/users/densitysk/)
 * (@densitysk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/preparepayment-failed/#post-12010579)
 * HI,
 * I don’t use anything special. It is predefined by wordpress. When I use for example
   Slovakia, than I do not have any state/county option available, when I use for
   example Spain, I get automatically a drop down menu to choose from. For UK for
   example the county is optional and for Lithuania the State/County is mandatory.
 * There are many other default wordpress settings for this field.
 * Michal
 *  Plugin Author [szelpe](https://wordpress.org/support/users/szelpe/)
 * (@szelpe)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/preparepayment-failed/#post-12115707)
 * Please check version 3.1.0 the issue is hopefully fixed now.
 *  [timea626](https://wordpress.org/support/users/timea626/)
 * (@timea626)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/preparepayment-failed/#post-12378167)
 * Hello szelpe,
    Egyszercsak nem működött a barion fizetés. De csak számítógépen
   nem működik. Telefonon simán lehet fizetni. Abban az időben semmit nem állítottunk.
   először 16.-án hiba üzenet, de 19.-ig tudtak még fizeni. Kérlek segíts mi a hiba.
   Köszönöm
 * 01-29-2020 @ 05:13:50 – PreparePayment failed. Errors array: []
    01-29-2020 @
   05:14:06 – PreparePayment failed. Errors array: [] 01-29-2020 @ 05:14:24 – PreparePayment
   failed. Errors array: [] 01-29-2020 @ 05:14:47 – PreparePayment failed. Errors
   array: [] 01-29-2020 @ 05:19:21 – PreparePayment failed. Errors array: [] 01-
   29-2020 @ 05:49:08 – Payment failed. Payment details: {“PaymentId”:””,”PaymentRequestId”:””,”
   OrderNumber”:””,”POSId”:””,”POSName”:””,”POSOwnerEmail”:””,”Status”:””,”PaymentType”:””,”
   FundingSource”:””,”FundingInformation”:{“BankCard”:{“MaskedPan”:””,”BankCardType”:””,”
   ValidThruYear”:””,”ValidThruMonth”:””},”AuthorizationCode”:””},”AllowedFundingSources”:””,”
   GuestCheckout”:””,”CreatedAt”:””,”ValidUntil”:””,”CompletedAt”:””,”ReservedUntil”:””,”
   Total”:0,”Currency”:””,”Transactions”:[],”RecurrenceResult”:””,”SuggestedLocale”:””,”
   FraudRiskScore”:0,”RedirectUrl”:””,”CallbackUrl”:””,”Errors”:[],”RequestSuccessful”:
   false} 01-29-2020 @ 05:52:53 – Payment failed. Payment details: {“PaymentId”:””,”
   PaymentRequestId”:””,”OrderNumber”:””,”POSId”:””,”POSName”:””,”POSOwnerEmail”:””,”
   Status”:””,”PaymentType”:””,”FundingSource”:””,”FundingInformation”:{“BankCard”:{“
   MaskedPan”:””,”BankCardType”:””,”ValidThruYear”:””,”ValidThruMonth”:””},”AuthorizationCode”:””},”
   AllowedFundingSources”:””,”GuestCheckout”:””,”CreatedAt”:””,”ValidUntil”:””,”
   CompletedAt”:””,”ReservedUntil”:””,”Total”:0,”Currency”:””,”Transactions”:[],”
   RecurrenceResult”:””,”SuggestedLocale”:””,”FraudRiskScore”:0,”RedirectUrl”:””,”
   CallbackUrl”:””,”Errors”:[],”RequestSuccessful”:false} 01-29-2020 @ 05:54:59 –
   PreparePayment failed. Errors array: [] 01-29-2020 @ 06:01:40 – PreparePayment
   failed. Errors array: [] 01-29-2020 @ 06:04:42 – PreparePayment failed. Errors
   array: [] 01-29-2020 @ 06:20:45 – PreparePayment failed. Errors array: [] 01-
   29-2020 @ 08:22:48 – PreparePayment failed. Errors array: [] 01-29-2020 @ 08:
   22:59 – PreparePayment failed. Errors array: [] 01-29-2020 @ 08:34:55 – PreparePayment
   failed. Errors array: [] 01-29-2020 @ 11:55:27 – PreparePayment failed. Errors
   array: [] 01-29-2020 @ 12:50:53 – PreparePayment failed. Errors array: [] 01-
   29-2020 @ 16:28:37 – PreparePayment failed. Errors array: [] 01-29-2020 @ 16:
   33:58 – PreparePayment failed. Errors array: [] 01-29-2020 @ 16:46:18 – PreparePayment
   failed. Errors array: [] 01-29-2020 @ 17:00:50 – PreparePayment failed. Errors
   array: [] 01-29-2020 @ 17:01:02 – PreparePayment failed. Errors array: [] 01-
   29-2020 @ 17:01:18 – PreparePayment failed. Errors array: []

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

The topic ‘PreparePayment failed’ is closed to new replies.

 * ![](https://ps.w.org/pay-via-barion-for-woocommerce/assets/icon-256x256.png?rev
   =1416679)
 * [Barion Payment Gateway for WooCommerce](https://wordpress.org/plugins/pay-via-barion-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pay-via-barion-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pay-via-barion-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/pay-via-barion-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pay-via-barion-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pay-via-barion-for-woocommerce/reviews/)

 * 4 replies
 * 1 participant
 * Last reply from: [timea626](https://wordpress.org/support/users/timea626/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/preparepayment-failed/#post-12378167)
 * Status: resolved