Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="es">
<head>
    <meta name="viewport" content="width=device-width, user-scalable=no">
    <meta charset="utf8"/>
    <title>PoC de Integración</title>
    <!-- Payment Wall hoja de estilos -->
    <link href="https://sandbox.sipay.es/pwall_app/css/app.css" rel=stylesheet>
    <!-- Payment Wall JavaScript para gestión de eventos -->
    <script src="https://sandbox.sipay.es/pwall_sdk/pwall_sdk.bundle.js"></script>
</head>
<body>
<div id="app">
<!-- Payment Wall será renderizado dentro de esta etiqueta HTML -->
</div>


<!-- Payment Wall renderizador, se pueden customizar los parámetros data-*
Parámetros como importe, moneda solo sirven para el efecto visual. Tendrás que repetir
el valor de dichos parámetros cuando realices peticiones a nuestro API desde su backend. -->
<script data-url="https://enksdcjzlgfcu6f.m.pipedream.net"
    data-amount="0"
    data-currency="EUR"
    data-placeholder="#app"
 src="https://sandbox.sipay.es/pwall_app/js/app.js">
</script>

    <!-- Payment Wall evento personalizado para renderizar el payment wall -->
    <script>
        // Manage redirect with notify.result
        const urlParams = new URLSearchParams(window.location.search);
        const error = urlParams.get('error');
        const method = urlParams.get('method');
        const request_id = urlParams.get('request_id');
        if (request_id) {
            window.PaymentWall.listenTo(document, "payment_wall_setup", function () {
                var placeholder = document.getElementById('app');
                window.PaymentWall.listenTo(placeholder, 'payment_wall_drawn', function () {
                    window.pwall.dispatch('process_redirect', {
                        detail: {
                            "error": error || null,
                            "method": method,
                            "request_id": request_id
                        }
                    });
                });
            });
        } 
        window.PaymentWall.start()
    </script>
</body>
</html>


              
            
!

CSS

              
                #app {
  width: 100vw;
}

#app header {
  display: none;
}
              
            
!

JS

              
                
              
            
!
999px

Console