On Tuesday 28 February 2017 21:13:39 [email protected] wrote:
> hello! I am trying to update my database after paypal has received 
> the payment from customer. The problem is that I don't really know to
> do it. This is what I am doing now

This code is all irrelevant. This is the important URL:
> <input id="id_return_url"
> name="return" type="hidden" value="http://www.example.com/thank-you";>

Wouldn't name it "thank-you" either. That would be the final page, but the flow 
is:

- Submit to PayPal
- At above return_url, receive data from PayPal:
        - Check for success / failure
        - If success:
                set paid to True, redirect to /thank-you
        - else:
                display error and cart

-- 
Melvyn Sopacua

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3452662.H3dCPjKHmD%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to