Skip to content

Form Styles

The SDK provides five form styles for different data collection needs. Pass a style to paymentAction.paymentSheet(style:) to select the fields displayed to the buyer.

Available form styles

StyleSwift ValueData Collected
Complete.completeName, Card Number, Expiration, CVV, Full Address
Partial.partialName, Card Number, Expiration, CVV, ZIP
Basic.basicName, Card Number, Expiration, CVV
Minimal.minimalCard Number, Expiration, CVV
Bank AccountbankPaymentSheet()Account Number, Routing Number, Account Type
  • Use Complete when you need full address data for AVS verification.
  • Use Partial for lightweight ZIP-only verification.
  • Use Basic or Minimal for simple card collection with no address fields.
  • Use Bank Account for ACH payments.

Card collection

Card collection example

All card form styles share the same API — only the style argument changes.

Bank account collection

Bank account example

Use bankPaymentSheet() to collect ACH payment details. No style argument is needed.

paymentAction.paymentSheet(style: .complete)   // Name, Card, Expiry, CVV, Full Address
paymentAction.paymentSheet(style: .partial)    // Name, Card, Expiry, CVV, ZIP
paymentAction.paymentSheet(style: .basic)      // Name, Card, Expiry, CVV
paymentAction.paymentSheet(style: .minimal)    // Card, Expiry, CVV
paymentAction.bankPaymentSheet()               // Account Number, Routing Number, Account Type

func showPartialSheet() {
    let sheet = paymentAction.paymentSheet(style: .partial)
    paymentAction.present(from: self, paymentSheet: sheet, animated: true)
}

func showBankSheet() {
    let bankSheet = paymentAction.bankPaymentSheet()
    paymentAction.present(from: self, paymentSheet: bankSheet, animated: true)
}