WC_REST_Paypal_Standard_Controller::get_update_shipping_error_response
Get the error response for the update shipping request.
Method of the class: WC_REST_Paypal_Standard_Controller{}
No Hooks.
Returns
Array. The error response.
Usage
// private - for code of main (parent) class only $result = $this->get_update_shipping_error_response( $issue );
- $issue(string)
- The issue with the shipping address.
Default: 'ADDRESS_ERROR'
WC_REST_Paypal_Standard_Controller::get_update_shipping_error_response() WC REST Paypal Standard Controller::get update shipping error response code WC 10.3.6
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 ),
),
);
}