Sends a digital receipt after the transaction completes. See TransactionOutcome.
public func requestDigitalReceipt(transactionId: String, email: String) async throws -> BooltransactionIdStringrequired
The transactonId returned in the TransactionOutcome.
emailStringrequired
The recipient of the digital receipt email.
Returns true if the email request was successfully sent. Note: The email may take a new minutes to be sent. A response of true does not guaratee the email was sent successfully to the receipient.
Throws TapToPaySDKError.invalidParameter if there is an issue with one of the parameters. For example, if the transactionId/email is blank, or if the email supplied is invalid.
See TapToPaySDKError for more details on errors thrown.