<?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: Created customer profile and payment profile but cant charge profile with credit card in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Created-customer-profile-and-payment-profile-but-cant-charge/m-p/66902#M40400</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/29071"&gt;@Codemonkeys2019&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are creating customer profile and then immediately running a charge, there can be a short delay before the customer profile is available.&amp;nbsp; Creating a customer profile is done realtime, but follow-on transactions like charging a customer profile use replicated data for performance reasons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to create a transaction AND create a customer profile, you might consider creating transaction request and set createProfile=true.&amp;nbsp; If the transaction is successful, a customer profile is returned in the transaction response which you can store in your system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 21:55:00 GMT</pubDate>
    <dc:creator>RichardH</dc:creator>
    <dc:date>2019-03-12T21:55:00Z</dc:date>
    <item>
      <title>Created customer profile and payment profile but cant charge profile with credit card</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Created-customer-profile-and-payment-profile-but-cant-charge/m-p/66866#M40367</link>
      <description>&lt;P&gt;Team - Have been able to verify that the customer profile and payment profile are visible in sandbox.authorize.net..&amp;nbsp; The test credit card is visible in the profile but when I try to charge it I receive error E00040:&amp;nbsp;Customer Profile ID or Customer Payment Profile ID not found.&amp;nbsp; Below is code:&lt;/P&gt;&lt;P&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.SANDBOX;&lt;/P&gt;&lt;P&gt;// define the merchant information (authentication / transaction id)&lt;BR /&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = new merchantAuthenticationType()&lt;BR /&gt;{&lt;BR /&gt;name = APILOGINID,&lt;BR /&gt;ItemElementName = ItemChoiceType.transactionKey,&lt;BR /&gt;Item = APITRANSATIONKEY&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;//create a customer payment profile&lt;BR /&gt;//create a customer payment profile&lt;BR /&gt;customerProfilePaymentType profileToCharge = new customerProfilePaymentType();&lt;BR /&gt;profileToCharge.customerProfileId = customerProfileId;&lt;BR /&gt;profileToCharge.paymentProfile = new paymentProfile { paymentProfileId = paymentProfileId };&lt;/P&gt;&lt;P&gt;var transactionRequest = new transactionRequestType&lt;BR /&gt;{&lt;BR /&gt;transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), // refund type&lt;BR /&gt;amount = Amount,&lt;BR /&gt;profile = profileToCharge&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var request = new createTransactionRequest { transactionRequest = transactionRequest };&lt;/P&gt;&lt;P&gt;// instantiate the collector that will call the service&lt;BR /&gt;var controller = new createTransactionController(request);&lt;BR /&gt;controller.Execute();&lt;/P&gt;&lt;P&gt;// get the response from the service (errors contained if any)&lt;BR /&gt;var response = controller.GetApiResponse();&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 19:24:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Created-customer-profile-and-payment-profile-but-cant-charge/m-p/66866#M40367</guid>
      <dc:creator>Codemonkeys2019</dc:creator>
      <dc:date>2019-03-11T19:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Created customer profile and payment profile but cant charge profile with credit card</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Created-customer-profile-and-payment-profile-but-cant-charge/m-p/66902#M40400</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/29071"&gt;@Codemonkeys2019&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are creating customer profile and then immediately running a charge, there can be a short delay before the customer profile is available.&amp;nbsp; Creating a customer profile is done realtime, but follow-on transactions like charging a customer profile use replicated data for performance reasons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to create a transaction AND create a customer profile, you might consider creating transaction request and set createProfile=true.&amp;nbsp; If the transaction is successful, a customer profile is returned in the transaction response which you can store in your system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 21:55:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Created-customer-profile-and-payment-profile-but-cant-charge/m-p/66902#M40400</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2019-03-12T21:55:00Z</dc:date>
    </item>
  </channel>
</rss>

