Hi all,
I have spent loads of time looking at the paypal documentation and website examples that all the code is just blending into a mass of squiggles and dots...
The website I am building has a registration form which is submitted via an ajax call to a php script. The script stores the information in a db and returns a success message which is displayed inside the form.
What I want to do then is open the paypal in-context cart automatically to allow payment of the registration fee (site is for a charity fundraising event).
I can use the code from the paypal documentation to handle the cart, but how do I get it to trigger?
Also, I am assuming the cart will return a status. Would I then need a new ajax call to send this to the database and update the original form?
I don't do a lot with js and this is the first time I have used ajax. Please be gentle![]()



Reply With Quote
in the 'success' part of the of the ajax call which saves the form, but I cannot get the in-context checkout to work.
