BrainTree dropin ui

BrainTree docs say to use this example but when I click “Purchase” nothing happens

Checkout

Re: [Rails] BrainTree dropin ui
fugee,

Did you set up your Braintree (sandbox) account?

Ralph

Saturday, May 5, 2018, 10:43:18 AM, you wrote:

BrainTree docs say to use this example but when I click “Purchase” nothing happens

<meta charset="UTF-8">

<title>Checkout</title>
<form id="payment-form" action="/" method="post">

  <script src="https://js.braintreegateway.com/web/dropin/1.10.0/js/dropin.min.js"

   data-braintree-dropin-authorization="CLIENT_AUTHORIZATION"

   data-paypal.flow="checkout"

   data-paypal.amount="10.00"

   data-paypal.currency="USD"

   data-paypal-credit.flow="vault"

  ></script>

  <input type="submit" value="Purchase"></input>

</form>

Also, did you serve the surrounding page under SSL (HTTPS)? Nothing JavaScript is going to deal well with mixed-protocol URLs.

Walter

I was relying on getting a credentials error from Sandbox then I was gonna proceed with my credentials