Django-stripe-paymants and eldarion-ajax subscribe JSON response

Deadly 提交于 2019-12-19 10:12:26

问题


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.

But it is just showing the JSON is browser window.

ie:

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

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

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.

My base template includes:

<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>

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

Thanks!


回答1:


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.



来源:https://stackoverflow.com/questions/21774731/django-stripe-paymants-and-eldarion-ajax-subscribe-json-response

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!