SetupParams:
    | PaymentSheet.SetupParamsBase & {
        customerEphemeralKeySecret: string;
        customerSessionClientSecret?: never;
    }
    | PaymentSheet.SetupParamsBase & {
        customerEphemeralKeySecret?: never;
        customerSessionClientSecret: string;
    }
    | PaymentSheet.SetupParamsBase

Type declaration

  • PaymentSheet.SetupParamsBase & {
        customerEphemeralKeySecret: string;
        customerSessionClientSecret?: never;
    }
    • customerEphemeralKeySecret: string

      A short-lived token that allows the SDK to access a Customer’s payment methods.

    • OptionalcustomerSessionClientSecret?: never
  • PaymentSheet.SetupParamsBase & {
        customerEphemeralKeySecret?: never;
        customerSessionClientSecret: string;
    }
    • OptionalcustomerEphemeralKeySecret?: never
    • customerSessionClientSecret: string

      The client secret of this Customer Session. Used on the client to set up secure access to the given customer.

  • PaymentSheet.SetupParamsBase