PaymentMethodRequests

Contains all request body models used by PaymentMethodsAPI.

Types

Link copied to clipboard
data class AttachPaymentMethodRequest(val customer: String? = null, val account: String? = null)

Request body for attaching a payment method to a customer or merchant account.

Link copied to clipboard
data class ConnectPlaidBankAccountRequest(val account: String, val publicToken: String, val accountId: String, val institutionName: String? = null, val subtype: String? = null)

Request body for creating an ACH payment method by connecting a bank account via Plaid.

Link copied to clipboard
data class CreateACHPaymentMethodRequest(val type: FrameObjects.PaymentMethodType = FrameObjects.PaymentMethodType.ACH, val accountType: FrameObjects.PaymentAccountType, val accountNumber: String, val routingNumber: String, val customer: String? = null, val account: String? = null, val billing: FrameObjects.BillingAddress? = null)

Request body for creating an ACH bank-account payment method.

Link copied to clipboard
data class CreateCardPaymentMethodRequest(val type: FrameObjects.PaymentMethodType = FrameObjects.PaymentMethodType.CARD, var cardNumber: String, val expMonth: String, val expYear: String, var cvc: String, val customer: String? = null, val account: String? = null, val billing: FrameObjects.BillingAddress? = null)

Request body for creating a card payment method.

Link copied to clipboard
data class CreateGooglePayPaymentMethodRequest(val type: String = "card", val wallet: PaymentMethodRequests.GooglePayWallet, val customer: String? = null, val account: String? = null)

Request body for creating a payment method from a Google Pay wallet token.

Link copied to clipboard
data class GooglePayWallet(val type: String = "google_pay", val googlePay: PaymentMethodRequests.GooglePayWalletData)

Wrapper that identifies the wallet provider and carries the decoded Google Pay token.

Link copied to clipboard
data class GooglePayWalletData(val apiVersion: Int, val apiVersionMinor: Int, val email: String?, val paymentMethodData: Any)

Decoded Google Pay payment data returned by the Google Pay API.

Link copied to clipboard
data class UpdatePaymentMethodRequest(val expMonth: String? = null, val expYear: String? = null, val billing: FrameObjects.BillingAddress? = null)

Request body for updating an existing payment method.