<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set email in payment profile? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-email-in-payment-profile/m-p/83990#M52952</link>
    <description>&lt;P&gt;When creating customer with payment profile, and providing email "mytest@test.com" in "billTo":&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "createCustomerPaymentProfileRequest": {
    "merchantAuthentication": {
    "name": "###",
    "transactionKey": "###"
  },
    "customerProfileId": "###",
    "paymentProfile": {
      "billTo": {
        "firstName": "Jon3",
        "lastName": "Smith",
        "address": "123 Main St.",
        "city": "Bellevue",
        "state": "WA",
        "zip": "98004",
        "country": "US",
        "phoneNumber": "000-000-0000",
        "email": "mytest@test.com"
      },
      "payment": {
        "creditCard": {
          "cardNumber": "4111111111111111",
          "expirationDate": "2023-12"
        }
      },
      "defaultPaymentProfile": false
    },
    "validationMode": "testMode"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;In the response I am receining always different email than I provided&amp;nbsp; - see "email@example.com" in below response:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "customerProfileId": "###",
    "customerPaymentProfileId": "###",
    "validationDirectResponse": "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,none,Jon3,Smith,,123 Main St.,Bellevue,WA,98004,US,000-000-0000,,email@example.com,,,,,,,,,0.00,0.00,0.00,FALSE,none,,,,,,,,,,,,,,XXXX1111,Visa,,,,,,,,,,,,,,,,,",
    "messages": {
        "resultCode": "Ok",
        "message": [
            {
                "code": "I00001",
                "text": "Successful."
            }
        ]
    }
}&lt;/LI-CODE&gt;&lt;P&gt;Also in notification there is different mail visible:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;==== CUSTOMER BILLING INFORMATION ===
Customer ID : none
First Name : Jon3
Last Name : Smith
Company : 
Address : 123 Main St.
City : Bellevue
State/Province : WA
Zip/Postal Code : 98004
Country : US
Phone : 000-000-0000
Fax : 
E-Mail : email@example.com&lt;/LI-CODE&gt;&lt;P&gt;If I don't provide any mail in original request, then "&lt;A href="mailto:email@example.com&amp;quot;" target="_blank"&gt;email@example.com"&lt;/A&gt;&amp;nbsp;appears in billing information anywa.&lt;/P&gt;&lt;P&gt;My question is, how should I correctly set email in payment profile ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 10:35:47 GMT</pubDate>
    <dc:creator>piotr123</dc:creator>
    <dc:date>2022-09-01T10:35:47Z</dc:date>
    <item>
      <title>How to set email in payment profile?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-email-in-payment-profile/m-p/83990#M52952</link>
      <description>&lt;P&gt;When creating customer with payment profile, and providing email "mytest@test.com" in "billTo":&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "createCustomerPaymentProfileRequest": {
    "merchantAuthentication": {
    "name": "###",
    "transactionKey": "###"
  },
    "customerProfileId": "###",
    "paymentProfile": {
      "billTo": {
        "firstName": "Jon3",
        "lastName": "Smith",
        "address": "123 Main St.",
        "city": "Bellevue",
        "state": "WA",
        "zip": "98004",
        "country": "US",
        "phoneNumber": "000-000-0000",
        "email": "mytest@test.com"
      },
      "payment": {
        "creditCard": {
          "cardNumber": "4111111111111111",
          "expirationDate": "2023-12"
        }
      },
      "defaultPaymentProfile": false
    },
    "validationMode": "testMode"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;In the response I am receining always different email than I provided&amp;nbsp; - see "email@example.com" in below response:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "customerProfileId": "###",
    "customerPaymentProfileId": "###",
    "validationDirectResponse": "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,none,Jon3,Smith,,123 Main St.,Bellevue,WA,98004,US,000-000-0000,,email@example.com,,,,,,,,,0.00,0.00,0.00,FALSE,none,,,,,,,,,,,,,,XXXX1111,Visa,,,,,,,,,,,,,,,,,",
    "messages": {
        "resultCode": "Ok",
        "message": [
            {
                "code": "I00001",
                "text": "Successful."
            }
        ]
    }
}&lt;/LI-CODE&gt;&lt;P&gt;Also in notification there is different mail visible:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;==== CUSTOMER BILLING INFORMATION ===
Customer ID : none
First Name : Jon3
Last Name : Smith
Company : 
Address : 123 Main St.
City : Bellevue
State/Province : WA
Zip/Postal Code : 98004
Country : US
Phone : 000-000-0000
Fax : 
E-Mail : email@example.com&lt;/LI-CODE&gt;&lt;P&gt;If I don't provide any mail in original request, then "&lt;A href="mailto:email@example.com&amp;quot;" target="_blank"&gt;email@example.com"&lt;/A&gt;&amp;nbsp;appears in billing information anywa.&lt;/P&gt;&lt;P&gt;My question is, how should I correctly set email in payment profile ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 10:35:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-email-in-payment-profile/m-p/83990#M52952</guid>
      <dc:creator>piotr123</dc:creator>
      <dc:date>2022-09-01T10:35:47Z</dc:date>
    </item>
  </channel>
</rss>

