Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

PHP Can I download to a user computer with a webhook from a third party using a PHP receiver script?

JosiahMaybe

Platinum Coder
Okay, so I got payments, multiple times of trying to email out like my products, and all that secure. This uses webhooks. This process is like my site to paddle.com to like my receiver script with a webhook. From that receiver can I download to user's computer?

To be clear, like my site sends request to paddle.com which upon success sends a notification (webhook) to like my receiver script. I may email things out but email is limited in what it can send out per time, 150 emails per hour per account. I can make more accounts but like to what point can I be certain if payment success then email success? Like my solution is download option, but can it be done?

Is there some redirect or something I could do to make this work? Could I even set webhooks to be sent to PHP on like my origin page? I can set destination for webhooks. X E.
 
Okay, so I got payments, multiple times of trying to email out like my products, and all that secure. This uses webhooks. This process is like my site to paddle.com to like my receiver script with a webhook. From that receiver can I download to user's computer?

To be clear, like my site sends request to paddle.com which upon success sends a notification (webhook) to like my receiver script. I may email things out but email is limited in what it can send out per time, 150 emails per hour per account. I can make more accounts but like to what point can I be certain if payment success then email success? Like my solution is download option, but can it be done?

Is there some redirect or something I could do to make this work? Could I even set webhooks to be sent to PHP on like my origin page? I can set destination for webhooks. X E.
You can do this a few ways:
1) if the payment is successful add the download functionality right on the success so it "automatically downloads"
2) if payment is successful, redirect user to another page where they get to click on download button
3) if payment is successful, email user the link to download page
 
I am trying for most secure possible so a downloads page just does not work as It could have that page looked at and how to download at will found out. That emailing thing is like I already have, just email out products. All I get is webhooks from paddle.com so how am I supposed to ""automatically download""? I understand I can probably and am unsure if like normal download procudures apply or what.

Would I need redirect or what? It would be called from a paddle.com IP address so it is like their computer calling this. I think there may be a redirect option, but under no circumstances should ability to let other people just get without paying be allowed. I am unsure if PHP scripts can be viewed in browsers.

X E.
 
I am trying for most secure possible so a downloads page just does not work as It could have that page looked at and how to download at will found out. That emailing thing is like I already have, just email out products. All I get is webhooks from paddle.com so how am I supposed to ""automatically download""? I understand I can probably and am unsure if like normal download procudures apply or what.

Would I need redirect or what? It would be called from a paddle.com IP address so it is like their computer calling this. I think there may be a redirect option, but under no circumstances should ability to let other people just get without paying be allowed. I am unsure if PHP scripts can be viewed in browsers.

X E.
Like I pointed out in your other post, php is a server-side language. only way to get access to the code, is with direct access to the server.
 
Yes PHP is server side. That means that it does not run on same computer as client side. So how am I supposed to download to correct computer if it is coming from paddle.com?
X E.
Create an api endpoint that gets the data from paddle.com, if data retrieval success, and payment success, allow for download. As far as how to download file from php


otherwise you can add this with js
 
I know how to download, I just was unsure it would be correct computer because it originates from paddle.com, not user's computer. I guess it would download to users' computer, correct?
 
All I am seeing extra is that mod thing on how to download with this like extra. Since I am not making PHP known and am not writing anything extra I may not need that second thing. I don't like Stack Overflow's licensing too.
X E.
 
Creative Commons, look at bottom if you want their licensing. I do not like that licensing and delibarately do not use Stack Overflow's stuff. I do not like that must be under same license as theirs if using any part of theirs. Thanks for answers.
X E.
 
Creative Commons, look at bottom if you want their licensing. I do not like that licensing and delibarately do not use Stack Overflow's stuff. I do not like that must be under same license as theirs if using any part of theirs. Thanks for answers.
X E.
lol are you talking about the "no AI answers" bit?
 
If you have ever read Creative Commons you would know anything that uses things licensed under Creative Commons must legally also be under same Creative Commons and as such basically open source. Personally I think if codeforum.org has that, bye, how is anyone not making a completely open source project supposed to benefit from that?
Rhetorical question.
Should we move this to chat?
X E.
 
If you have ever read Creative Commons you would know anything that uses things licensed under Creative Commons must legally also be under same Creative Commons and as such basically open source. Personally I think if codeforum.org has that, bye, how is anyone not making a completely open source project supposed to benefit from that?
Rhetorical question.
Should we move this to chat?
X E.
Not sure how one equates to the other, so please enlighten me here bud
 

Under each license you are free to distribute and remix all code provided you distribute it under same license. Same license means all things that use code with it can be freely distributed and remixed. That basically makes all that uses this code open source nearly and that is used on all like their stuff. Basically it is a long chain of open source stuff with credit given to previous makers.

I see no such licensing at codeforum.org. Just copyright of code and stuff you made. That is why I prefer codeforum.org.
X E.
 
Back
Top Bottom