InputCredentials

public indirect enum InputCredentials : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum

Contains information about the payment method chosen by the user

  • Applies if a user chooses some previously saved payment credentials. To use their previously saved credentials, the user must have a valid temporary password

    • savedCredentialsId: Identifier of the saved credentials

    Declaration

    Swift

    case saved(savedCredentialsId: String)
  • Applies if a user enters new credentials on a payment provider website

    • data: Contains JSON-encoded data with a credential identifier from the payment provider
    • allowSave: True, if the credential identifier can be saved on the server side

    Declaration

    Swift

    case new(data: String, allowSave: Bool)
  • Applies if a user enters new credentials using Android Pay

    • data: JSON-encoded data with the credential identifier

    Declaration

    Swift

    case androidPay(data: String)
  • Applies if a user enters new credentials using Apple Pay

    • data: JSON-encoded data with the credential identifier

    Declaration

    Swift

    case applePay(data: String)