UNPKG

@cocreate/stripe

Version:

A simple stripe component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.

35 lines (30 loc) 1.08 kB
<!DOCTYPE html> <html lang="en"> <head> <title>Stripe</title> <link rel="manifest" href="/manifest.webmanifest" /> </head> <body> <h1>balanceTransactions.retrieve</h1> <form> <input stripe.balancetransactions.retrieve.balance_transaction value="txn_1032HU2eZvKYlo2CEPtcnUvl" /> <button actions="balanceTransactions.retrieve" stripe> getBalanceBtn in console </button> <div template> <span>{{currency}}: </span><span>{{amount}}</span> </div> </form> <br /> <h1>balanceTransactions.list</h1> <button actions="balanceTransactions.list">Request</button> <div template> <span>{{data.currency}}: </span><span>{{data.amount}}</span> </div> <!--CoCreateJS--> <script src="https://CoCreate.app/dist/CoCreate.js"></script> <!--<script src="../dist/CoCreate-stripe.js"></script>--> </body> </html>