amavadia Posted February 6, 2012 Share Posted February 6, 2012 Hi all, I am looking to integrate Paypal Express checkout on my site and have been working with the API today. I have got the code working in a static state with predefined payment amounts but I am having trouble making this dynamic. When you first submit a request to set up an express checkout you send the payment amount along with it. The paypal server then makes the checkout and the user is redirected to the paypal site to login and authenticate. From here they click to be redirected back to my site where I have a pay button which when clicked submits the final request to confirm the payment. I am sure there must be a simple solution to this because so many people use paypal already but when you submit the final confirmation request, you have to send the payment amount again, but because the page redirects onto the paypal page inbetween, I can't use a session variable to store the amount. How have other people overcome this? Thanks Quote Link to comment Share on other sites More sharing options...
amavadia Posted February 7, 2012 Author Share Posted February 7, 2012 I guess one way would be to start building up a record in the DB when the setexpresscheckout is called and save the amount in there but I was hoping to avoid having to create temp records and only save the information once the transaction was complete? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.