如何解决如何手动退款WooCommerce REST API
嗨,我在WooCommerce中使用REST API退款时遇到以下错误
Payeezy Gateway Credit Card Void Failed: HTTP 400 Bad Request: Bad Request (28) - Invalid Authorization Number
但是我只想这样做refund manually
。我还将refunded_payment
设置为0
来使付款错误,但每次仍会引发相同的错误。我没有关于退款API的任何信息。
这是我用来创建退款的代码
Array
(
[line_items] => Array
(
[0] => Array
(
[item_id] => 168
[name] => 99 BRAND BANANAS-750
[product_id] => 7687
[quantity] => 1
[subtotal] => 19.99
[subtotal_tax] => 0.00
[total] => 19.99
[total_tax] => 0.00
[sku] => 080660620053
[price] => 19.99
)
[1] => Array
(
[item_id] => 169
[name] => # 3L FRANZIA PINOT GRIGIO
[product_id] => 5218
[quantity] => 1
[subtotal] => 20.99
[subtotal_tax] => 0.00
[total] => 20.99
[total_tax] => 0.00
[sku] =>
[price] => 20.99
)
)
[amount] => 40.98
[refunded_payment] => 0
)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。