
Classes | |
| class | HTTPStatusResponse |
| class | OKResponse |
Public Member Functions | |
| WOActionResults | cancelAction () |
| WOActionResults | ipnAction () |
| PayPalAction (WORequest aRequest) | |
| WOActionResults | returnAction () |
Static Public Attributes | |
| static final String | paypalCgi = "/cgi-bin/webscr" |
| static final String | paypalSite = "www.paypal.com" |
| static final String | sandboxSite = "www.sandbox.paypal.com" |
| PayPalAction | ( | WORequest | aRequest | ) |
Constructor
| aRequest | WORequest |
| WOActionResults cancelAction | ( | ) |
Provides a default method to return the page to which PayPal will send users after a cancelled transaction.
First it checks to see if there's a System property assigned to tell it what page to return. If it finds one it returns that page by calling pageWithName(property value).
If it doesn't find one, it returns the very simple default component, CancelledPayPalTransaction.
| WOActionResults ipnAction | ( | ) |
Processor for Instant Payment Notifications
The class takes the request and constructs a response that it then echoes back to PayPal, with the additional value "&cmd=_notify-validate.
PayPal will then send a one word code for the status of the transaction. This method then parses for that word and sends the appropriate notification for the result, with the original WORequest object from PayPal attached to it (as the notification's object).
The notification gets picked up by the PayPalNotificationListenerClass, which then hands it to the delegate class you assigned to handle the notification. Pretty simple.
| WOActionResults returnAction | ( | ) |
Provides a default method to return the page to which PayPal will send users after a successful transaction.
First it checks to see if there's a System property assigned to tell it what page to return. If it finds one, it returns that page by calling pageWithName(property value).
If it doesn't find one, it returns the very simple default component, SuccessfulPayPalTransaction.
The cgi portion of PayPal's url for doing Instant Payment Notification verifications
final String paypalSite = "www.paypal.com" [static] |
Simply PayPal's url, sans the protocol
final String sandboxSite = "www.sandbox.paypal.com" [static] |
PayPal developer sandbox URL
1.5.8