Django的条纹paymants和eldarion阿贾克斯订阅JSON响应 [英] Django-stripe-paymants and eldarion-ajax subscribe JSON response

查看:177
本文介绍了Django的条纹paymants和eldarion阿贾克斯订阅JSON响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与Django的条纹paymants和它的工作除了认购表格完成后处理JSON响应。他们的支付处理和网络挂钩好看。

I am working with Django-stripe-paymants and it's working except for handling the JSON response after the subscribe form is completed. They payment is processed and the web hooks look good.

但它只是显示了JSON是浏览器窗口。

But it is just showing the JSON is browser window.

例如:

{"html": "\n\n\n<div class=\"subscribe-form\">\n    <h2>Purchase a Subscription.....

我想有一些小的Java脚本的缺失,但我坚持。

I imagine there is something small missing in the Java script, but am stuck.

我已经通过文件几次阅读和搜索周围的解决方案。常见的原因,这是不包括引导-ajax.js。自从上次相关的问题可以找我,引导阿贾克斯已更名eldarion阿贾克斯。

I have read through the documentation a few times and searched around for a solution. The common cause for this was not including bootstrap-ajax.js. Since the last relevant issue I can find, bootstrap-ajax has been renamed eldarion-ajax.

我的基本模板包括:

<script src="{% static 'js/vendor/checkout.js' %}"></script>
<script src="{% static 'js/vendor/jquery-1.11.0.min.js' %}"></script>
<script src="{% static 'js/vendor/eldarion-ajax.min.js' %}"></script>

任何指针将AP preciated。 JavaScript是不是我的强项。

Any pointers will be appreciated. Javascript is not my strong point..

谢谢!

推荐答案

我知道它看起来就像你想出的答案,你自己的问题,但是我和我的Django的条纹支付一个非常类似的问题+ eldarion -ajax应用程序,我设法让jQuery的v1.11.0工作确定。请检查<一href="http://stackoverflow.com/questions/23494604/django-ajax-json-response-appears-as-raw-text-in-browser">here我的回答。

I realise it looks like you've figured out an answer to your own question, however I had a very similar issue with my Django-stripe-payments + eldarion-ajax app and I managed to get jQuery v1.11.0 to work ok. Please check here for my answer.

这篇关于Django的条纹paymants和eldarion阿贾克斯订阅JSON响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆