setPayPalRequest

Sets the PayPal Checkout request configuration and wires up the click handler.

PayPal Pay Later is only available with PayPal Checkout. The button sets PayPalCheckoutRequest.shouldOfferPayLater to true on the provided request.

When the button is clicked, it creates a payment auth request and either launches the PayPal flow or notifies the callback of any failures.

Parameters

payPalRequest

the PayPal Checkout request containing payment details and configuration