![]() |
Coding Help Please (Not Poo Related)
OK, so someone I know, who isn't a member of GFY has asked me to post the following question for them. This is copy/pasted verbatim from the email they sent me:
Quote:
Appricuiate if you can help them - Like I said, NOT a GFY member, but someone I know. Spankz :upsidedow |
Has he tried "Honey Bucket for dummies" tutorial?
|
He needs a programmer to do this on the back end(server side) and sanitize the POST content.
:2 cents: |
Quote:
|
Quote:
If you want to do it in JavaScript then Node will be the best way to go. There are hundreds of resources form learning Node but you can check out one of many online Node courses. |
Why not keep it simple and just use a service like https://hookdoo.com/ to receive and parse the webhook calls, then use your own script to process it. Pipedream would be another free alternative.
|
This just in!
Quote:
|
Quote:
If he's looking to read POST data in JavaScript client-side, it can't be done. That's why he can't find examples. https://stackoverflow.com/questions/...ing-javascript Learn Node |
Quote:
regarding the 2nd issue of the secure page after payment, that is usually called an "approval url" and you'd either set it at your vendor/biller, or redirect your own script after payment success if you built your own checkout. any deeper explanation would need much more details. # |
https://i.imgur.com/kp6TSdv.jpg
Good Morning, I need some more help and hopefully you can post this for me. Sadly, I'm having a really shitty day with this bitcoin server. I'm trying to test out the API on my BTC pay server with postman but I can't seem to authenticate with my API key Here's a screen capture : https://i.imgur.com/kp6TSdv.jpg |
He can email me if he needs directions
|
I'm looking for a guide that will help me set up node.js on a local machine.
I want to be able to post data to it from my website, have it run an API query with data from said post call, parse the data and load an HTML page depending on the results of the API query |
Install NWJS, it's node with an embedded browser app: https://nwjs.io/
Download, install, copy and paste your javascript code into the index file, save it and go launch the NWJS app... and you're pretty much done setting up your local node server. Edit: I just noticed you want to be able to send the request the other way around, right? So, http request goes from your public website server -> to your client PC at home, which will return it back to the webserver and serves it to the visitor? Your public website would become a reversed proxy pointing to your local machine... You would probably need a static IP address and open up a port in your router, if you want to have your VPS or webserver make a direct connection with your PC at home, as you would either need to open up a port to expose your local HTTP server at home. You probably want this for the webhook to return the status of the payment, I assume? Wouldn't it be easier to just run a tiny script on your local pc, that simply sends the latest "data" every 30 seconds or whatever, to a public url on your hosting/VPS? Basically a cron job. If you do need a quick and dirty way to expose a port on your local machine, LocalXpose is a working and out of the box solution by allowing you to route it through their servers to your home PC. Easy, one click setup basically: https://localxpose.io/ |
All times are GMT -7. The time now is 04:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc