{"title":"Customer Data Exchange","category":"default","creationDate":1776961628,"content":"<p>When your type of business and location legally require you to exclude anonymous payment methods, MyPaySafeCard is the only payment option offered at checkout. MyPaySafeCard acts as an e-wallet and can be used for gambling.<\/p>\n<p>After a shopper completes a payment in their MyPaySafeCard account, customer data is sent to Adyen. MyPaySafeCard requires a shopper to provide <strong>first name<\/strong>, <strong>last name<\/strong> and <strong>date of birth<\/strong>, which are verified by PaySafeCard.<\/p>\n<p>You are expected to have this information on file as well, so you can verify it is the same once the data is shared with you by Adyen by one of the below mentioned methods.<\/p>\n<div class=\"notices green\">\n<p>If your PaySafeCard transactions are configured to be automatically captured your account must be changed to an <span translate=\"no\"><strong>Auth. flow<\/strong><\/span>. When set to an <span translate=\"no\"><strong>Auth. flow<\/strong><\/span>, your PaySafeCard transactions remain in the status <span translate=\"no\"><strong>Authorised<\/strong><\/span> until you make a <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/70\/post\/payments\/_paymentPspReference_\/captures\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">capture<\/a> request. The authorized amount remains frozen for <strong>24 hours<\/strong>, until it is released again to the shopper on their MyPaysafecard account. It's good practice to perform the verification of the customer and executing the capture as quickly as possible to ensure a pleasant customer experience.<\/p>\n<\/div>\n<h2>Use customer data to determine whether to capture transactions<\/h2>\n<p>When a shopper makes a payment from a MyPaySafeCard account, the transaction flow will include:<\/p>\n<ol>\n<li>\n<p>Your shopper logs in to your system.<\/p>\n<\/li>\n<li>\n<p>The shopper makes a payment using MyPaySafeCard.<\/p>\n<\/li>\n<li>\n<p>The shopper authorizes the transaction. The money is reserved, but not debited yet.<\/p>\n<\/li>\n<li>\n<p>During the transaction PaySafeCard sends customer data to Adyen (first name, last name and date of birth).<\/p>\n<\/li>\n<li>\n<p>You receive the Customer Data Exchange content from Adyen.<\/p>\n<p>The data is returned from Adyen in one of two ways:<\/p>\n<ul>\n<li>After the shopper completes the redirect, send the <code>redirectResult<\/code> to the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> endpoint to verify that the transaction is authorized and to view the customer\u2019s data.<\/li>\n<li>After the transaction is authorized, listen for the standard webhook notification, which is sent to the endpoint you configure in Customer Area. The webhook contains the customer data in the same format as the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> response.<\/li>\n<\/ul>\n<p>The account owner's data that is returned:<\/p>\n<ul>\n<li>first and last name<\/li>\n<li>date of birth<\/li>\n<li>ID of the account<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Your system compares the information in the user account with the information from the Customer Data Exchange.<\/p>\n<\/li>\n<li>\n<p>Your system either cancels the payment with a request to  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/(paymentPspReference)\/cancels\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/{paymentPspReference}\/cancels<\/a> (which removes the reservation of the funds on the shopper's MyPaySafeCard account balance), or captures the payment with a request to  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/(paymentPspReference)\/captures\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/{paymentPspReference}\/captures<\/a>.<\/p>\n<\/li>\n<\/ol>\n<h2>Configure how the customer data should be returned<\/h2>\n<p>Indicate in the Customer Area how the customer data must be returned:<\/p>\n<ul>\n<li>To receive it in the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> response, go to <strong>Developer &gt; Additional Data<\/strong>, and enable \u201cpayment account owner data\u201d.<\/li>\n<li>To receive it in the standard webhook, go to <strong>Developer &gt; Webhooks<\/strong>, create a standard webhook, and in \u201cpayment\u201d enable \u201cpayment account owner data\u201d.<\/li>\n<\/ul>\n<div class=\"notices green\">\n<p>The Customer Data Exchange feature of PaySafeCard can be configured for any currency account via Adyen.<\/p>\n<\/div>\n<h2>Receive customer data<\/h2>\n<h3>When the shopper returns from redirect<\/h3>\n<p>When the shopper gets redirected back from PaySafeCard after they complete the authorization from their account, a data object is included in the return URL, which you can send to  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a>:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Example of \/payments\/details response'\" :id=\"''\" :code-data='[{\"language\":\"swift\",\"tabTitle\":\"\",\"content\":\"{\\n\\t\\\"additionalData\\\": {\\n\\t\\t\\\"paymentAccountOwner.firstName\\\": \\\"Joe\\\",\\n\\t\\t\\\"paymentAccountOwner.lastName\\\": \\\"Johnson\\\",\\n\\t\\t\\\"paymentAccountOwner.dateOfBirth\\\": \\\"2001-02-03\\\",\\n\\t\\t\\\"paymentAccountOwner.accountId\\\": \\\"123456789\\\"\\n\\t},\\n    \\\"pspReference\\\": \\\"DCWR4G6WD7MKDM92\\\",\\n    \\\"resultCode\\\": \\\"Authorised\\\",\\n    \\\"merchantReference\\\": \\\"tGhdiLScHzZHMXDXtUWH\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3>When the shopper does not return from redirect<\/h3>\n<p>If you do not see your shopper return to the front-end, you still receive a standard webhook notification that confirms the authorization of the payment:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Example of webhook'\" :id=\"''\" :code-data='[{\"language\":\"swift\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"live\\\": \\\"false\\\",\\n    \\\"notificationItems\\\": [\\n        {\\n            \\\"NotificationRequestItem\\\": {\\n                \\\"additionalData\\\": {\\n\\t\\t\\t\\t\\t\\\"paymentAccountOwner.firstName\\\": \\\"Joe\\\",\\n\\t\\t\\t\\t\\t\\\"paymentAccountOwner.lastName\\\": \\\"Johnson\\\",\\n\\t\\t\\t\\t\\t\\\"paymentAccountOwner.dateOfBirth\\\": \\\"2001-02-03\\\",\\n\\t\\t\\t\\t\\t\\\"paymentAccountOwner.accountId\\\": \\\"123456789\\\"\\n\\t\\t\\t\\t},\\n                \\\"amount\\\": {\\n                    \\\"currency\\\": \\\"EUR\\\",\\n                    \\\"value\\\": 2\\n            },\\n            \\\"eventCode\\\": \\\"AUTHORISATION\\\",\\n            \\\"eventDate\\\": \\\"2023-06-01T16:18:01+02:00\\\",\\n            \\\"merchantAccountCode\\\": \\\"SanchitLPM\\\",\\n            \\\"merchantReference\\\": \\\"tGhdiLScHzZHMXDXtUWH\\\",\\n            \\\"operations\\\": [\\n                \\\"CANCEL\\\",\\n                \\\"CAPTURE\\\",\\n                \\\"REFUND\\\"\\n            ],\\n            \\\"paymentMethod\\\": \\\"paysafecard\\\",\\n            \\\"pspReference\\\": \\\"FWB39P7JHKMLNK82\\\",\\n            \\\"reason\\\": \\\"\\\",\\n            \\\"success\\\": \\\"true\\\"\\n            }\\n        }\\n    ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paysafecard\/customer-data-exchange","articleFields":{"description":"Learn how to use Customer Data Exchange with PaySafeCard.","parameters":{"payment_method_type":"paysafecard","currency":"EUR","return_url":"https:\/\/your-company.example.com\/checkout?shopperOrder=12xy.."},"feedback_component":true,"page_id":"3a0f8745-e4d9-4790-b9dd-2c7845c37c33","filters_component":false,"decision_tree":"[]"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paysafecard\/customer-data-exchange","title":"Customer Data Exchange","content":"When your type of business and location legally require you to exclude anonymous payment methods, MyPaySafeCard is the only payment option offered at checkout. MyPaySafeCard acts as an e-wallet and can be used for gambling.\nAfter a shopper completes a payment in their MyPaySafeCard account, customer data is sent to Adyen. MyPaySafeCard requires a shopper to provide first name, last name and date of birth, which are verified by PaySafeCard.\nYou are expected to have this information on file as well, so you can verify it is the same once the data is shared with you by Adyen by one of the below mentioned methods.\n\nIf your PaySafeCard transactions are configured to be automatically captured your account must be changed to an Auth. flow. When set to an Auth. flow, your PaySafeCard transactions remain in the status Authorised until you make a capture request. The authorized amount remains frozen for 24 hours, until it is released again to the shopper on their MyPaysafecard account. It's good practice to perform the verification of the customer and executing the capture as quickly as possible to ensure a pleasant customer experience.\n\nUse customer data to determine whether to capture transactions\nWhen a shopper makes a payment from a MyPaySafeCard account, the transaction flow will include:\n\n\nYour shopper logs in to your system.\n\n\nThe shopper makes a payment using MyPaySafeCard.\n\n\nThe shopper authorizes the transaction. The money is reserved, but not debited yet.\n\n\nDuring the transaction PaySafeCard sends customer data to Adyen (first name, last name and date of birth).\n\n\nYou receive the Customer Data Exchange content from Adyen.\nThe data is returned from Adyen in one of two ways:\n\nAfter the shopper completes the redirect, send the redirectResult to the  \/payments\/details endpoint to verify that the transaction is authorized and to view the customer\u2019s data.\nAfter the transaction is authorized, listen for the standard webhook notification, which is sent to the endpoint you configure in Customer Area. The webhook contains the customer data in the same format as the  \/payments\/details response.\n\nThe account owner's data that is returned:\n\nfirst and last name\ndate of birth\nID of the account\n\n\n\nYour system compares the information in the user account with the information from the Customer Data Exchange.\n\n\nYour system either cancels the payment with a request to  \/payments\/{paymentPspReference}\/cancels (which removes the reservation of the funds on the shopper's MyPaySafeCard account balance), or captures the payment with a request to  \/payments\/{paymentPspReference}\/captures.\n\n\nConfigure how the customer data should be returned\nIndicate in the Customer Area how the customer data must be returned:\n\nTo receive it in the  \/payments\/details response, go to Developer &gt; Additional Data, and enable \u201cpayment account owner data\u201d.\nTo receive it in the standard webhook, go to Developer &gt; Webhooks, create a standard webhook, and in \u201cpayment\u201d enable \u201cpayment account owner data\u201d.\n\n\nThe Customer Data Exchange feature of PaySafeCard can be configured for any currency account via Adyen.\n\nReceive customer data\nWhen the shopper returns from redirect\nWhen the shopper gets redirected back from PaySafeCard after they complete the authorization from their account, a data object is included in the return URL, which you can send to  \/payments\/details:\n\n    \n\nWhen the shopper does not return from redirect\nIf you do not see your shopper return to the front-end, you still receive a standard webhook notification that confirms the authorization of the payment:\n\n    \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"PaySafeCard","lvl3":"Customer Data Exchange"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paysafecard","lvl3":"\/pt\/payment-methods\/paysafecard\/customer-data-exchange"},"levels":4,"category":"Payment method","category_color":"green","tags":["Customer","Exchange"]}}
