PayPalClient

open class PayPalClient

Used to tokenize PayPal accounts. For more information see the documentation

Constructors

Link copied to clipboard
constructor(@NonNull activity: FragmentActivity, @NonNull braintreeClient: BraintreeClient)
Create a new instance of PayPalClient from within an Activity using a BraintreeClient.
constructor(@NonNull fragment: Fragment, @NonNull braintreeClient: BraintreeClient)
Create a new instance of PayPalClient from within a Fragment using a BraintreeClient.
constructor(@NonNull braintreeClient: BraintreeClient)
Create a new instance of PayPalClient using a BraintreeClient.

Functions

Link copied to clipboard
Make sure to call this method after parseBrowserSwitchResult parses a BrowserSwitchResult successfully to prevent multiple invocations of browser switch event handling logic.
Link copied to clipboard
Use this method with the manual browser switch integration pattern.
Link copied to clipboard
After calling tokenizePayPalAccount, call this method in your Activity or Fragment's onResume() method to see if a response was provided through deep linking.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setListener(listener: PayPalListener)
Add a PayPalListener to your client to receive results or errors from the PayPal flow.
Link copied to clipboard
open fun tokenizePayPalAccount(@NonNull activity: FragmentActivity, @NonNull payPalRequest: PayPalRequest)
Tokenize a PayPal account for vault or checkout.