Comments (8)
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.
Sorry, but your suggestion does not solve the problem...
from braintree-web-drop-in.
@juongithub Are you getting any console errors?
from braintree-web-drop-in.
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.
@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.
Feel free to email [email protected] if you do not want to post information about a staging site here.
from braintree-web-drop-in.
I finally managed to solve this issue... Actually, the problem was caused by concomitant problems:
-
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).
-
I had an old version of main.scss in my repository: this caused the failing of other combinations.
from braintree-web-drop-in.
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)
- Financing Options HOT 1
- Full CSP support HOT 5
- Capture errors when there is an Apple Pay error. HOT 1
- updateConfiguration cannot update credit card properties HOT 3
- > "https://api-m.paypal.com" HOT 1
- hoISeoI373mTmmqZxBUwNIeIGfEB4JQH5kNWfVB6tWxeiIUkTkw0EnHdwBJWRBOy HOT 1
- [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. HOT 2
- Apple Pay svg size iPhone 15 series / macOS Sonoma HOT 1
- updated CSP configuration HOT 3
- DropUI Fails to render with ApplePay on newer iPhones HOT 3
- Apple Pay UI goes disappears in a second HOT 1
- data-collector.min.js doesn't loaded HOT 3
- Display new card input form automatically when drop-in is initialized with customerId HOT 1
- Email from Braintree re Updates to required 3D Secure data fields HOT 2
- Initial render events randomly triggered HOT 1
- AuthenticationInsight seem not supported and impossible HOT 1
- Device Data is never returned HOT 2
- threeDSecure - Always Errors HOT 1
- REACT : instance.updateConfiguration() not updating the instance when using dropinInstance as a MutableRefObject
- CardholerName prefill HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braintree-web-drop-in.