For me not getting gray hair at 21 years of age, that’s an advantage, I can’t seem to work with Braintree, and I already have PayPal, so hey might as well work with it.
Every business and product is different so you’ll have to weigh out what makes most sense to you. Two of the more obvious benefits are registration and ease of integration. Braintree has a verification process which can block businesses in their roadmap. Additionally, integrating with PayPal is a simple and easy process that should be apparent for beginners as well.
Hi @copilot, Thank you for this plugin!
I had it working fine but suddenly it stopped…
The button is not visible even when it has all the details and Im getting an error (see a part of it below).
Did anything change on Paypal’s end that might require updating the plugin?
Thanks!
Jonathan
Bubble’s recent update to their plugin developer tools may have caused this. We’ll be pushing an update (among others) later this evening. It’s also possible that the DOM isn’t quite ready at the time we push, which we’ll also take a look at.
@copilot a friendly heads-up here.
Looks like you might be accessing the DOM directly.
As Emmanuel adviced me yesterday when I had some of my plugins broken too, when we write a plugin, we shouldn’t expect the div to be already in the DOM, so we should access it from instance.canvas, not by using document.getElementById(ID).
I haven’t seen your code yet but from the error message your user posted above it looks like whatever element you were getting the innerHTML of was not ready in the DOM.
Bubble recently did the some performance improvements that may have changed the timing of when elements are ready.
So if you haven’t already figured things out, as I mentioned earlier, if you added any div element to the canvas in your initialize function, then access it from instance.canvas in your update function instead of trying to get it directly from the document DOM object.