VenmoClient

constructor(context: Context, authorization: String, appLinkReturnUrl: Uri, deepLinkFallbackUrlScheme: String? = null)

Initializes a new VenmoClient instance

Parameters

context

an Android Context

authorization

a Tokenization Key or Client Token used to authenticate

appLinkReturnUrl

A Uri containing the Android App Link website associated with your application to be used to return to your app from the PayPal

deepLinkFallbackUrlScheme

A return url scheme that will be used as a deep link fallback when returning to your app via App Link is not available (buyer unchecks the "Open supported links" setting).

The value must be a bare URL scheme, not a full URL. It must:

  • Contain only alphanumeric characters, hyphens (-), and periods (.)

  • Not include ://

  • Not include a path, query string, or fragment (no /, ?, or #)

  • Match the scheme declared in your AndroidManifest.xml

Valid examples: "com.merchant.app.payments", "merchantapp", "merchant-app.payments".

Invalid examples: "com.merchant.app.payments://" (contains ://), "com.merchant.app.payments/callback" (contains a path), "com.merchant_app" (underscore not allowed).


constructor(context: Context, authorization: String, returnUrlScheme: String? = null)

Deprecated

Use the constructor that uses an `appLinkReturnUrl` to redirect back to your application instead.

Initializes a new VenmoClient instance

Parameters

context

an Android Context

authorization

a Tokenization Key or Client Token used to authenticate

returnUrlScheme

a custom return url to use for browser and app switching