Provide implementation of a SectionSource to undertake a PayPal payment.
The SectionSource implementation will likely:
- have a single input with a parameter containing the line items for payment
- have three outputs (payment successful, payment cancelled, payment failure)
Wrapping the PayPal functionality in a SectionSource enables managing both the calls to PayPal and the redirects to PayPal necessary for taking payment. The SectionSource can be configured with the Merchant details as properties (potential even to use the Adaptive Accounts feature to setup a PayPal account within the Eclipse extension - but this would be a nice to have feature as easy enough to provide URL to PayPal for account setup, especially as things may change).
Using a SectionSource assumes that payment will be only taken in one place within the WoOF application (as outputs must link to results pages). This however is reasonable as likely better to contain this in one area of the application for consistency and control, rather than dispersing the payment throughout the application.