<?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 CreateUserProfile and use of validationMode('liveMode')? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CreateUserProfile-and-use-of-validationMode-liveMode/m-p/79877#M50292</link>
    <description>&lt;P&gt;Reading the API for CreateUserProfile there is the option for validationMode('liveMode') - but the definition for it is ambiguous.&amp;nbsp; It is defined as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Indicates the processing mode for the request. If the customer profile contains no payment data, this field should not be sent.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Use&amp;nbsp;testMode&amp;nbsp;to perform a Luhn mod-10 check on the card number, without further validation. Use&amp;nbsp;liveMode&amp;nbsp;to submit a zero-dollar or one-cent transaction (depending on card type and processor support) to confirm the card number belongs to an active credit or debit account.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;But what exactly is "payment data"?&amp;nbsp; Is it just CC info....or is it CC Info AND charge info (ie: total = $10) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So my questions are (regarding PHP implemenation:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Where do you do the `setValidationMode('liveMode')` at?&amp;nbsp; There is no example of it in use in the CreateCustomerProfile examples.&amp;nbsp; Based on the CreateCustomerPaymentProfile API its shows the `setValidationMode` as a part of `new AnetAPI\CreateCustomerPaymentProfileRequest()` method.&amp;nbsp; So in the CreateCustomerProfile I added it to the `new AnetAPI\CustomerPaymentProfileType();` but that is erroring out as an unknown method.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;If using the `setValidationMode` setting, where how do you actually pass a charge value?&amp;nbsp; There seems to be no method option available to do that.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is there a scenario, using `liveMode` or not, where the customer profile IS created but the payment profile IS NOT created (fails)?&amp;nbsp; And if so, what would the `$response` look like and how could I differentiate between successful `CreateCustomerProfile` but failed `CreateCustomerPaymentProfile`?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;And last, is the first CustomerPaymentProfile the automatic default?&amp;nbsp; That option is available in CreateCustomerPaymentProfile API but does not appear to be available in the CreateCustomerProfile API.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 12:12:54 GMT</pubDate>
    <dc:creator>rolinger</dc:creator>
    <dc:date>2021-11-16T12:12:54Z</dc:date>
    <item>
      <title>CreateUserProfile and use of validationMode('liveMode')?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CreateUserProfile-and-use-of-validationMode-liveMode/m-p/79877#M50292</link>
      <description>&lt;P&gt;Reading the API for CreateUserProfile there is the option for validationMode('liveMode') - but the definition for it is ambiguous.&amp;nbsp; It is defined as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Indicates the processing mode for the request. If the customer profile contains no payment data, this field should not be sent.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Use&amp;nbsp;testMode&amp;nbsp;to perform a Luhn mod-10 check on the card number, without further validation. Use&amp;nbsp;liveMode&amp;nbsp;to submit a zero-dollar or one-cent transaction (depending on card type and processor support) to confirm the card number belongs to an active credit or debit account.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;But what exactly is "payment data"?&amp;nbsp; Is it just CC info....or is it CC Info AND charge info (ie: total = $10) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So my questions are (regarding PHP implemenation:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Where do you do the `setValidationMode('liveMode')` at?&amp;nbsp; There is no example of it in use in the CreateCustomerProfile examples.&amp;nbsp; Based on the CreateCustomerPaymentProfile API its shows the `setValidationMode` as a part of `new AnetAPI\CreateCustomerPaymentProfileRequest()` method.&amp;nbsp; So in the CreateCustomerProfile I added it to the `new AnetAPI\CustomerPaymentProfileType();` but that is erroring out as an unknown method.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;If using the `setValidationMode` setting, where how do you actually pass a charge value?&amp;nbsp; There seems to be no method option available to do that.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is there a scenario, using `liveMode` or not, where the customer profile IS created but the payment profile IS NOT created (fails)?&amp;nbsp; And if so, what would the `$response` look like and how could I differentiate between successful `CreateCustomerProfile` but failed `CreateCustomerPaymentProfile`?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;And last, is the first CustomerPaymentProfile the automatic default?&amp;nbsp; That option is available in CreateCustomerPaymentProfile API but does not appear to be available in the CreateCustomerProfile API.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 12:12:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CreateUserProfile-and-use-of-validationMode-liveMode/m-p/79877#M50292</guid>
      <dc:creator>rolinger</dc:creator>
      <dc:date>2021-11-16T12:12:54Z</dc:date>
    </item>
  </channel>
</rss>

