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
d.js toolkit
d.js toolkit5mo ago
- 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!
duck
duck5mo ago
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 webhook
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
do you mean the client.login?
duck
duck5mo ago
yes
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
there is. I removed it so that I didn't put the token
duck
duck5mo ago
if you are logging in somewhere not shown, then you'd just want to log throughout to see what executes
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
In what sense? I didn't understand it with the translator
d.js docs
d.js docs5mo ago
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 more
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
I put them console.log, but they don't pop up after receiving payment
duck
duck5mo ago
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
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
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
Want results from more Discord servers?
Add your server