• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting Up Paypal Express Checkout

 
Ranch Hand
Posts: 70
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been trying to do this all in PHP and not getting very far (I'm new to php and haven't really used Javascript at all yet) so I wonder if anyone can give me any pointers?

I have this php cart -



And this is the code Paypal give me to use -



What I need to do is get $toPay into where it says '0.01' in the Javascript.  How do I do this?

Thanks for any help.  Please let me know if I need to supply more info.

It's set up here for now - http://androidandy.uk/shop.php

But that's the php/old way, redirecting away to Paypal.  The new express checkout keeps you on your own site, which seems better, as once I know the payment is taken, I can update my database.
reply
    Bookmark Topic Watch Topic
  • New Topic