setPayPalRequest

fun setPayPalRequest(payPalRequest: PayPalRequest)

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

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 request containing payment details and configuration