PrimerAchScope manages the ACH multi-step payment flow: user details collection, bank account collection, and mandate acceptance.
Declaration
Properties
| Property | Type | Description |
|---|---|---|
state | AsyncStream<PrimerAchState> | Stream of ACH state changes |
presentationContext | PresentationContext | .direct or .fromPaymentSelection |
dismissalMechanism | [DismissalMechanism] | Supported dismissal methods |
bankCollectorViewController | UIViewController? | Bank collection view controller for embedding |
Customization
| Property | Type | Description |
|---|---|---|
screen | AchScreenComponent? | Full screen replacement. Signature: (any PrimerAchScope) -> any View |
userDetailsScreen | AchScreenComponent? | User details step replacement |
mandateScreen | AchScreenComponent? | Mandate step replacement |
submitButton | AchButtonComponent? | Custom submit button. Signature: (any PrimerAchScope) -> any View |
Methods
| Method | Description |
|---|---|
updateFirstName(_ value: String) | Update first name |
updateLastName(_ value: String) | Update last name |
updateEmailAddress(_ value: String) | Update email address |
submitUserDetails() | Submit user details to proceed to bank collection |
acceptMandate() | Accept the ACH mandate |
declineMandate() | Decline the mandate |
onBack() | Navigate back |
cancel() | Cancel the ACH flow |
PrimerAchState
Flow
UserDetails
FieldValidation
| Property | Type | Description |
|---|---|---|
step | Step | Current step in the flow |
userDetails | UserDetails | Collected user details |
fieldValidation | FieldValidation? | Validation errors for user details |
mandateText | String? | ACH mandate text for acceptance |
isSubmitEnabled | Bool | Whether submit is allowed |
See also
Scopes overview
All available scopes