无法向 paypal 发送价值
PayPal IPN 直接向您的脚本发送通知。由于通知来自 PayPal - 不是下订单的客户 - 我的登录会话不会退出此上下文。因此,会话中不存在我的所有登录数据。我需要我的登录会话值来更新我的数据库与 paypal ipn 值。我应该如何维护我的登录会话,如果我设置浏览器会话或其他方式可以将登录主密钥发送到 paypal。
PayPal IPN sends a notification to your script directly. Since the notification is coming from PayPal - NOT the customer that placed the order - My Login session doesn't exits this context .Therefore,all my login data doesn't exist in the session.I need my login session values to update my DB with paypal ipn value.How should i mentain my login session should i set browser session or other way can i send login primary key to paypal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Paypal IPN 允许您在表单中传递
自定义
字段(您可以将会话 ID 放入其中),然后 IPN 会将其传递给您的脚本。 (或者为什么不直接传递用户 ID 或请求本身中的任何键)?The Paypal IPN allows you to pass a
custom
field in your form (you could put your session ID in that) and then then IPN will pass that along to your script. (Or why not just pass the userid or whatever key in the request itself)?