UNPKG

@malga-checkout/core

Version:
24 lines (23 loc) 853 B
import { Component, Host, h } from '@stencil/core'; import payment from '../../../../stores/payment'; export class MalgaPaymentsNuPayIframe { constructor() { this.handleCloseIframe = () => { payment.paymentUrl = ''; }; } render() { return (h(Host, { class: { 'malga-payments-nupay-iframe__container': true } }, h("div", { class: { 'malga-payments-nupay-iframe__modal': true } }, h("button", { onClick: this.handleCloseIframe }, h("checkout-icon", { icon: "close" })), h("iframe", { src: payment.paymentUrl, title: "Nubank", frameBorder: 0 })))); } static get is() { return "malga-payments-nupay-iframe"; } static get originalStyleUrls() { return { "$": ["malga-payments-nupay-iframe.scss"] }; } static get styleUrls() { return { "$": ["malga-payments-nupay-iframe.css"] }; } }