我使用下面提到的代码在我的 Shopify 网站中嵌入了日历。我的商业模式是用户需要预订 1 个会话然后付款。但是,如果我使用日历,用户可以免费预订会话。预订详情将在付款前发送给用户。因此,我需要手动检查付款是否已完成,以确认或拒绝会话。我正在寻找用户可以预订的解决方案,但会话只能在付款后确认(仅应发送详细信息)。任何建议将不胜感激。
网站:disashharma.ca 网址:https ://www.disshasharma.ca/products/happiness-and- purpose-coaching-per-session
<iframe id="myIframe" width="100%" height="1050px" scrolling="no" frameborder="0">
</iframe>
<script>
let myIframe = document.getElementById("myIframe");
let url_string = "https://calendly.com/disha_sharma/session";
let calendlyBackgroundColor = "background_color=e9f4f5";
let calendlyHidePageDetails = "hide_landing_page_details=1"; // code not working
let calendlyHideBanner = "hide_gdpr_banner=1"; // code not working
let adsURL = url_string+"?"+calendlyHideBanner+"&"+calendlyHidePageDetails+"&"+calendlyBackgroundColor; // code not working
myIframe.src = adsURL;
</script>
<style type="text/css">
@media only screen and (min-width: 1050px) {
iframe#myIframe{
height:850px;
}
</style>