verbb / snipcart

A Craft CMS plugin to integrate with Snipcart.
Other
21 stars 9 forks source link

Return an error rather than rates response in ShippingRateEvent #36

Closed tobystokes closed 2 years ago

tobystokes commented 3 years ago

In ShippingRateEvent events, is it possible to return an error instead of rates, as per https://docs.snipcart.com/v2/webhooks/shipping#error ? (fwiw, it's not as far as I can see. I'd like to do some validation on postcodes, and return an error if no rates because of this)

benface commented 3 years ago

Good idea! We’ll add that to the next release, hopefully before the end of the month.

benface commented 2 years ago

Added in v1.5.5. Thank you for requesting this!