django-oscar-paypal RedirectView change as_payment_method to True

115 views
Skip to first unread message

asi...@gmail.com

unread,
Jun 17, 2013, 5:19:18 AM6/17/13
to django...@googlegroups.com
I don't know what as_payment_method stand for but looking into the code I see that I want it to be True :)
since I have all information PayPal needs (including shipping address and shipping method).

Do I need to extend this view to change as_payment_method to True?

another question regarding PayPal:
My custom checkout is as follows:

1 - user selects one product and redirect to checkout process (no basket)
2 - user fills shipping option and redirect to shipping method
3 - user selects shipping method and redirect to payment
4 - currently I only support PayPal and know I want the user to pay for this product 
5 - user should be redirected to confirmation page
6 - user accepts the payment and redirected to thank-you page


any help would be appreciated.

thanks

David Winterbottom

unread,
Jun 17, 2013, 5:50:06 AM6/17/13
to django-oscar
The as_payment_method attribute is used to distinguish if the site has already collected a shipping address for the customer.  If not (ie you are redirecting straight from the basket page) then this attribute defaults to False.  If you are redirecting from within your checkout process and you have already collected a shipping address (as in your example flow), then set the attribute to True in your urls.py.

See, for example:


--
https://github.com/tangentlabs/django-oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
David Winterbottom
Head of Programming

Tangent Labs
84-86 Great Portland Street
London W1W 7NR
England, UK

asi...@gmail.com

unread,
Jun 17, 2013, 6:19:56 AM6/17/13
to django...@googlegroups.com, david.win...@tangentlabs.co.uk
thanks, got it to work.
Reply all
Reply to author
Forward
0 new messages