Reputation: 13
I have a JQuery client that I want to be able to do a credit card transaction at PayPal using Express Checkout. The client presents a form to the user in Jquery which starts the transaction. Via AJAX, the client initiates the purchase to the server. I execute a SetExpressCheckout to PayPal sandbox. I get the response token, create a url with token and send back to the client.
I want the interaction with PayPal to occur on the client but, In order for that to happen the client has to open a window to the url for the user to interact with PayPal in. At the end of that interaction, the PayPal site redirects back to our server.
How can I get the PayPal API to work in an AJAX flow? How can the client get control back from the window it had to create to let the user interact with PayPal? Any ideas on how to handle PayPal flow in an AJAX application?
Upvotes: 1
Views: 3069
Reputation: 26056
The Express Checkout Digital Goods documentation will cover getting everything to work in a lightbox.
Upvotes: 1