core/ApiConfiguration.kt

stripe-android · stripe-core/src/main/java/com/stripe/android/core/ApiConfiguration.kt · kotlin · MIT
payments

Container for Stripe API credentials and account ID.

// Source: https://github.com/stripe/stripe-android | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
package com.stripe.android.core

import android.os.Parcelable
import androidx.annotation.RestrictTo
import kotlinx.parcelize.Parcelize

/**
 * Holds API credentials (publishable key and optional Stripe account ID) for use with
 * payment UI components. When not provided, components fall back to
 * [PaymentConfiguration.getInstance].
 *
 * @param publishableKey the Stripe publishable key for this payment session.
 */
@ApiConfigurationPreview
class ApiConfiguration(
    private val publishableKey: String,
) {
    private var stripeAccountId: String? = null

    /**
     * Sets the connected account ID for this 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key