Skip navigation
klinek3
Currently Being Moderated

receive data from PayPal

Jul 18, 2012 9:24 AM

Hello.

 

Assuming that I send data into PayPal (with the use of  "HTML Variables for PayPal Payments Standard"):

 

 

 

var variables:URLVariables = new URLVariables();

 

variables.cmd = "_xclick";

variables.business = "A8AJGG5PS2GKE";

variables.upload = "1";

variables.item_name = "some item";

variables.amount = "123";

variables.currency_code = "USD";

variables.lc = "pl";

variables.page_style = "PayPal";
variables.return = "my site";

variables.re = 2;

variables.no_note = 1;

variables.no_shipping = 1;

variables.notify_url = "some_mail@wp.com";

  

 

var request:URLRequest = new URLRequest("https://www.paypal.com/cgi-bin/webscr");

request.method = URLRequestMethod.POST;

request.data = variables;

navigateToURL(request, "_blank");

 

 

 

 

Does anyone managed to integrate PayPal IPN - "Instant Payment Notification"-

(https://www.paypal.com/ipn/) with AS3 in order to receive data from PayPal?

Could you please show any example of using it.

 
Replies
  • Currently Being Moderated
    Jul 18, 2012 9:40 AM   in reply to klinek3

    IPN is meant to run on the server, not on the client.

    Paypal is sending a message to your server, not to the visiting client

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2012 9:23 PM   in reply to klinek3

    I am not completzely following this: once paypal tells you that customer paid, you ask them whether he really paid?

     

    About swf reloading: of course a swf can call the server repeatedly, without reloading itself every time.

    This is just a thought experiment: visitor clicks on checkout button and will see paypal in a new tab (window). When the payment is settled, paypal redirects the visitor to another page of yours, still in the new tab. This page could cause your server to go to verify (or collect express checkout data) and then close the tab. At the next poll attempt your swf would see that the transaction has finished

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points