Sends a digital receipt after the transaction completes. See tapToPaySdk.registerTransactionResultHandler() to handle transaction results.
@Throws(InvalidParamException::class)
suspend fun sendDigitalReceipt(
transactionId: String,
email: String,
): BooleanIt is strongly recommended to handle any exceptions thrown by tapToPaySdk.sendDigitalReceipt() otherwise your App will crash. Throws InvalidTransactionParamException when one of the following conditions is not met.
transactionIdmust not be blankemailmust be a valid format
transactionIdStringrequired
The transactionId returned in the TransactionResult.
emailStringrequired
The recipient of the digital receipt email.
Returns true if the email request was successfully sent. Note: The email may take a few minutes to be sent. A response of true does not guarantee that the email was successfully sent to the recipient.