Options

@Inject
constructor(@Named(value = "publishableKey") publishableKeyProvider: () -> String, @Named(value = "stripeAccountId") stripeAccountIdProvider: () -> String?)

Dedicated constructor for injection.

Because PUBLISHABLE_KEY and STRIPE_ACCOUNT_ID might change, whenever required, a new ApiRequest.Options instance is created with the latest values. Should always be used with Provider or Lazy.


constructor(apiKey: String, stripeAccount: String? = null, idempotencyKey: String? = null)