onShippingOptionsChange()
Callback function triggered when the user changes the shipping method in PayPal Checkout.
Parameters
Parameter | Type | Required | Description |
Object | No | Raw data returned by PayPal. |
data
Parameter | Type | Required | Description |
orderId | string | No | Current order. |
selectedShippingOption | Object | No | Details of the shipping method selected by the user. |
Object | No | Error messages that PayPal can display on the Checkout UI. |
errors
Error code | Message |
METHOD_UNAVAILABLE | "The shipping method you chose is unavailable..." (The shipping method you selected is unavailable.) |
STORE_UNAVAILABLE | "Part of your order isn't available at this store." (Some items in your order are not available at this store.) |