Hi

I would like to integrate PayPal with my project in Django I have gone 
through a couple of tutorials but I still dont understand how to do it. I 
am new to Django but I have got a project am working on which charges per 
post on the website.

When a post is created it will be charged I want to add PayPal to the post 
button, so that when one pays the post is created automatically there after.

How can I do this.

Here is my template for create_post:

{% extends "feed/layout.html" %} {% load static %} {% load 
crispy_forms_tags %}
{% block searchform %}
<form
class="form-inline my-2 my-lg-0 ml-5"
action="{% url 'search_posts' %}"
method="get"
>
<input name="p" type="text" placeholder="Search posts.." />
<button class="btn btn-success my-2 my-sm-0 ml-4" type="submit">
Search
</button>
</form>
{% endblock searchform %} {% block content %}
<br /><br />
<div class="container">
<div class="row">
<div class="col-sm-9 col-md-7 col-lg-5 mx-auto">
<div class="card card-signin my-5">
<div class="card-body">
<h5 class="card-title text-center"><b>Post</b></h5>
<form class="form-signin" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<fieldset class="form-group">
<br />
{{ form|crispy }}
</fieldset>
<div class="form-group">
<button
class="btn btn-lg btn-primary btn-block text-uppercase"
type="submit"
>
Post</button
><br />
</div>
</form>
</div>
</div>
</div>
</div>
</div>

{% endblock content %} {% block jsfiles %}{% endblock jsfiles %}

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/46c1c5ea-d198-440f-8538-6d4955b237a8n%40googlegroups.com.

Reply via email to