Triggered when a coupon is applied.
function onCouponApplied(handler: function): void;
handler(event: CouponAppliedEnvelope): void | Promise<void>
import { coupons } from "@wix/marketing";
coupons.onCouponApplied((event) => {
// handle your event here
});