【问题标题】:Wordpress Avada Theme - Square Payment Issues removing Woocommerce checkout fieldsWordpress Avada 主题 - 删除 Woocommerce 结帐字段的 Square 付款问题
【发布时间】: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


    【解决方案1】:

    这项工作对我来说:断开 square,在同一浏览器中登录 square,在 wordpress 中连接 square,并确保有至少 1 美元的测试产品。工作。

    【讨论】:

    • 感谢您的帮助,但对我没有用。你也在用 avada 主题吗?
    • 是的,我有 avada 主题,这就是我的解决方案
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-09-04
    • 1970-01-01
    • 2018-08-25
    • 2015-04-22
    • 1970-01-01
    • 2022-11-29
    • 1970-01-01
    相关资源
    最近更新 更多