BuyerIdentification
data class BuyerIdentification(val name: String, val number: String? = null, val type: String? = null)
Represents the buyer's identification information for payment processing. This class contains the necessary identification details of the cardholder, including name and optional identification number and type.
Example:
// Create buyer identification for testing approved payment
val buyerId = BuyerIdentification(
name = "APRO",
number = "123456789",
type = "CPF"
)
// Create buyer identification for testing error payment
val realBuyerId = BuyerIdentification(
name = "OTHE",
number = "123456789",
type = "CPF"
)
Content copied to clipboard
Parameters
name
The cardholder's name.
number
Optional identification number of the cardholder
type
Optional identification type of the cardholder