Giter Site home page Giter Site logo

Comments (8)

lilaconlee avatar lilaconlee commented on June 19, 2024

This is likely because you are using a locally built version of Drop-in JS, but the CSS included on your page is our hosted CSS from version 1.0.0-beta.6. If you’re building Drop-in yourself, you will need to include the built stylesheet with a braintree-dropin-stylesheet id on your page to overwrite the hosted version. This might look like:

<link rel="stylesheet" type="text/css" href="/path/to/custom/dropin.css" id="braintree-dropin-stylesheet">

This being said, while we try our best to keep master fully functional, we do not guarantee that will always be the case and recommend using an official release.

from braintree-web-drop-in.

juongithub avatar juongithub commented on June 19, 2024

Sorry, but your suggestion does not solve the problem...

from braintree-web-drop-in.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

@juongithub Are you getting any console errors?

from braintree-web-drop-in.

juongithub avatar juongithub commented on June 19, 2024

No error on the console:

1. <link rel="stylesheet" type="text/css" href="css/dropin.css" id="braintree-dropin-stylesheet"><script src="js/dropin.js"></script> => hangs
2. <script src="js/dropin.js"></script> => hangs
3. <link rel="stylesheet" type="text/css" href="css/dropin.css" id="braintree-dropin-stylesheet">
<script src="https://js.braintreegateway.com/web/dropin/1.0.0-beta.6/js/dropin.min.js"></script> => does not hang
4. <script src="https://js.braintreegateway.com/web/dropin/1.0.0-beta.6/js/dropin.min.js"></script> => does not hang
5. <link src="css/dropin.css" id="braintree-dropin-stylesheet"><script src="https://js.braintreegateway.com/web/dropin/1.0.0-beta.6/js/dropin.min.js"></script> => hangs without showing any throbber
6. <link src="https://assets.braintreegateway.com/web/dropin/1.0.0-beta.6/css/dropin.min.css" id="braintree-dropin-stylesheet">
<script src="https://js.braintreegateway.com/web/dropin/1.0.0-beta.6/js/dropin.min.js"></script>  => hangs without showing any throbber

from braintree-web-drop-in.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

@juongithub So far we have not been able to reproduce it. Can you provide us with a staging site or a Github repo that reproduces the issue?

from braintree-web-drop-in.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

Feel free to email [email protected] if you do not want to post information about a staging site here.

from braintree-web-drop-in.

juongithub avatar juongithub commented on June 19, 2024

I finally managed to solve this issue... Actually, the problem was caused by concomitant problems:

  1. the current version of CSS is not compatible with the unreleased dropin: the current dropin (i.e., https://js.braintreegateway.com/web/dropin/1.0.0-beta.6/js/dropin.min.js) loads correctly only when using the current CSS (i.e., https://assets.braintreegateway.com/web/dropin/1.0.0-beta.6/css/dropin.min.css).

  2. I had an old version of main.scss in my repository: this caused the failing of other combinations.

from braintree-web-drop-in.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

Correct. If you are using the master build, you must use the master css for it to work. Closing this.

from braintree-web-drop-in.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.