Skip to main content

useApplyDiscountCodeChange
hook

Returns a function to add or remove discount codes.

Caution

See security considerations if your extension retrieves discount codes through a network call.

Anchor to useApplyDiscountCodeChange
useApplyDiscountCodeChange()

(change: ) => Promise<>
Was this section helpful?