WC_REST_Paypal_Standard_Controller::get_update_shipping_error_response
Get the error response for the update shipping request.
Метод класса: WC_REST_Paypal_Standard_Controller{}
Хуков нет.
Возвращает
array. The error response.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_update_shipping_error_response( $issue );
- $issue(строка)
- The issue with the shipping address.
По умолчанию:'ADDRESS_ERROR'
Код WC_REST_Paypal_Standard_Controller::get_update_shipping_error_response() WC REST Paypal Standard Controller::get update shipping error response WC 11.3.0
private function get_update_shipping_error_response( $issue = 'ADDRESS_ERROR' ) {
// See https://developer.paypal.com/docs/checkout/standard/customize/shipping-module/#merchant-decline-response.
return array(
'name' => 'UNPROCESSABLE_ENTITY',
'details' => array(
array( 'issue' => $issue ),
),
);
}