Andrew,

I use Paypal encrypted buttons from their web payments standard
product together with IPN on www.tenthrow.com to purchase and enable
digital download.  i have not looked closely at
http://web2pyslices.com/main/slices/take_slice/9 but this is probably
a nicely documented outline of how paypal with IPN works.

That said, i just saw paypal demo a host of cool stuff last week at
their developer conference.  you should check out the adaptive
payments API, and the inline payment processing flow - this presents
the user with the paypal checkout flow in a dialog without them
leaving your site.  while i have not integrated it yet, i think it
will build a superior user experience over the old buttons and
redirecting to paypal for checkout.

hopefully that helps some.  if you want more specifics about how i did
my integration with IPN let me know.

thanks,

christian

On Oct 31, 2:54 pm, Andrew Evans <randra...@gmail.com> wrote:
> Hello! I am working on a project that requires a Digital Download where the
> download is provided after the payment has been sent to paypal.
>
> The documentation on Paypal in web2py is very confusing and I don't know if
> its for the purpose of what I need. I am generating a paypal/button for
> express checkout. and I am trying to think of ways I can then redirect the
> user to a page where they can download the product
>
> Normally this would be simpler but I have multiple people selling there
> different products and with that multiple products
>
> here is my paypal code
>
> <br /><br />
> <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr";
> method="post">
> <input type="hidden" name="cmd" value="_xclick">
> <input type="hidden" name="business"
> value="{{=db.auth_user[row.userinfo].email}}">
> <input type="hidden" name="currency_code"
> value="{{=db.currency_paypal[row.currency].current}}">
> <input type="hidden" name="item_name" value="{{=row.product_name}}">
> <input type="hidden" name="no_shipping" value="1">
> <input type="hidden" name="custom" value="{{=row.id}}">
> <input type="hidden" name="amount" value="{{='%.2f'%float(row.price)}}">
> <input type="hidden" name="return" value="" />
> <input type="hidden" name="cancel_return" value=""/>
> <input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_SM.gif";
> border="0" name="submit" alt="Make payments with PayPal - it's fast, free
> and secure!">
> </form>
>
> So my question is: How can I use paypal for a digital download using the
> express checkout button? Do I need to create an IPN class and add notify_url
> to my paypal code if so can some one provide an example
>
> *cheers
>
> and ty
>
> Andrew

Reply via email to