Package ch.datatrans.payment.paymentmethods

Types

Card
Link copied to clipboard
class Card(type: PaymentMethodType, number: String, expiryDate: CardExpiryDate, cvv: String?, cardholder: String?)
Use this class to process raw card data for payments.
CardExpiryDate
Link copied to clipboard
class CardExpiryDate(month: Int, year: Int) : Serializable
Class to be used to represent the card expiry date (month and year).
GooglePayConfig
Link copied to clipboard
data class GooglePayConfig(supportedNetworks: List<PaymentMethodType>, merchantName: String, showLargeButton: Boolean, showGooglePayAsSavedPaymentMethod: Boolean)
Configuration object for Google Pay transactions.
PaymentMethodType
Link copied to clipboard
enum PaymentMethodType : Enum<PaymentMethodType>
The payment method used during the transaction.
SamsungPayConfig
Link copied to clipboard
open class SamsungPayConfig
Class for transaction configurations for Samsung Pay payments.
SavedCard
Link copied to clipboard
open class SavedCard : SavedPaymentMethod
This class contains saved credit or debit card payment method details.
SavedPaymentMethod
Link copied to clipboard
open class SavedPaymentMethod(type: PaymentMethodType, alias: String) : Serializable, Cloneable
This is the base class to save a payment method and use it to process recurring paayments or fast checkouts.
SavedPayPal
Link copied to clipboard
class SavedPayPal(alias: String, payPalEmail: String?) : SavedPaymentMethod
This class contains saved PayPal payment method details.
SavedPostFinanceCard
Link copied to clipboard
class SavedPostFinanceCard(alias: String, cardExpiryDate: CardExpiryDate?, maskedCardNumber: String?) : SavedCard
This class contains saved PostFinance card payment method details.
SavedReka
Link copied to clipboard
class SavedReka(alias: String, cardExpiryDate: CardExpiryDate, maskedCardNumber: String?) : SavedCard
This class contains saved Reka card payment method details.
SavedSEPA
Link copied to clipboard
class SavedSEPA(alias: String) : SavedPaymentMethod
This class contains saved SEPA (ELV) payment method details.