{"title":"Digital receipts","category":"default","creationDate":1776961628,"content":"<p>Some customers prefer to receive digital receipts (by email, for example) instead of a printed receipt. Digital receipts are easier to store, more convenient to find, and do not generate paper waste.<\/p>\n<p>Here we'll show you how to use Adyen-supplied payment terminals to recognize a returning customer and know if you already have their email, ask them if they want to receive their receipt digitally, and send their receipt to the email address saved in their profile.<\/p>\n<h2>Requirements<\/h2>\n<p>To send digital receipts, make sure that:<\/p>\n<ol>\n<li>You can <a href=\"\/pt\/unified-commerce\/loyalty-program\/create-profiles\">create customer profiles<\/a> and <a href=\"\/pt\/unified-commerce\/loyalty-program\/recognize-customers\">recognize returning customers<\/a> across your sales channels.<\/li>\n<li>You have software that can generate the receipt from the Terminal API payment response, and send the receipt to the customer's email.<\/li>\n<\/ol>\n<h2>Step 1: Recognize customer<\/h2>\n<p>Before asking your customer whether they prefer a digital receipt, you should attempt to recognize them. This will determine whether you already have their contact details that you can send the receipt to.<\/p>\n<ol>\n<li>\n<p>Make a card acquisition request to <a href=\"\/pt\/unified-commerce\/loyalty-program\/recognize-customers#recognize-returning-customers-in-store\">recognize the customer<\/a>. This will return any customer information that you previously stored with Adyen.<\/p>\n<p>O exemplo abaixo mostra como voc\u00ea tentaria reconhecer um cliente que est\u00e1 fazendo uma compra de <strong>EUR&nbsp;10,99<\/strong>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Pedido de aquisi\u00e7\u00e3o de cart\u00e3o'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"SaleToPOIRequest\\\": {\\n        \\\"MessageHeader\\\":{\\n            \\\"ProtocolVersion\\\":\\\"3.0\\\",\\n            \\\"MessageClass\\\":\\\"Service\\\",\\n            \\\"MessageCategory\\\":\\\"Payment\\\",\\n            \\\"MessageType\\\":\\\"Request\\\",\\n            \\\"SaleID\\\":\\\"POSSystemID12345\\\",\\n            \\\"ServiceID\\\":\\\"0207111104\\\",\\n            \\\"POIID\\\":\\\"V400m-324688179\\\"\\n        },\\n        \\\"CardAcquisitionRequest\\\": {\\n            \\\"SaleData\\\": {\\n                \\\"SaleTransactionID\\\": {\\n                    \\\"TransactionID\\\": \\\"15890\\\",\\n                    \\\"TimeStamp\\\": \\\"2019-12-04T12:02:49.000Z\\\"\\n                },\\n                \\\"TokenRequestedType\\\": \\\"Customer\\\"\\n            },\\n            \\\"CardAcquisitionTransaction\\\": {\\n                \\\"TotalAmount\\\": 10.99\\n            }\\n        }\\n    }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>Voc\u00ea recebe uma resposta que inclui um objeto <code>AdditionalResponse<\/code>, com uma cadeia codificada em base64 que precisa decodificar para obter um objeto JSON ou uma cadeia de pares de valores-chave codificados em formul\u00e1rio. Em nossos exemplos, usamos pares de valores-chave codificados em formul\u00e1rio.<\/p>\n<p>A resposta de exemplo abaixo inclui um obejto <code>AdditionalResponse<\/code>.<\/p>\n<\/li>\n<\/ol>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Resposta de aquisi\u00e7\u00e3o do cart\u00e3o'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"SaleToPOIResponse\\\": {\\n        \\\"CardAcquisitionResponse\\\": {\\n            \\\"POIData\\\": {\\n                \\\"POITransactionID\\\": {\\n                    \\\"TimeStamp\\\": \\\"2019-12-04T12:02:49.000Z\\\",\\n                    \\\"TransactionID\\\": \\\"4rVu001575460969123\\\"\\n                },\\n                \\\"POIReconciliationID\\\": \\\"1000\\\"\\n            },\\n            \\\"SaleData\\\": {\\n                \\\"SaleTransactionID\\\": {\\n                    \\\"TimeStamp\\\": \\\"2019-12-04T12:02:49.000Z\\\",\\n                    \\\"TransactionID\\\": \\\"15890\\\"\\n                }\\n            },\\n            \\\"PaymentInstrumentData\\\": {...},\\n            \\\"Response\\\": {\\n                \\\"Result\\\": \\\"Success\\\",\\n                \\\"AdditionalResponse\\\":\\\"...shopperReference=john_smith&amp;shopperEmail=john.smith@email.com...\\\"\\n            }\\n        },\\n        \\\"MessageHeader\\\": {...}\\n    }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<ol start=\"2\">\n<li>\n<p>Check if the <code>AdditionalResponse<\/code> object contains a <code>shopperReference<\/code>.<\/p>\n<ul>\n<li>If it contains a <code>shopperReference<\/code>, they are a returning customer. If you have previously stored the <code>shopperEmail<\/code> with Adyen, this is also provided in this response.<\/li>\n<li>If it <em>does not<\/em> contain a <code>shopperReference<\/code>, the customer's card is not recognized.<br \/>\nThis usually means that the customer is new, and has not purchased with you before. However, they could also be a returning customer using a new card.<\/li>\n<\/ul>\n<p>To confirm, you can collect their email address, then check whether this matches a <code>shopperEmail<\/code> stored in your customer database:<\/p>\n<ul>\n<li>If the email matches a <code>shopperEmail<\/code> in your database, they are a returning customer. Ask them if they want to save their new card. If they do, tokenize their new card using their <code>shopperReference<\/code> from your database when you make a payment.<\/li>\n<li>If the email is not your database, they are a new customer. Proceed to step 2 to <a href=\"#email-unknown\">ask them if they want their receipt sent by email<\/a>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>Step 2: Request customer input<\/h2>\n<p>You can present messages and collect input from the customer using the touch-screen displays in Adyen-supplied payment terminals. Alternatively, your staff can ask your customer for their preferences, and then type the email address in your POS app.<\/p>\n<p>Depending on whether your customer's email address is saved in their profile, you can either ask them:<\/p>\n<ul>\n<li>To <a href=\"#email-known\">confirm whether they want their receipt sent to their known email address<\/a>.<\/li>\n<li>Whether they <a href=\"#email-unknown\">want their receipt sent by email<\/a>, before prompting them for their address.<\/li>\n<\/ul>\n<h3 id=\"email-known\">Email address is known<\/h3>\n<p>If your customer's email address is already known, present a prompt on the terminal display to check whether they would like the receipt sent by email.<\/p>\n<p>To ask if your customer wants to get a digital receipt:<\/p>\n<ol>\n<li>\n<p>Make a  <strong>GetConfirmation<\/strong> <a href=\"\/pt\/point-of-sale\/shopper-engagement\/shopper-input\/confirmation\">input request<\/a> from your POS app, asking the customer whether they would like to receive their receipt by email.<\/p>\n<p>The example below would present the message <strong>Would you like us to send your receipt to the email address (followed by the customer's email address)?<\/strong> on the terminal display, followed by a prompt for the customer.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'GetConfirmation input request'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"\\t{\\n\\t  \\\"SaleToPOIRequest\\\": {\\n\\t    \\\"MessageHeader\\\": {...},\\n\\t    \\\"InputRequest\\\": {\\n\\t      \\\"DisplayOutput\\\": {\\n\\t        \\\"Device\\\": \\\"CustomerDisplay\\\",\\n\\t        \\\"InfoQualify\\\": \\\"Display\\\",\\n\\t        \\\"OutputContent\\\": {\\n\\t          \\\"OutputFormat\\\": \\\"Text\\\",\\n\\t          \\\"PredefinedContent\\\": {\\n\\t            \\\"ReferenceID\\\": \\\"GetConfirmation\\\"\\n\\t          },\\n\\t          \\\"OutputText\\\": [\\n\\t            {\\\"Text\\\": \\\"How would you like your receipt?\\\"},\\n\\t            {\\\"Text\\\": \\\"Would you like us to send your receipt to the email address SHOPPER_EMAIL?\\\"},\\n\\t            {\\\"Text\\\": \\\"No\\\"},\\n\\t            {\\\"Text\\\": \\\"Yes\\\"}\\n\\t          ]\\n\\t        }\\n\\t      },\\n\\t      \\\"InputData\\\": {\\n\\t        \\\"Device\\\": \\\"CustomerInput\\\",\\n\\t        \\\"InfoQualify\\\": \\\"Input\\\",\\n\\t        \\\"InputCommand\\\": \\\"GetConfirmation\\\",\\n\\t        \\\"MaxInputTime\\\": 30\\n\\t      }\\n\\t    }\\n\\t  }\\n\\t}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>Your message is shown on the terminal display. The customer indicates whether they would like their receipt emailed to them.<\/p>\n<p>When they are done selecting their option, you receive the input response that contains <code>Input.ConfirmedFlag<\/code> object. If this is <strong>true<\/strong>, the customer would like to receive their receipt by email. Continue to <a href=\"#step-3-continue-with-payment\">make the payment<\/a>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'GetConfirmation input response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"\\t{\\n\\t  \\\"SaleToPOIResponse\\\": {\\n\\t    \\\"InputResponse\\\": {\\n\\t      \\\"InputResult\\\": {\\n\\t        \\\"Device\\\": \\\"CustomerInput\\\",\\n\\t        \\\"InfoQualify\\\": \\\"Input\\\",\\n\\t        ...\\n\\t        },\\n\\t        \\\"Input\\\": {\\n\\t          \\\"ConfirmedFlag\\\": true,\\n\\t          \\\"InputCommand\\\": \\\"GetConfirmation\\\"\\n\\t        }\\n\\t      },\\n\\t      ...\\n\\t    },\\n\\t    \\\"MessageHeader\\\": {...}\\n\\t  }\\n\\t}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h3 id=\"email-unknown\">Email address is unknown<\/h3>\n<p>If your customer is new, or does not have an email linked to their profile yet, present a prompt on the terminal display to check whether they would like the receipt sent by email. If they do, you can collect the customer's email address directly from your terminal, using the on-screen keyboard.<\/p>\n<p>To ask if your customer wants to get a digital receipt:<\/p>\n<ol>\n<li>\n<p>Make a <strong>GetConfirmation<\/strong> <a href=\"\/pt\/point-of-sale\/shopper-engagement\/shopper-input\/confirmation\">input request<\/a>, asking the customer whether they would like to receive their receipt by email.<\/p>\n<p>The example below would present the message <strong>Would you like us to send your receipt to your email address?<\/strong> on the terminal display, followed by a prompt for the customer.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'GetConfirmation input request'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"\\t{\\n\\t  \\\"SaleToPOIRequest\\\": {\\n\\t\\t\\\"MessageHeader\\\": {...},\\n\\t\\t\\\"InputRequest\\\": {\\n\\t\\t  \\\"DisplayOutput\\\": {\\n\\t\\t\\t\\\"Device\\\": \\\"CustomerDisplay\\\",\\n\\t\\t\\t\\\"InfoQualify\\\": \\\"Display\\\",\\n\\t\\t\\t\\\"OutputContent\\\": {\\n\\t\\t\\t  \\\"OutputFormat\\\": \\\"Text\\\",\\n\\t\\t\\t  \\\"PredefinedContent\\\": {\\n\\t\\t\\t\\t\\\"ReferenceID\\\": \\\"GetConfirmation\\\"\\n\\t\\t\\t  },\\n\\t\\t\\t  \\\"OutputText\\\": [\\n\\t\\t\\t\\t  {\\\"Text\\\": \\\"How would you like your receipt?\\\"},\\n \\t            {\\\"Text\\\": \\\"Would you like us to send your receipt to your email address?\\\"},\\n \\t            {\\\"Text\\\": \\\"No\\\"},\\n \\t            {\\\"Text\\\": \\\"Yes\\\"}\\n\\t\\t\\t  ]\\n\\t\\t\\t}\\n\\t\\t  },\\n\\t\\t  \\\"InputData\\\": {\\n\\t\\t\\t\\\"Device\\\": \\\"CustomerInput\\\",\\n\\t\\t\\t\\\"InfoQualify\\\": \\\"Input\\\",\\n\\t\\t\\t\\\"InputCommand\\\": \\\"GetConfirmation\\\",\\n\\t\\t\\t\\\"MaxInputTime\\\": 30\\n\\t\\t  }\\n\\t\\t}\\n\\t  }\\n\\t}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The customer uses the terminal display to indicate whether they would like their receipt sent by email.<\/p>\n<p>Your message is shown on the terminal display. The customer indicates whether they would like their receipt emailed to them.<\/p>\n<p>When they are done selecting their option, you receive the input response that contains an <code>Input.ConfirmedFlag<\/code> object. This indicates <strong>true<\/strong> if the customer would like to receive their receipt by email. Continue to the next step to get their email. Otherwise, they would rather have a paper receipt, so <a href=\"#step-3-continue-with-payment\">continue to make a payment request<\/a>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'GetConfirmation input response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"SaleToPOIResponse\\\": {\\n    \\\"InputResponse\\\": {\\n      \\\"InputResult\\\": {\\n        \\\"Device\\\": \\\"CustomerInput\\\",\\n        \\\"InfoQualify\\\": \\\"Input\\\",\\n        ...\\n        },\\n        \\\"Input\\\": {\\n          \\\"ConfirmedFlag\\\": true,\\n          \\\"InputCommand\\\": \\\"GetConfirmation\\\"\\n        }\\n      },\\n      ...\\n    },\\n    \\\"MessageHeader\\\": {...}\\n  }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>If the customer indicated that they want to receive an electronic receipt, <a href=\"\/pt\/unified-commerce\/loyalty-program\/create-profiles#create-profile-from-point-of-sale-payment\">collect their email<\/a> and create a customer profile.<\/p>\n<\/li>\n<\/ol>\n<h2>Step 3: Continue with payment<\/h2>\n<p>Continue with the purchase by making a payment request:<\/p>\n<ol>\n<li>\n<p>Make a POST request from your POS app to <a href=\"\/pt\/point-of-sale\/basic-tapi-integration\/make-a-payment\">initiate the payment<\/a>. If you are saving the email of a new customer, also include parameters described in the <a href=\"\/pt\/unified-commerce\/loyalty-program\/create-profiles#create-profile-from-point-of-sale-payment\">Create customer profiles<\/a> documentation.<\/p>\n<p>Here is how you can make a <strong>EUR&nbsp;10.99<\/strong> payment for a <em>known<\/em> customer.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Terminal API request'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"\\t{\\n\\t\\t\\\"SaleToPOIRequest\\\":{\\n\\t\\t\\t\\\"MessageHeader\\\":{\\n\\t\\t\\t\\t\\\"ProtocolVersion\\\":\\\"3.0\\\",\\n\\t\\t\\t\\t\\\"MessageClass\\\":\\\"Service\\\",\\n\\t\\t\\t\\t\\\"MessageCategory\\\":\\\"Payment\\\",\\n\\t\\t\\t\\t\\\"MessageType\\\":\\\"Request\\\",\\n\\t\\t\\t\\t\\\"SaleID\\\":\\\"POSSystemID12345\\\",\\n\\t\\t\\t\\t\\\"ServiceID\\\":\\\"0207111105\\\",\\n\\t\\t\\t\\t\\\"POIID\\\":\\\"V400m-324688179\\\"\\n\\t\\t\\t},\\n\\t\\t\\t\\\"PaymentRequest\\\":{\\n\\t\\t\\t\\t\\\"SaleData\\\":{\\n\\t\\t\\t\\t\\t\\\"SaleTransactionID\\\":{\\n\\t\\t\\t\\t\\t\\t\\\"TransactionID\\\":\\\"15887\\\",\\n\\t\\t\\t\\t\\t\\t\\\"TimeStamp\\\":\\\"2019-12-04T12:02:49.000Z\\\"\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\\"PaymentTransaction\\\":{\\n\\t\\t\\t\\t\\t\\\"AmountsReq\\\":{\\n\\t\\t\\t\\t\\t\\t\\\"Currency\\\":\\\"EUR\\\",\\n\\t\\t\\t\\t\\t\\t\\\"RequestedAmount\\\":10.99\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\\"PaymentData\\\":{\\n\\t\\t\\t\\t\\t\\\"CardAcquisitionReference\\\":{\\n\\t\\t\\t\\t\\t\\t\\\"TransactionID\\\":\\\"oLkO001528797935000\\\",\\n\\t\\t\\t\\t\\t\\t\\\"TimeStamp\\\":\\\"2019-12-04T12:02:49.000Z\\\"\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>You receive a response that includes:<\/p>\n<ul>\n<li><code>AdditionalResponse<\/code> object, with a base64-encoded string that you need to decode to get a JSON object, or a string of form-encoded key-value pairs. In our examples, we use form-encoded key-value pairs. You can get the <code>shopperEmail<\/code> from this string.<\/li>\n<li><code>PaymentReceipt<\/code>: Object containing data you can use to <a href=\"\/pt\/point-of-sale\/basic-tapi-integration\/generate-receipts#receipt-data\">generate a receipt<\/a>.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Payment response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"\\t{\\n\\t  \\\"SaleToPOIResponse\\\":{\\n\\t    \\\"MessageHeader\\\":{...},\\n\\t    \\\"PaymentResponse\\\":{\\n\\t      \\\"POIData\\\":{\\n\\t        \\\"POITransactionID\\\":{\\n\\t          \\\"TransactionID\\\": \\\"oLkO0012498220087567.991517998212382C\\\"\\n\\t        },\\n\\t        ...\\n\\t      },\\n\\t      \\\"Response\\\":{\\n\\t        \\\"Result\\\":\\\"Success\\\",\\n\\t        \\\"AdditionalResponse\\\":\\\"...shopperEmail=john.smith@example.com&amp;shopperReference=john_smith...\\\"\\n\\t      },\\n\\t      ...\\n\\t    },\\n\\t    \\\"PaymentReceipt\\\":{...}\\n\\t  }\\n\\t}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>Use your CRM or email tool to send the receipt to the <code>shopperEmail<\/code>. The receipt should include the data provided in the <code>PaymentReceipt<\/code> object. For more information on what you need to provide in generated receipt, see <a href=\"\/pt\/point-of-sale\/basic-tapi-integration\/generate-receipts#generating-compliant-receipts\">Generating compliant receipts<\/a>.<\/p>\n<\/li>\n<\/ol>","url":"https:\/\/docs.adyen.com\/pt\/unified-commerce\/digital-receipts","articleFields":{"description":"Send digital receipts for in-person transactions.","feedback_component":true,"last_edit_on":"06-07-2021 11:55"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/unified-commerce\/digital-receipts","title":"Digital receipts","content":"Some customers prefer to receive digital receipts (by email, for example) instead of a printed receipt. Digital receipts are easier to store, more convenient to find, and do not generate paper waste.\nHere we'll show you how to use Adyen-supplied payment terminals to recognize a returning customer and know if you already have their email, ask them if they want to receive their receipt digitally, and send their receipt to the email address saved in their profile.\nRequirements\nTo send digital receipts, make sure that:\n\nYou can create customer profiles and recognize returning customers across your sales channels.\nYou have software that can generate the receipt from the Terminal API payment response, and send the receipt to the customer's email.\n\nStep 1: Recognize customer\nBefore asking your customer whether they prefer a digital receipt, you should attempt to recognize them. This will determine whether you already have their contact details that you can send the receipt to.\n\n\nMake a card acquisition request to recognize the customer. This will return any customer information that you previously stored with Adyen.\nO exemplo abaixo mostra como voc\u00ea tentaria reconhecer um cliente que est\u00e1 fazendo uma compra de EUR&nbsp;10,99.\n\n\n\nVoc\u00ea recebe uma resposta que inclui um objeto AdditionalResponse, com uma cadeia codificada em base64 que precisa decodificar para obter um objeto JSON ou uma cadeia de pares de valores-chave codificados em formul\u00e1rio. Em nossos exemplos, usamos pares de valores-chave codificados em formul\u00e1rio.\nA resposta de exemplo abaixo inclui um obejto AdditionalResponse.\n\n\n\n    \n\n\n\nCheck if the AdditionalResponse object contains a shopperReference.\n\nIf it contains a shopperReference, they are a returning customer. If you have previously stored the shopperEmail with Adyen, this is also provided in this response.\nIf it does not contain a shopperReference, the customer's card is not recognized.\nThis usually means that the customer is new, and has not purchased with you before. However, they could also be a returning customer using a new card.\n\nTo confirm, you can collect their email address, then check whether this matches a shopperEmail stored in your customer database:\n\nIf the email matches a shopperEmail in your database, they are a returning customer. Ask them if they want to save their new card. If they do, tokenize their new card using their shopperReference from your database when you make a payment.\nIf the email is not your database, they are a new customer. Proceed to step 2 to ask them if they want their receipt sent by email.\n\n\n\nStep 2: Request customer input\nYou can present messages and collect input from the customer using the touch-screen displays in Adyen-supplied payment terminals. Alternatively, your staff can ask your customer for their preferences, and then type the email address in your POS app.\nDepending on whether your customer's email address is saved in their profile, you can either ask them:\n\nTo confirm whether they want their receipt sent to their known email address.\nWhether they want their receipt sent by email, before prompting them for their address.\n\nEmail address is known\nIf your customer's email address is already known, present a prompt on the terminal display to check whether they would like the receipt sent by email.\nTo ask if your customer wants to get a digital receipt:\n\n\nMake a  GetConfirmation input request from your POS app, asking the customer whether they would like to receive their receipt by email.\nThe example below would present the message Would you like us to send your receipt to the email address (followed by the customer's email address)? on the terminal display, followed by a prompt for the customer.\n\n\n\nYour message is shown on the terminal display. The customer indicates whether they would like their receipt emailed to them.\nWhen they are done selecting their option, you receive the input response that contains Input.ConfirmedFlag object. If this is true, the customer would like to receive their receipt by email. Continue to make the payment.\n\n\n\n\n\nEmail address is unknown\nIf your customer is new, or does not have an email linked to their profile yet, present a prompt on the terminal display to check whether they would like the receipt sent by email. If they do, you can collect the customer's email address directly from your terminal, using the on-screen keyboard.\nTo ask if your customer wants to get a digital receipt:\n\n\nMake a GetConfirmation input request, asking the customer whether they would like to receive their receipt by email.\nThe example below would present the message Would you like us to send your receipt to your email address? on the terminal display, followed by a prompt for the customer.\n\n\n\nThe customer uses the terminal display to indicate whether they would like their receipt sent by email.\nYour message is shown on the terminal display. The customer indicates whether they would like their receipt emailed to them.\nWhen they are done selecting their option, you receive the input response that contains an Input.ConfirmedFlag object. This indicates true if the customer would like to receive their receipt by email. Continue to the next step to get their email. Otherwise, they would rather have a paper receipt, so continue to make a payment request.\n\n\n\n\n\nIf the customer indicated that they want to receive an electronic receipt, collect their email and create a customer profile.\n\n\nStep 3: Continue with payment\nContinue with the purchase by making a payment request:\n\n\nMake a POST request from your POS app to initiate the payment. If you are saving the email of a new customer, also include parameters described in the Create customer profiles documentation.\nHere is how you can make a EUR&nbsp;10.99 payment for a known customer.\n\n\n\nYou receive a response that includes:\n\nAdditionalResponse object, with a base64-encoded string that you need to decode to get a JSON object, or a string of form-encoded key-value pairs. In our examples, we use form-encoded key-value pairs. You can get the shopperEmail from this string.\nPaymentReceipt: Object containing data you can use to generate a receipt.\n\n\n\n\n\n\nUse your CRM or email tool to send the receipt to the shopperEmail. The receipt should include the data provided in the PaymentReceipt object. For more information on what you need to provide in generated receipt, see Generating compliant receipts.\n\n","type":"page","locale":"pt","boost":18,"hierarchy":{"lvl0":"Home","lvl1":"Omnichannel","lvl2":"Digital receipts"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/unified-commerce","lvl2":"\/pt\/unified-commerce\/digital-receipts"},"levels":3,"category":"Omnichannel","category_color":"green","tags":["Digital","receipts"]}}
