【发布时间】:2018-10-26 23:09:24
【问题描述】:
在删除不需要的结帐字段时遇到问题。当客户通过 PayPal 付款时,没有问题。但是通过 Square,当我删除 billing_country, billing_address_1, billing_city, billing_state and billing_postcode 时显示以下错误:
Array
(
[0] => stdClass Object
(
[category] => INVALID_REQUEST_ERROR
[code] => INVALID_ENUM_VALUE
[detail] => “ is not a valid enum value for `billing_address.country`.
[field] => billing_address.country
)
)
Order status changed from Pending payment to Failed.
正如代码中所示,它需要 billing_address.country。所以我再次添加了该字段,当我尝试提交付款时,它显示以下错误:
Array
(
[0] => stdClass Object
(
[category] => INVALID_REQUEST_ERROR
[code] => MISSING_REQUIRED_PARAMETER
[detail] => Missing required parameter.
[field] => card_nonce
)
)
Order status changed from Pending payment to Failed.
我做了一些研究,显然它不再成为 Woocommerce 问题,而是成为主题问题。
已联系 Avada 的支持人员,但目前尚未得到他们的回复。
任何帮助将不胜感激。
【问题讨论】:
标签: php wordpress woocommerce square