SpreedlyClient

interface SpreedlyClient

SpreedlyClient

This class handles all the client side API communication.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun createApplePaymentMethod(info: ApplePayInfo): TransactionResult<CreditCardResult>

Creates an Apple Pay payment method using the provided Apple Pay information.

Link copied to clipboard
abstract suspend fun createBankPaymentMethod(info: BankAccountInfo): TransactionResult<BankAccountResult>

Creates a bank payment method using the provided bank account information.

Link copied to clipboard
abstract suspend fun createCreditCardPaymentMethod(info: CreditCardInfo): TransactionResult<CreditCardResult>

Creates a credit card payment method using the provided credit card information.

Link copied to clipboard
abstract suspend fun createGooglePaymentMethod(info: GooglePayInfo): TransactionResult<CreditCardResult>

Creates a Google Pay payment method using the provided Google Pay information.

Link copied to clipboard
open suspend fun createPaymentMethod(info: PaymentMethodInfo): TransactionResult<out PaymentMethodResult>
Link copied to clipboard
abstract suspend fun recache(token: String, cvv: SpreedlySecureOpaqueString): TransactionResult<CreditCardResult>

Recaches credit card information with the provided token and CVV.