Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting Up Paypal Express Checkout  RSS feed

Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • 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 -

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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!