Great read. I have one question.
<head> <title>Braintree Demo</title> <meta name=”viewport” content=”width=device-width, initial-scale=1.0"> <! — Braintree → <script src=”https://js.braintreegateway.com/v2/braintree.js”></script> </head>
How can you be certain that the library is going to be loaded before you reference any of the braintree features? I loaded it from within a template and ran into problems.