The current approach creates a payment URL from the application configuration and some payment related values given by users in the form. The new approach requires the URL generator to be changed to communicate with the PayPal API in order to retrieve a payment URL. Please refer to the investigation documentation for more details.
Acceptance Criteria
- The PayPal URL generator uses the API to retrieve individual payment URLs.
Implementation Notes
- The new URL generator needs to make network requests; introducing a new class for communicating with PayPal's API (and a mock for unit testing).
- We might need to talk to different API endpoints for retrieving URLs for one-time or recurring payments.
- We will have two PayPal URL generators during implementation/transition. Name suggestion for the new one: PayPalApiUrlGenerator