Send Digital Receipt
tapToPaySdk.sendDigitalReceipt(transactionId, email)
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,
): Boolean
Throws InvalidTransactionParamException Exception
It 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.
transactionId
must not be blankemail
must be a valid format
Parameters
transactionId required | String The transactionId returned in the TransactionResult. |
email required | String The recipient of the digital receipt email. |
Returns
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.