{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["json-schema"]},"type":"markdown"},"seo":{"title":"Send Digital Receipt","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"send-digital-receipt","__idx":0},"children":["Send Digital Receipt"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"taptopaysdksenddigitalreceipttransactionid-email","__idx":1},"children":["tapToPaySdk.sendDigitalReceipt(transactionId, email)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sends a digital receipt after the transaction completes. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/in-person-payments/tap-to-pay/android/sdk/init-sdk#taptopaysdkregistertransactionresulthandleractivity-ontransactionresult"},"children":["tapToPaySdk.registerTransactionResultHandler()"]}," to handle transaction results."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"kotlin","header":{"controls":{"copy":{}}},"source":"@Throws(InvalidParamException::class)\nsuspend fun sendDigitalReceipt(\n    transactionId: String,\n    email: String,\n): Boolean\n","lang":"kotlin"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"throws-invalidtransactionparamexception-exception","__idx":2},"children":["Throws InvalidTransactionParamException Exception"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It is strongly recommended to handle any exceptions thrown by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tapToPaySdk.sendDigitalReceipt()"]}," otherwise your App will crash."," ","Throws ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["InvalidTransactionParamException"]}," when one of the following conditions is not met."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transactionId"]}," must not be blank"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}," must be a valid format"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters","__idx":3},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"transactionId":{"type":"String","description":"The transactionId returned in the TransactionResult."},"email":{"type":"String","description":"The recipient of the digital receipt email."}},"required":["transactionId","email"]},"options":{"schemaExpansionLevel":1},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"transactionId":{"type":"String","description":"The transactionId returned in the TransactionResult."},"email":{"type":"String","description":"The recipient of the digital receipt email."}},"required":["transactionId","email"]}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"returns","__idx":4},"children":["Returns"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," if the email request was successfully sent."," ","Note: The email may take a few minutes to be sent. A response of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," does not guarantee that the email was successfully sent to the recipient."]}]},"headings":[{"value":"Send Digital Receipt","id":"send-digital-receipt","depth":1},{"value":"tapToPaySdk.sendDigitalReceipt(transactionId, email)","id":"taptopaysdksenddigitalreceipttransactionid-email","depth":2},{"value":"Throws InvalidTransactionParamException Exception","id":"throws-invalidtransactionparamexception-exception","depth":3},{"value":"Parameters","id":"parameters","depth":3},{"value":"Returns","id":"returns","depth":3}],"frontmatter":{"title":"Send Digital Receipt","seo":{"title":"Send Digital Receipt"}},"lastModified":"2026-09-02T01:02:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/in-person-payments/tap-to-pay/android/sdk/send-digital-receipt","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}