开发者

What's a good way to determine where POST information was sent from

I am writing a Instant Pa开发者_JAVA百科yment Notifications script for paypal in PHP. There are going to be other payment processors down the road, but they're going to be handled by the same function.

So I need to find a good way to detect where the post information came from.

Anyone have any experience handling paypal responses that could offer a suggestion?


The difference processors will send their IPNs in different formats. So for example, PayPal will send a txn_type field, whereas a different provider will send some different field.

(I don't want to tell you you're doing it wrong, but... rather than trying to sniff out which provider an IPN is coming from, why not just give different providers different IPN URLs? Then you'll know for sure, without needing to work it out.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜