Skip to content

Commit

Permalink
reusable customise button (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
rheber authored Aug 22, 2024
1 parent 750ced9 commit 1ab7436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spiff-connect/public/js/create-design-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const showSpiffTransaction = (product, currencyCode, wooProductId, redirectUrl,
});
window.location = htmlDecode(redirectUrl);
});
hostedExperience.on('quit', () => {}); // Need callback even if empty to set executing flag to false.
hostedExperience.execute();
}

Expand Down Expand Up @@ -97,6 +98,7 @@ const spiffLaunchCustomerPortal = (applicationKey, redirectUrl) => {
throw new Error('SpiffCommerce - Unknown Experience Result Type');
}
});
hostedExperience.on('quit', () => {}); // Need callback even if empty to set executing flag to false.
hostedExperience.execute({});
};

Expand Down

0 comments on commit 1ab7436

Please sign in to comment.