Interface: IOfferScreenService
Defined in: src/types/services.ts:69
Handles a miniapp's openOfferScreen call on the non-embedded runtime,
which has no built-in checkout popup of its own.
Remarks
Omit this from IRuntimeConfig to keep openOfferScreen rejecting
with a "not supported" error, same as before this service existed — it
is purely opt-in and does not change behavior for hosts that don't
configure it.
Methods
open()
open(
payload):Promise<{state:"dismissed"|"subscribed"; }>
Defined in: src/types/services.ts:76
Forward the miniapp's offer-screen request elsewhere (e.g. up to this
host's own real host, for a host that is itself embedded one level
further up). The resolved value becomes the closed promise the
miniapp's openOfferScreen() call receives.
Parameters
payload
IOpenOfferScreenPayload
Returns
Promise<{ state: "dismissed" | "subscribed"; }>