Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                <h1><font color="blue">Digital Cash Register using MoneyButton</font><br></h1>
<hr>
<h2>To use this Digital Cash Register <font color="blue">NOW</FONT>:</h2>
<h3>
<ol>
  <li>Change the <font color="blue">data-to</font> field to the customer's moneybutton email address (currently set to 53912@moneybutton.com).</li>
  <li>Change the <font color="blue">data-amount</font>.
  </li>
  <li>Change the <font color="blue">data-currency</font>.</li>
  <li>Change the <font color="blue">data-op-return</font>.</li>
  <li>Swipe right.</li>
  </ol></h3>

Test it with 0.001 as a microtransaction :-D
<hr>

<div class="money-button"
     
  data-to='unicornlaunching@moneybutton.com'
  data-currency="CAD"
  data-button-id="paymentstring"
  data-button-data="{}"
     data-label=""
  data-type="buy"
  data-editable="true"
  data-on-payment="myCustomCallback" "payload"
  data-success-message = 'Convert this hex to string to reveal the missing pdf of the pizzle 687474703a2f2f7777772e70726f6a6563747768697465686f7273652e636f6d2f706466732f626f79642f7061747465726e732532306f66253230636f6e666c6963742e706466'
  data-op-return = '19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut  
Hey Stephen its attractfunding from twitter www.linkedin.com/in/jagdeoholdings tx generated by https://codepen.io/unicornlaunching/pen/JjJOYoV lets chop it up sometime  UTF-8  hello.html'
></div></h3>

<p id="consolelogdata"></p>

<h4>Your receipt will be found on chain as well as in the Console Log that you can access from the bottom left-hand corner of your screen.</h4>


<p id="payload"></p>


<script>
  function myCustomCallback (payment) {
  console.log('A payment has occurred!', payment); 
  document.getElementById("consolelogdata").innerHTML = "Your transaction has been approved. Thanks for shopping! We'll see you next time.";
}      
</script>



<script src="https://www.moneybutton.com/moneybutton.js"></script>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console