FILTER BY TAG

Email a Customer Receipt

Use this information to email the receipt for a previous transaction to a customer.
Follow these steps to email a customer receipt.
  1. Use the
    sendEmailReceipt
    method to start the flow for emailing a receipt.
    let email = await mposUi.sendEmailReceipt(forID: "transactionIdentifier")
  2. After the emailing activity is completed, get the results of the activity.
    switch email { case .success: print("Operation completed.") case .cancelByUser: print("Operation canceled.") case .error(let developerInfo): print("Operation failed. Info: %@", developerInfo) }