<?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 Failed to create payment profile in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Failed-to-create-payment-profile/m-p/49087#M24706</link>
    <description>&lt;P&gt;I kept getting below error message when creating a payment profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:accountType' element is invalid - The value 'CHECKING' is invalid according to its datatype 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:bankAccountTypeEnum' - The Enumeration constraint failed"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I use ruby-sdk to create the transaction as below:&lt;/P&gt;&lt;P&gt;=&amp;gt; AuthorizeNet::CIM::Transaction.new(ENV['AUTH_NET_API_LOGIN'], ENV['AUTH_NET_API_KEY'], :gateway =&amp;gt; :sandbox)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I did something below:&lt;/P&gt;&lt;P&gt;=&amp;gt; payment_profile = AuthorizeNet::CIM::PaymentProfile.new(:payment_method =&amp;gt; echeck)&lt;/P&gt;&lt;P&gt;=&amp;gt; response = transaction.create_payment_profile(payment_profile, '30551257')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used correct bank account to create the "echeck" like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;&amp;nbsp;echeck = AuthorizeNet::ECheck.new('052002167', '9104245278', 'Valid Bank Account', 'Andy Valid Name')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me to explain what happened here? Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2014 13:55:06 GMT</pubDate>
    <dc:creator>yorzi</dc:creator>
    <dc:date>2014-12-09T13:55:06Z</dc:date>
    <item>
      <title>Failed to create payment profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Failed-to-create-payment-profile/m-p/49087#M24706</link>
      <description>&lt;P&gt;I kept getting below error message when creating a payment profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:accountType' element is invalid - The value 'CHECKING' is invalid according to its datatype 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:bankAccountTypeEnum' - The Enumeration constraint failed"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I use ruby-sdk to create the transaction as below:&lt;/P&gt;&lt;P&gt;=&amp;gt; AuthorizeNet::CIM::Transaction.new(ENV['AUTH_NET_API_LOGIN'], ENV['AUTH_NET_API_KEY'], :gateway =&amp;gt; :sandbox)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I did something below:&lt;/P&gt;&lt;P&gt;=&amp;gt; payment_profile = AuthorizeNet::CIM::PaymentProfile.new(:payment_method =&amp;gt; echeck)&lt;/P&gt;&lt;P&gt;=&amp;gt; response = transaction.create_payment_profile(payment_profile, '30551257')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used correct bank account to create the "echeck" like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;&amp;nbsp;echeck = AuthorizeNet::ECheck.new('052002167', '9104245278', 'Valid Bank Account', 'Andy Valid Name')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me to explain what happened here? Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2014 13:55:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Failed-to-create-payment-profile/m-p/49087#M24706</guid>
      <dc:creator>yorzi</dc:creator>
      <dc:date>2014-12-09T13:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to create payment profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Failed-to-create-payment-profile/m-p/49089#M24708</link>
      <description>&lt;P&gt;&lt;A target="_blank" href="https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd"&gt;https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;maybe it case sensitive?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2014 14:18:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Failed-to-create-payment-profile/m-p/49089#M24708</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-12-09T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to create payment profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Failed-to-create-payment-profile/m-p/49091#M24710</link>
      <description>&lt;P&gt;Oh, You are right. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2014 14:46:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Failed-to-create-payment-profile/m-p/49091#M24710</guid>
      <dc:creator>yorzi</dc:creator>
      <dc:date>2014-12-09T14:46:32Z</dc:date>
    </item>
  </channel>
</rss>

