CreatePaymentMethodPayPal

public enum CreatePaymentMethodPayPal
Register PayPal as a payment method

By registering you allow the user to use PayPal as a payment method.

The payment method ID is optional when posting data. If you provide a valid Billing Agreement ID, the payment method is created directly. Alternatively you can provide all three redirect URLs in which case the backend will create the Billing Agreement for you. Creating a Billing Agreement is a 2-step process, thus the payment method will only be created after the user approved it on the PayPal website. The approval URL in the response will point you to the correct page. After the user takes action the user is redirected to one of the three redirect URLs provided by you.