On This Page
Email a Customer Receipt
Use this information to email the receipt for an existing transaction to a customer.
- Create the online payment service and callsendEmailReceipt(forID:)with the transaction identifier.// Throws MposUIReaderError.notActivated if device is not activated let online = try await reader.mposUIOnline() let email = await online.sendEmailReceipt(forID: "transactionIdentifier") switch email { case .success: print("Receipt sent.") case .cancelByUser: print("Receipt cancelled.") case .error(let developerInfo): print("Failed to send receipt. Info: \(developerInfo)") }