Documentation / @frak-labs/components / PostPurchaseProps
Type Alias: PostPurchaseProps
PostPurchaseProps = {
badgeText?:string;classname?:string;ctaText?:string;customerId?:string;merchantId?:string;orderId?:string;placement?:string;refereeText?:string;referrerText?:string;sharingUrl?:string;token?:string;variant?:"referrer"|"referee"; }
Defined in: sdk/components/src/components/PostPurchase/types.ts:5
Props for the PostPurchase component.
Extended by
Properties
badgeText?
optionalbadgeText?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:45
Label for the pill badge displayed above the message. When omitted (and no placement config provides one), the badge is hidden.
classname?
optionalclassname?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:36
CSS class names passed through to the root element (Light DOM).
ctaText?
optionalctaText?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:60
Override the CTA button text.
Use {REWARD} as placeholder for the reward amount.
customerId?
optionalcustomerId?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:11
Merchant customer ID for purchase tracking fallback.
All three tracking props (customerId, orderId, token) must be
present for tracking to fire.
merchantId?
optionalmerchantId?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:28
Override the merchant ID resolved from the SDK config.
orderId?
optionalorderId?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:15
Merchant order ID for purchase tracking fallback.
placement?
optionalplacement?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:32
Placement ID for backend-driven CSS customization.
refereeText?
optionalrefereeText?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:55
Override the message shown to referees.
Use {REWARD} as placeholder for the reward amount.
referrerText?
optionalreferrerText?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:50
Override the message shown to referrers.
Use {REWARD} as placeholder for the reward amount.
sharingUrl?
optionalsharingUrl?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:24
Base URL to share. Falls back to the merchant domain returned by the backend when omitted.
token?
optionaltoken?:string
Defined in: sdk/components/src/components/PostPurchase/types.ts:19
Checkout token for purchase tracking fallback.
variant?
optionalvariant?:"referrer"|"referee"
Defined in: sdk/components/src/components/PostPurchase/types.ts:40
Force a display variant instead of relying on the backend evaluation.