Wordpress WooCommerce REST API:网关不支持管理员更改订阅的付款方式
我正在使用扩展用户的订阅。我遇到的问题是,当我想更新过期时间时,我会出现以下错误:Wordpress WooCommerce REST API:网关不支持管理员更改订阅的付款方式,wordpress,woocommerce,woocommerce-rest-api,woocommerce-subscriptions,Wordpress,Woocommerce,Woocommerce Rest Api,Woocommerce Subscriptions,我正在使用扩展用户的订阅。我遇到的问题是,当我想更新过期时间时,我会出现以下错误: Gateway does not support admin changing the payment method on a Subscription 有人知道问题出在哪里吗 我正在使用以下代码更新订阅过期时间: return $this->guzzleClient->request('PUT', 'wp-json/wc/v1/subscriptions/'.$id, [
Gateway does not support admin changing the payment method on a Subscription
有人知道问题出在哪里吗
我正在使用以下代码更新订阅过期时间:
return $this->guzzleClient->request('PUT', 'wp-json/wc/v1/subscriptions/'.$id, [
'json' => [
'end_date' => $endDate->toDateTimeString(),
'status' => 'active',
]
]);