Closed 3point14guy closed 7 years ago
One possible issue is that you cannot have a .then()
after a console.log
statement, you can only have a .then()
after a promise (in this case, your api call). Try removing your console.log
directly after the api.makeCharge
call.
Ok, I took it back out. Same result.
I only put that console log in there after we started having problems with that line...just to double check our progress.
We found the problem. There were no brackets on the model export.
I am getting stuck when calling my ajax request from my events file. I am not getting a specific error, the program just pauses in the debugger in the handleToken function where api.makeCharge(token) is called.
We've been looking at the line but still aren't sure what we are overlooking. As there is no error message, it is making trouble shooting challenging. The syntax seems to match other working calls.