If a merchant wants to integrate with the PayPal module, these are the steps they would take.
PayPalPayments
at the top of their filePaymentsConfig
object using their client Id and return UrlPayPalClient
object using that configurationPayPalClient
to an object that should receive messages from the SDK, and handle the events (approval, cancellation, errors, and shipping updates)orderId
(which would have been retrieved by the merchant outside the SDK)returnUrl
to reduce the number of parameters needed when constructing a PayPalClient