Re: 2 paypal forms in a view with django-paypal

2010-12-06 Thread Alexandre González
I'm using johnboxall django-paypal, I solved this problem creating a view
that only shows the form, and after it load this forms with 3 ajax
petitions.

Anyway, thanks for your help :)

On Tue, Nov 30, 2010 at 14:31, Venkatraman S  wrote:

> 2010/11/30 Alexandre González 
>
>> It always show two forms but with the last one (five_form) but the
>> update() works perfectly.
>>
>
> Try dcramer or johnboxall version of django-paypal - dcramer's is no more
> maintained i guess.
>
> On a different note : were you able to add multiple items to the dict?
> Also, i hear Encrypted form is better than PayPalPaymentsForm.
>
> -V-
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
@agonzalezro 
Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt
and/or .pptx

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: 2 paypal forms in a view with django-paypal

2010-11-30 Thread Venkatraman S
 2010/11/30 Alexandre González 

> It always show two forms but with the last one (five_form) but the update()
> works perfectly.
>

Try dcramer or johnboxall version of django-paypal - dcramer's is no more
maintained i guess.

On a different note : were you able to add multiple items to the dict?
Also, i hear Encrypted form is better than PayPalPaymentsForm.

-V-

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



2 paypal forms in a view with django-paypal

2010-11-30 Thread Alexandre González
Hi! I like to show 2 different paypal forms using django-paypal, this is my
code:

def payments(request):
paypal_dict = {
'amount': None,
'business': settings.PAYPAL_RECEIVER_EMAIL,
'item_name': None,
'notify_url': settings.PAYPAL_NOTIFY,
'return_url': settings.PAYPAL_RETURN,
'cancel_return': settings.PAYPAL_CANCEL,
}
paypal_dict.update({'amount': '1', 'item_name': 'Anual suscription')
suscription_form = PayPalPaymentsForm(initial=paypal_dict)

paypal_dict.update({'amount': '0.01', 'item_name': 'Buy 5 coins')
five_form = PayPalPaymentsForm(initial=paypal_dict)

return render_to_response("forms/paypal.html", {'five_form': five_form,
'suscription_form': suscription_form})

It always show two forms but with the last one
(five_form) but the update() works perfectly.

-- 
@agonzalezro 
Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt
and/or .pptx

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.