Start transaction
You can process payments using:
Card reader (recommended)
Manual card entry
Card reader transaction
let saleEntity = SaleEntity(amount: 22.0, tipAmount: 5)
ClearentWrapper.shared.startTransaction(
with: saleEntity,
isManualTransaction: false
) { error in
// Handle completion
}Runtime callbacks
During the transaction, the SDK provides updates through delegate methods:
func userActionNeeded(action: UserAction) {
// Prompt user (for example, insert or swipe card)
}
func didReceiveInfo(info: UserInfo) {
// Display status (for example, processing)
}Transaction result
Manual card entry
Use manual entry when a reader is unavailable.
Last updated
Was this helpful?

