Skip to content

Commit

Permalink
Turns out Stripe flow fails silently in sidepanel. Might be doable wi…
Browse files Browse the repository at this point in the history
…th an embedded widget but for now just warn and suggest tab/window
  • Loading branch information
tconfrey committed Jan 16, 2025
1 parent 2b332e6 commit 1dc10d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/subscriptionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ var BTId;

async function handlePurchase(product) {
// handle monthly or annual subscribe. Load Stripe code, load and init FB, check for existing sub or purchase, then pass to Stripe to complete txn


if (configManager.getProp('BTManagerHome') == "SIDEPANEL") {
alert("Unfortunately purchasing is not currently supported in the side panel. \n\nPlease set the Topic Manager Location to Window or Tab to make a purchase.");
return;
}
// First Check if Stripe script is already loaded
try {
if (!window.Stripe) {
Expand Down

0 comments on commit 1dc10d7

Please sign in to comment.