Cretezy / braintree-web-drop-in-react

React component for Braintree Web Drop-In (v3)
MIT License
71 stars 23 forks source link

Doesn't seem to work with latest Braintree versions #279

Open osseonews opened 3 years ago

osseonews commented 3 years ago

We are using version 1.2.1 of this package. When we installed it about a month ago, it installed as dependencies braintree-web 3.71.0 and braintree-web-drop-in 1.26.0" and it worked fine. However, when installing currently, the package installs braintree-web: "version": "3.74.0" and braintree-web-drop-in": "version": "1.27.0". The package no longer works with those versions. All you get it is the "Loading" and the actual drop in form never displays. How do we prevent installation of those versions? Or is it possible to update this package so it works with the current braintree versions? I'm not sure what the issue is exactly, but for some reason it's incompatible.

BTW, when we locally run: "npm install braintree-web-drop-in@1.26.0" - we can override the installation of 1.27.0 and this package works fine. However, we actually have to build the packages again, this package installs braintree-web-drop-in": "version": "1.27.0" and everything breaks.

Thanks.

miguelBarreiro85 commented 3 years ago

I'm with the same issue

osseonews commented 3 years ago

The way to solve this issue is to just make sure your main package.json locks in use of braintree-web-drop-in 1.26.0. That way when you install this package, it won't use 1.27.0. For some reason it doesn't work with 1.27.0. The drop in will never load. Not sure why.

miguelBarreiro85 commented 3 years ago

Ok thanks, i will check it out... I have cloned this repo and by strange this sounds when i console.log(this.instance) after componentDidMount it renders the Dropin.... i will try to dig some more on this..

McRipper commented 2 years ago

@miguelBarreiro85 had some news about it?

pencilcheck commented 1 year ago

this repo looks dead, still work?

shamar-morrison commented 2 months ago

this repo looks dead, still work?

bump. I am wondering the same thing