system log paypal
Hello, I'm trying to set up a PayPal payment logging system on Discord using Discord.js v13. I've found some information in the documentation and have already set up the IPN URL on my PayPal account. However, I'm facing issues with the code I've implemented: you can find it here https://sourceb.in/E5APoFM3PQ. The main problem is that the bot doesn't seem to send notifications to the Discord channel, and additionally, it's not printing anything to the console using 'console.log'. I obtained the URL using ngrok with the command 'ngrok http 3000'
11 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!I don't see where your
Client
logs in anywhere
if you are logging in somewhere not shown, then you'd just want to log throughout to see what executes
that being said, this definitely doesn't look like it really needs a whole bot and could realistically be handled via webhookdo you mean the client.login?
yes
there is. I removed it so that I didn't put the token
if you are logging in somewhere not shown, then you'd just want to log throughout to see what executes
In what sense? I didn't understand it with the translator
If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreI put them console.log, but they don't pop up after receiving payment
then it sounds like the issue lies either with your express app or something with the paypal api
regardless, this is leaving the scope of this channel
The ipn url also works because if a payment comes in it alerts me on my phone
so I don't understand why it doesn't go