Stripe
constructor(context: Context, publishableKey: String, stripeAccountId: String? = null, enableLogging: Boolean = false, betas: Set<StripeApiBeta> = emptySet())
Constructor with publishable key and Stripe Connect account id.
Parameters
context
Activity or application context
publishableKey
the client's publishable key
stripeAccountId
optional, the Stripe Connect account id to attach to Stripe API requests
enableLogging
enable logging in the Stripe and Stripe 3DS2 SDKs; disabled by default. It is recommended to disable logging in production. Logs can be accessed from the command line using adb logcat -s StripeSdk
betas
optional, set of beta flags to pass to the Stripe API. Setting this property is not sufficient to participate in a beta, and passing a beta you are not registered in will result in API errors.