<?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 Re: Add multiple payment profile while creating customers in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65910#M39510</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/27762"&gt;@puneetjindal30&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with your json, and it gives me an error with the 2nd card number, as the account I have in sanbox didn't support&amp;nbsp;Diners Club.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I changed both the card numbers to a VISA test card numbers, I got a successful response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error response I got&amp;nbsp;initially&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "customerPaymentProfileIdList": [],
    "customerShippingAddressIdList": [],
    "validationDirectResponseList": [
        "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,2CLINC056,Joe,Test,CompanyA,hello,Bangalore,Delhi,560078,IN,415-555-1212,415-555-1313,,,,,,,,,,0.00,0.00,0.00,FALSE,none,8CDC5494AF4CB9545C05E36A78141BB9,,,,,,,,,,,,,XXXX0002,American Express,,,,,,,,,,,,,,,,,",
        "3,2,17,(TESTMODE) The merchant does not accept this type of credit card.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,2CLINC056,Joe,Test,CompanyA,vel,Chennai,AK,560089,US,415-555-1212,415-555-1313,,,,,,,,,,0.00,0.00,0.00,FALSE,none,8CDC5494AF4CB9545C05E36A78141BB9,,,,,,,,,,,,,XXXX0006,Diners Club,,,,,,,,,,,,,,,,,"
    ],
    "refId": "1361101257555",
    "messages": {
        "resultCode": "Error",
        "message": [
            {
                "code": "E00027",
                "text": "(TESTMODE) The merchant does not accept this type of credit card."
            }
        ]
    }
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The successful message&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "customerProfileId": "1917585050",
    "customerPaymentProfileIdList": [
        "1830796850",
        "1830796851"
    ],
    "customerShippingAddressIdList": [],
    "validationDirectResponseList": [
        "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,2CLINC056,Joe,Test,CompanyA,hello,Bangalore,Delhi,560078,IN,415-555-1212,415-555-1313,,,,,,,,,,0.00,0.00,0.00,FALSE,none,8CDC5494AF4CB9545C05E36A78141BB9,,,,,,,,,,,,,XXXX4242,Visa,,,,,,,,,,,,,,,,,",
        "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,2CLINC056,Joe,Test,CompanyA,vel,Chennai,AK,560089,US,415-555-1212,415-555-1313,,,,,,,,,,0.00,0.00,0.00,FALSE,none,8CDC5494AF4CB9545C05E36A78141BB9,,,,,,,,,,,,,XXXX4242,Visa,,,,,,,,,,,,,,,,,"
    ],
    "refId": "1361101257555",
    "messages": {
        "resultCode": "Ok",
        "message": [
            {
                "code": "I00001",
                "text": "Successful."
            }
        ]
    }
}&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;BR /&gt;Kaushik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jan 2019 10:41:58 GMT</pubDate>
    <dc:creator>kikmak42</dc:creator>
    <dc:date>2019-01-21T10:41:58Z</dc:date>
    <item>
      <title>Add multiple payment profile while creating customers</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65495#M39159</link>
      <description>&lt;P&gt;Using sandbox key and transaction id when I'm creating the user using json flavour. This api will response me the customerProfileId and customerPaymentProfileIdList in the list there is one one id. Can we create it multiples? if yes, Then what is the json string I have to send to generate multiple customerPaymentProfileIds. If no, Then please expalin why I'm not sending the array to the api. Or how to create the multiple payment profiles using authrization.net.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 10:26:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65495#M39159</guid>
      <dc:creator>puneetjindal30</dc:creator>
      <dc:date>2018-12-27T10:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add multiple payment profile while creating customers</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65513#M39166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/27762"&gt;@puneetjindal30&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create multiple PaymentProfiles while creating a CustomerProfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you are making the&amp;nbsp;&lt;FONT face="courier new,courier,monospace"&gt;&lt;EM&gt;createCustomerProfileRequest&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;then instead of sendin a single object in&amp;nbsp; paymentProfiles you can send multiple as an array, something similar to this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"paymentProfiles": [{
                "customerType": "individual",
                "payment": {
                    "creditCard": {
                        "cardNumber": "4111111111111111",
                        "expirationDate": "2020-12"
                    }
                }
            },{
                "customerType": "individual",
                "payment": {
                    "creditCard": {
                        "cardNumber": "4242424242424242",
                        "expirationDate": "2020-12"
                    }
                }
            }]&lt;/PRE&gt;&lt;P&gt;This will generate 2 payment profiles for the CustomerProfile, with different card numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this Helps!&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 06:32:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65513#M39166</guid>
      <dc:creator>kikmak42</dc:creator>
      <dc:date>2018-12-28T06:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add multiple payment profile while creating customers</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65569#M39209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20378"&gt;@kikmak42&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sending the&amp;nbsp; json like below and as you say sending multiple profile I'm also sending the multiple profiles see below json:-&lt;/P&gt;&lt;PRE&gt;{
  "createCustomerProfileRequest": {
    "merchantAuthentication": {
        "name": "name",
        "transactionKey": "transactionKey"
    },
    "refId": "1361101257555",
    "profile": {
        "merchantCustomerId": "2CLINC056",
        "description": "hiiiiii.",
        "email": "",
        "paymentProfiles": [
            {
                "customerType": "individual",
                "billTo": {
                    "firstName": "Joe",
                    "lastName": "Test",
                    "company": "CompanyA",
                    "address": "hello",
                    "city": "Bangalore",
                    "state": "Delhi",
                    "zip": "560078",
                    "country": "IN",
                    "phoneNumber": "415-555-1212",
                    "faxNumber": "415-555-1313"
                },
                "payment": {
                    "creditCard": {
                        "cardNumber": "370000000000002",
                        "expirationDate": "2029-12"
                    }
                }
            },
            {
                "customerType": "individual",
                "billTo": {
                    "firstName": "Joe",
                    "lastName": "Test",
                    "company": "CompanyA",
                    "address": "vel",
                    "city": "Chennai",
                    "state": "AK",
                    "zip": "560089",
                    "country": "US",
                    "phoneNumber": "415-555-1212",
                    "faxNumber": "415-555-1313"
                },
                "payment": {
                    "creditCard": {
                        "cardNumber": "38000000000006",
                        "expirationDate": "2029-12"
                    }
                }
            }
        ]
    },
    "validationMode": "testMode"
  }
}&lt;/PRE&gt;&lt;P&gt;Please tell me that what is the error in this json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Puneet.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 03:41:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65569#M39209</guid>
      <dc:creator>puneetjindal30</dc:creator>
      <dc:date>2019-01-03T03:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add multiple payment profile while creating customers</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65910#M39510</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/27762"&gt;@puneetjindal30&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with your json, and it gives me an error with the 2nd card number, as the account I have in sanbox didn't support&amp;nbsp;Diners Club.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I changed both the card numbers to a VISA test card numbers, I got a successful response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error response I got&amp;nbsp;initially&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "customerPaymentProfileIdList": [],
    "customerShippingAddressIdList": [],
    "validationDirectResponseList": [
        "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,2CLINC056,Joe,Test,CompanyA,hello,Bangalore,Delhi,560078,IN,415-555-1212,415-555-1313,,,,,,,,,,0.00,0.00,0.00,FALSE,none,8CDC5494AF4CB9545C05E36A78141BB9,,,,,,,,,,,,,XXXX0002,American Express,,,,,,,,,,,,,,,,,",
        "3,2,17,(TESTMODE) The merchant does not accept this type of credit card.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,2CLINC056,Joe,Test,CompanyA,vel,Chennai,AK,560089,US,415-555-1212,415-555-1313,,,,,,,,,,0.00,0.00,0.00,FALSE,none,8CDC5494AF4CB9545C05E36A78141BB9,,,,,,,,,,,,,XXXX0006,Diners Club,,,,,,,,,,,,,,,,,"
    ],
    "refId": "1361101257555",
    "messages": {
        "resultCode": "Error",
        "message": [
            {
                "code": "E00027",
                "text": "(TESTMODE) The merchant does not accept this type of credit card."
            }
        ]
    }
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The successful message&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "customerProfileId": "1917585050",
    "customerPaymentProfileIdList": [
        "1830796850",
        "1830796851"
    ],
    "customerShippingAddressIdList": [],
    "validationDirectResponseList": [
        "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,2CLINC056,Joe,Test,CompanyA,hello,Bangalore,Delhi,560078,IN,415-555-1212,415-555-1313,,,,,,,,,,0.00,0.00,0.00,FALSE,none,8CDC5494AF4CB9545C05E36A78141BB9,,,,,,,,,,,,,XXXX4242,Visa,,,,,,,,,,,,,,,,,",
        "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,2CLINC056,Joe,Test,CompanyA,vel,Chennai,AK,560089,US,415-555-1212,415-555-1313,,,,,,,,,,0.00,0.00,0.00,FALSE,none,8CDC5494AF4CB9545C05E36A78141BB9,,,,,,,,,,,,,XXXX4242,Visa,,,,,,,,,,,,,,,,,"
    ],
    "refId": "1361101257555",
    "messages": {
        "resultCode": "Ok",
        "message": [
            {
                "code": "I00001",
                "text": "Successful."
            }
        ]
    }
}&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;BR /&gt;Kaushik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 10:41:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Add-multiple-payment-profile-while-creating-customers/m-p/65910#M39510</guid>
      <dc:creator>kikmak42</dc:creator>
      <dc:date>2019-01-21T10:41:58Z</dc:date>
    </item>
  </channel>
</rss>

