Skip to content

Commit 220c53e

Browse files
committed
feat(@hanzo/commerce): extend client with checkout, coupons, referrals, affiliates
Add comprehensive commerce client methods: - validateCoupon / applyCoupon (pre-checkout validation) - createCheckoutSession (hosted checkout, returns checkoutUrl) - tokenizeCard (S2S card tokenization without external SDK) - referrals: createReferralProgram, getReferralLink, trackReferral, getReferralStats - affiliates: registerAffiliate, getAffiliateStats, getAffiliateCommissions - Backwards-compatible: commerceUrl still works, baseUrl preferred - Default baseUrl: https://api.hanzo.ai - Request timeout support (timeoutMs, default 15s)
1 parent 6320e5c commit 220c53e

File tree

3 files changed

+482
-63
lines changed

3 files changed

+482
-63
lines changed

0 commit comments

Comments
 (0)