![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 | |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,491
|
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 ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Apr 2015
Location: Stjørdal, Norge
Posts: 796
|
Has he tried "Honey Bucket for dummies" tutorial?
__________________
-= Krampus Productions =- ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,227
|
He needs a programmer to do this on the back end(server side) and sanitize the POST content.
![]()
__________________
Make Money with Porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: Jun 2012
Posts: 274
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Mar 2022
Location: In the moment
Posts: 95
|
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Jan 2021
Posts: 103
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,491
|
This just in!
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Industry Role:
Join Date: Mar 2022
Location: In the moment
Posts: 95
|
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
bored
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
|
yea most webhooks are sending either JSON or XML code to you, which are just other writeup languages like HTML. on your recipient end, you need to receive and parse that message. so you need PHP to convert the message and do something with the data (like store it).
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. #
__________________
# ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,491
|
![]() 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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Mar 2022
Location: In the moment
Posts: 95
|
He can email me if he needs directions
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,491
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Sep 2013
Location: The Netherlands
Posts: 805
|
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/ |
![]() |
![]() ![]() ![]() ![]() ![]() |