FILTER BY TAG

Email a Customer Receipt

Use this information to email the receipt for an existing transaction to a customer.
  1. Create the online payment service and call
    sendEmailReceipt(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)") }