BrainTree dropin ui

12 views
Skip to first unread message

fugee ohu

unread,
May 5, 2018, 12:43:18 PM5/5/18
to Ruby on Rails: Talk
BrainTree docs say to use this example but when I click "Purchase" nothing happens

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Checkout</title> </head> <body> <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> </body> </html>

Ralph Shnelvar

unread,
May 5, 2018, 12:59:45 PM5/5/18
to fugee ohu, rubyonra...@googlegroups.com
fugee,

Did you set up your Braintree (sandbox) account?

Ralph
<!DOCTYPE html>
<html lang="en">
 <head>
   <meta charset="UTF-8">
"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>
 </body>
</html>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
rubyonrails-ta...@googlegroups.com.
To post to this group, send email to
rubyonra...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/cbea5761-6cc4-48b6-be04-3dcc03b1cc3a%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.




Ralph

Walter Lee Davis

unread,
May 5, 2018, 2:22:13 PM5/5/18
to rubyonra...@googlegroups.com
Also, did you serve the surrounding page under SSL (HTTPS)? Nothing JavaScript is going to deal well with mixed-protocol URLs.

Walter
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/714336979.20180505105917%40dos32.com.

fugee ohu

unread,
May 6, 2018, 4:19:31 AM5/6/18
to Ruby on Rails: Talk
I was relying on getting a credentials error from Sandbox then I was gonna proceed with my credentials 
Reply all
Reply to author
Forward
0 new messages