doulianqi3870 2014-03-20 21:38
浏览 23
已采纳

如何在有人付款后运行php / html代码

Basically what I am trying to do is, make is to that if and only if someone goes through with the payment and pays it will write certain data to an SQL server. I understand i could just redirect them to a page that runs the code but the issue is they could just refresh infinitely. Any ideas?

  • 写回答

1条回答 默认 最新

  • duanlao6573 2014-03-20 21:43
    关注

    Check your Paypal documentation, but when I did this last, the interface had a place where you can put your receiving URL. There you can test for $_POST["RESPMSG"] == "Approved"

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?