@automattic/wpcom-checkout
Version:
Functions and components used by WordPress.com checkout.
14 lines • 491 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPartnerCoupon = getPartnerCoupon;
/**
* Get Partner Coupon
*
* This method uses some of the same detection logic as partnerCouponRedirects in
* the Connection controller, and future improvements should probably unify the two
* code bases to "generic utility functions".
*/
function getPartnerCoupon({ coupon }) {
return coupon.startsWith('IONOS_');
}
//# sourceMappingURL=partner-coupon.js.map