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
| Style | Swift Value | Data Collected |
|---|---|---|
| Complete | .complete | Name, Card Number, Expiration, CVV, Full Address |
| Partial | .partial | Name, Card Number, Expiration, CVV, ZIP |
| Basic | .basic | Name, Card Number, Expiration, CVV |
| Minimal | .minimal | Card Number, Expiration, CVV |
| Bank Account | bankPaymentSheet() | 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 example
All card form styles share the same API — only the style argument changes.
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)
}