Can I (& should i) use PHP in django?

时间:2023-01-15 09:27:24

I wrote a cart application for an event registration in django, and im up to the last part that I cant seems to figure out. I've gotten as far as submitting the cart to paypal for payment but now its time for the IPN and i dont know how to do that. I realized that there are php ipn scripts online that i can just download but cant find that for django. Django-paypal app is confusing the hell out of me so I was wondering. Is it possible for me to just create a django template called ipn.php and have the php paypal ipn script live in that? When paypal goes to it, it will do all of the validation stuff and interact with my database ( same db django app is using , updating paid status). Is this possible? is there another way around this? anyway to make it easier? Thanks.

我在django中为一个事件注册写了一个购物车应用程序,我直到我似乎无法弄清楚的最后一部分。我已经把购物车提交给PayPal进行付款,但现在是IPN的时间,我不知道该怎么做。我意识到在线有php ipn脚本,我可以下载,但无法找到django。 Django-paypal应用程序让我感到困惑,所以我很想知道。我是否可以创建一个名为ipn.php的django模板,并拥有php paypal ipn脚本?当paypal进入它时,它将执行所有验证工作并与我的数据库交互(相同的db django应用程序正在使用,更新付费状态)。这可能吗?还有另一种方法吗?无论如何要让它更容易?谢谢。

1 个解决方案

#1


0  

django-paypal comes with an IPN callback url prewritten for you. Step 4 in the readme shows you how to hook it up. If in doubt, read the manual.

django-paypal附带一个为您预先写好的IPN回调网址。自述文件中的第4步显示了如何连接它。如有疑问,请阅读手册。

#1


0  

django-paypal comes with an IPN callback url prewritten for you. Step 4 in the readme shows you how to hook it up. If in doubt, read the manual.

django-paypal附带一个为您预先写好的IPN回调网址。自述文件中的第4步显示了如何连接它。如有疑问,请阅读手册。