<?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 Create Profile Using Charge a Credit card API in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Create-Profile-Using-Charge-a-Credit-card-API/m-p/62224#M36586</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;i was trying to create customer profile (along with customer payment profile) on invoking "Charge a Credit Card" API.&lt;/P&gt;&lt;PRE&gt;CustomerProfilePaymentType customerProfilePaymentType = new CustomerProfilePaymentType();
    		
    		Boolean isCreateProfile = true;
    		
    		customerProfilePaymentType.setCreateProfile(isCreateProfile);
    		// Create the payment transaction request
    		TransactionRequestType txnRequest = new TransactionRequestType();
    		txnRequest.setTransactionType(TransactionTypeEnum.AUTH_CAPTURE_TRANSACTION.value());
    		txnRequest.setPayment(paymentType);
    		txnRequest.setAmount(new BigDecimal(amount).setScale(2, RoundingMode.CEILING));
    		
    		txnRequest.setProfile(customerProfilePaymentType);&lt;/PRE&gt;&lt;P&gt;my payment was successfull, but failed to create a profile. am getting an error "One or more fields must contain a value".&lt;BR /&gt;&lt;BR /&gt;I want to know how to set those fields in java code.&lt;BR /&gt;&lt;BR /&gt;kindly help me in this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suresh Babu R&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 07:35:10 GMT</pubDate>
    <dc:creator>sureshrb3</dc:creator>
    <dc:date>2018-03-21T07:35:10Z</dc:date>
    <item>
      <title>Create Profile Using Charge a Credit card API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Create-Profile-Using-Charge-a-Credit-card-API/m-p/62224#M36586</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;i was trying to create customer profile (along with customer payment profile) on invoking "Charge a Credit Card" API.&lt;/P&gt;&lt;PRE&gt;CustomerProfilePaymentType customerProfilePaymentType = new CustomerProfilePaymentType();
    		
    		Boolean isCreateProfile = true;
    		
    		customerProfilePaymentType.setCreateProfile(isCreateProfile);
    		// Create the payment transaction request
    		TransactionRequestType txnRequest = new TransactionRequestType();
    		txnRequest.setTransactionType(TransactionTypeEnum.AUTH_CAPTURE_TRANSACTION.value());
    		txnRequest.setPayment(paymentType);
    		txnRequest.setAmount(new BigDecimal(amount).setScale(2, RoundingMode.CEILING));
    		
    		txnRequest.setProfile(customerProfilePaymentType);&lt;/PRE&gt;&lt;P&gt;my payment was successfull, but failed to create a profile. am getting an error "One or more fields must contain a value".&lt;BR /&gt;&lt;BR /&gt;I want to know how to set those fields in java code.&lt;BR /&gt;&lt;BR /&gt;kindly help me in this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suresh Babu R&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 07:35:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Create-Profile-Using-Charge-a-Credit-card-API/m-p/62224#M36586</guid>
      <dc:creator>sureshrb3</dc:creator>
      <dc:date>2018-03-21T07:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create Profile Using Charge a Credit card API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Create-Profile-Using-Charge-a-Credit-card-API/m-p/62240#M36601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For charge credit card transaction please refer to the&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sample-code-java/blob/master/src/main/java/net/authorize/sample/PaymentTransactions/ChargeCreditCard.java" target="_self"&gt;charge credit card&lt;/A&gt;&amp;nbsp;in the sample code.&lt;/P&gt;&lt;P&gt;You need to set up the &lt;STRONG&gt;customer&lt;/STRONG&gt; (&lt;SPAN class="pl-smi"&gt;CustomerDataType&lt;/SPAN&gt;) field in the transactionRequest for creating a customer profile (otherwise you'll get a 'customer info is missing' error).&amp;nbsp;&amp;nbsp;Also make sure your paymentType has all the required fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 09:27:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Create-Profile-Using-Charge-a-Credit-card-API/m-p/62240#M36601</guid>
      <dc:creator>basusap</dc:creator>
      <dc:date>2018-03-22T09:27:55Z</dc:date>
    </item>
  </channel>
</rss>

