Stripe.withClient constructor

  1. @visibleForTesting
Stripe.withClient(
  1. Client client
)

Implementation

@visibleForTesting
Stripe.withClient(this.client)
    : checkoutSession = CheckoutSessionResource(client),
      portalSession = PortalSessionResource(client),
      customer = CustomerResource(client),
      refund = RefundResource(client),
      paymentIntent = PaymentIntentResource(client),
      price = PriceResource(client),
      product = ProductResource(client),
      subscription = SubscriptionResource(client),
      charge = ChargeResource(client),
      balanceTransaction = BalanceTransactionResource(client);