我正在寻求有关嵌入式结帐代码的帮助。我希望将iframe
设置为自动高度,以供人们在移动设备上使用时使用。
任何帮助都会很棒。小部件的代码如下。
代码
<div id="eventbrite-widget-container-38673272800"></div>
<script="https://www.eventbrite.com/static/widgets/eb_widgets.js">. </script>
<script type="text/javascript">
var exampleCallback = function() {
console.log('Order complete!');
};
window.EBWidgets.createWidget({
// Required
widgetType: 'checkout',
eventId: '38673272800',
iframeContainerId: 'eventbrite-widget-container-38673272800',
// Optional
iframeContainerHeight: 500, // Widget height in pixels. Defaults to a minimum of 425px if not provided
onOrderComplete: exampleCallback // Method called when an order has successfully completed
});
</script>