Hey there, I am very new to Dwolla, I am baffled by this “undefined” error message I received on the frontend of Drop-in and am not sure how to debug this!
I also have a question of, what exactly am I suppose to put in this block of code, I can see that it’s suppose to be private and terms but I am not sure what that means and where to find that info…? → <dwolla-customer-create terms="https://docs.dwolla.com/"privacy="https://developers.dwolla.com/"> </dwolla-customer-create>
I found this answer in regards to the undefined issue.
Drop-in components are low-code components devs use in order to speed up the process of their launch. In other words nothing in terms of text should go in between that block of code. Here is a concept article on drop-ins for more information
Not sure I completely understand this question. Are you saying that the links to the “Terms of Services” is not working?
Also, if you could show me an example of how I am suppose to input my key and secret into the token or however I am suppose to input it to get the undefined error to stop showing
please
kmoreira
(Kelly M. - Developer Advocate @ Dwolla)
5
I would just copy + paste the drop-in component code as it was given. The TOS and Privacy were put in the code for legal reasons and should not be deleted.
So, I’ve gone through each step, and looked at all the resources you’ve given me. I have added my keys in the proper places, copied & pasted the integration code like in the repo given, watched the video and everything, yet, I am still getting the “undefined” message on my UI… I don’t know what I am doing wrong, is there any way I can get someone to look at the code with me to see what I am doing wrong?
Okay I noticed something odd, I fiddled with the script tags and noticed that when I add these tags from the copy & paste component code i receive this error:
dwolla-web.js:176 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "dwolla-error" has already been used with this registry at Object.<anonymous> (http://cdn.dwolla.com/v2/dwolla-web.js:176:64) at i (http://cdn.dwolla.com/v2/dwolla-web.js:1:110) at Module.<anonymous> (http://cdn.dwolla.com/v2/dwolla-web.js:182:110523) at i (http://cdn.dwolla.com/v2/dwolla-web.js:1:110) at http://cdn.dwolla.com/v2/dwolla-web.js:1:925 at http://cdn.dwolla.com/v2/dwolla-web.js:1:935
I am pretty sure I followed the instructions and did all my installations so I don’t understand whats happening here.
Hey there, I still never got my answer for these questions. Although I figured out my first issue with the scripting tags. I still have the issue of my Drop In UI showing the undefined error message…
kmoreira
(Kelly M. - Developer Advocate @ Dwolla)
9
Hi @akikoLPF – with the recent updates to drop-ins you’d need to use the following configuration for non-flow components. Notice that the token is now a JSON object that contains a key value pair for token - a generated single-use client-token.
This… this is exactly what my issue was… and I didn’t see it at all
I feel so dumb for not seeing that part at all. But also, will you guys change that in the Drop in repo example? Since it’s supposed to be a key/value pair?? Maybe I didn’t read the docs correctly but that was a little unclear to me it.
Also, for the example of a business verified customer, will that also be in 2 curly braces or will it stay in quotes → tokenUrl: "/tokenUrl"