@whop/checkout
Version:
Embed Whop checkout on any website
1 lines • 1.34 kB
JavaScript
;function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var n=document.currentScript,i=n===null||n===void 0?void 0:n.src;var t;(typeof window==="undefined"?"undefined":e(window))<"u"&&i&&((t=window.wco)!==null&&t!==void 0?t:window.wco=function(){var e=document.createElement("script");return e.src=i.replace(/loader\.js$/,"index.js"),e.async=!0,e.defer=!0,document.head.appendChild(e),{injected:!0,listening:!1,frames:new Map,identifiedFrames:new Map,availableCurrencies:new Map,submit:function(e,n){throw new Error("Whop Embedded checkout script not initialized")},getEmail:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3;throw new Error("Whop Embedded checkout script not initialized")},setEmail:function(e,n){throw new Error("Whop Embedded checkout script not initialized")},getAddress:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3;throw new Error("Whop Embedded checkout script not initialized")},setAddress:function(e,n){throw new Error("Whop Embedded checkout script not initialized")},setDisplayCurrency:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2e3;throw new Error("Whop Embedded checkout script not initialized")},getAvailableCurrencies:function(e){return null}}}());