Paypal Transactions: How to receive and send funds with PayPal API and Django?
<p>i've been wondering to make payment system for my Django website, but with PayPal it seems to be easier for users, i've heard there is special API for python, so it can be used with Django.</p>

<hr>

<p>So for example, There is user account and my account, i make a receiver function, which listens to the payment gateway and whenever user sends funds to the email, it does a specific commands. Now i also make a sender function, so i can send funds to users, Now if API get's users email whenever they see HTTP Response of Paypal paying window, i want to make a function to send it to specific email.</p>

<p>Also another example with code:</p>

<pre><code>import random
from process import multiprocessing
Users = [ "..." ]
# PayPal:
import SomePayPalApi

def Receiver():
    SomePayPalApi.receive_to = SomePayPalApi.current_user.email
    while True:
        if SomePayPalApi.recieved:
            print SomePaypalApi.recieved.amount
            print SomePaypalApi.received.email
            print SomePaypalApi.Balance
            received = True              
            break

def Sender():
    SomePayPalApi.sendto = random.choice(Users)
    SomePayPalApi.send()


if __name__ == "__main__":
    p1 = Process(target=Receiver)
    p2 = Process(target=Sender)
    p1.start()
    p2.start()
</code></pre>

<p>I know it's not as easy as example, but i am looking for two general functions of PayPal, Paying and Receiving, How can i achieve this API on Django? Also if possible, How can i see amount of money received on my account and balance of my account? Can i use PayPal Api documentation for Django?
How can paying back be done in Django-Paypal Library?</p>