# DigitalWalletDetails

class DigitalWalletDetails(val walletBrand: DigitalWalletDetails.WalletBrand, val buyerId: String?, val lightningDetails: DigitalWalletDetails.LightningDetails? = null)

Details about a digital wallet (QR code) payment.

## Constructors

DigitalWalletDetails
Link copied to clipboard
constructor(walletBrand: DigitalWalletDetails.WalletBrand, buyerId: String?, lightningDetails: DigitalWalletDetails.LightningDetails? = null)

## Types

Builder
Link copied to clipboard
class Builder(walletBrand: DigitalWalletDetails.WalletBrand, buyerId: String? = null, lightningDetails: DigitalWalletDetails.LightningDetails? = null)

Lets developers create and configure digital wallet details for automated testing.

LightningDetails
Link copied to clipboard
data class LightningDetails(val paymentUrl: String?, val expiresAt: String?, val amountMilliSats: Long?)

Details specific to Bitcoin Lightning payments. Note: paymentUrl is excluded from toString() for security reasons.

WalletBrand
Link copied to clipboard
enum WalletBrand : Enum<DigitalWalletDetails.WalletBrand>

The brand used for a digital wallet payment. This enum maps 1:1 to the Payments API DigitalWalletDetails brand.

## Properties

buyerId
Link copied to clipboard
val buyerId: String?

the ID of the buyer in the digital wallet system (e.g. $cashtag for Cash App)

lightningDetails
Link copied to clipboard
val lightningDetails: DigitalWalletDetails.LightningDetails? = null

details specific to Bitcoin Lightning payments

walletBrand
Link copied to clipboard
val walletBrand: DigitalWalletDetails.WalletBrand

the brand of the digital wallet used for the payment (e.g. Cash App, PayPay)