Announcement

Collapse
No announcement yet.

Receiving Error when omitting CV2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CnP.Support
    replied
    Good day!

    I guess the terminology was not used correctly. What it was supposed to mean was leave it blank and I can see that saying node should be left out may be taken as removing the node- I would have read it the same way.

    The node should be left blank and it will work as was shown in the previous post.

    Please test it.

    We always ask that forms and API questions be posted to the forum. The forum questions are answered by the developers so please use the forum for all your form and development questions.

    Let us know if we can be of any further assistance.

    Leave a comment:


  • mprcic@stand.org
    replied
    In an email from Support earlier today I was told specifically to leave the node out. That if we passed in the node with a null value, the bank may decline the transaction. I was told "If CV2 is blank the node should be left out." Full Email below:

    AUG 13, 2014 | 01:36PM EDT
    Brady replied:
    Melissa,
    I had Kami look into this and he would like this posted to the forums so my programmers can look into this deeper.
    Here is his response:
    CV2 is optional and the API will process without it if CV2 is provided in the XML then the bank will authorize with it and may decline the card for incorrect CV2.
    We make CV2 mandatory in our payment forms that face the public but the API has CV2 optional so the Virtual Terminal will not enforce it. If CV2 is blank the node should be left out.
    This is a form building question and should be posted to the forum so the programmers can work with the developer.
    Support Team | Click & Pledge
    ==========================================
    LIVE SUPPORT Q & A: 3:30 4:30 EDT, M F https://www3.gotomeeting.com/register/551105206
    FREE and PREMIER SUPPORT: Learn More at http://www.clickandpledge.com/support/

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    You may always test the XML at: https://Verify.PaaS.Cloud.ClickandPledge.com

    The above URL will show you if the XML works or not.

    Here is the issue:

    You are missing the node:

    <Cvv2></Cvv2>

    the node has to be in the XML but needs to be left blank.

    the following is the resulting XML:

    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <CnPAPI xmlns="urn:APISchema.xsd">
       <Version>12</Version>
       <Engine>
          <Request>
             <Operation>
                <OperationType>Transaction</OperationType>
                <IPAddress>50.1.1.1</IPAddress>
                <DeclineFraud>true</DeclineFraud>
                <EnableRestriction>true</EnableRestriction>
                <UrlReferrer />
             </Operation>
             <Authentication>
                <AccountGuid>d34f7264-eb39-4cd1-8532-5cbeff6fb6ce</AccountGuid>
                <AccountID>19060</AccountID>
             </Authentication>
             <Order>
                <OrderMode>Test</OrderMode>
                <Tracker />
                <Campaign />
                <CardHolder>
                   <BillingInformation>
                      <BillingFirstName><![CDATA[TestWOCv2]]></BillingFirstName>
                      <BillingMI />
                      <BillingLastName><![CDATA[TestWOCv2]]></BillingLastName>
                      <BillingEmail><![CDATA[[email protected]]]></BillingEmail>
                   </BillingInformation>
                   <CustomFieldList>
                      <CustomField>
                         <FieldName>Campaign</FieldName>
                         <FieldValue />
                      </CustomField>
                      <CustomField>
                         <FieldName>Community</FieldName>
                         <FieldValue>Oregon General</FieldValue>
                      </CustomField>
                      <CustomField>
                         <FieldName>Entity</FieldName>
                         <FieldValue>Stand for Children, Inc. (C4)</FieldValue>
                      </CustomField>
                      <CustomField>
                         <FieldName>Fund</FieldName>
                         <FieldValue>Membership</FieldValue>
                      </CustomField>
                      <CustomField>
                         <FieldName>MembershipState</FieldName>
                         <FieldValue>OR</FieldValue>
                      </CustomField>
                      <CustomField>
                         <FieldName>MembershipChapter</FieldName>
                         <FieldValue />
                      </CustomField>
                      <CustomField>
                         <FieldName>MembershipTeam</FieldName>
                         <FieldValue>001E000000JHIhcIAH</FieldValue>
                      </CustomField>
                   </CustomFieldList>
                   <PaymentMethod>
                      <PaymentType>CreditCard</PaymentType>
                      <CreditCard>
                         <NameOnCard><![CDATA[TestWOCv2 TestWOCv2]]></NameOnCard>
                         <CardNumber>4111111111111111</CardNumber>
                 <Cvv2></Cvv2>
                         <ExpirationDate>03/18</ExpirationDate>
                      </CreditCard>
                   </PaymentMethod>
                </CardHolder>
                <ThirdParty />
                <OrderItemList>
                   <OrderItem>
                      <ItemID>1</ItemID>
                      <ItemName><![CDATA[Donation]]></ItemName>
                      <Quantity>1</Quantity>
                      <UnitPrice>5000</UnitPrice>
                      <UnitDeductible>0</UnitDeductible>
                      <UnitTax>0</UnitTax>
                      <UnitDiscount>0</UnitDiscount>
                      <SKU />
                      <CouponCode />
                      <Campaign />
                   </OrderItem>
                </OrderItemList>
                <Receipt>
                   <SendReceipt>true</SendReceipt>
                   <Language>ENG</Language>
                   <OrganizationInformation />
                   <ThankYouMessage />
                   <TermsCondition />
                   <Deductible>false</Deductible>
                </Receipt>
                <Transaction>
                   <TransactionType>Authorize</TransactionType>
                   <DynamicDescriptor />
                   <CurrentTotals>
                      <TotalDiscount>0</TotalDiscount>
                      <TotalTax>0</TotalTax>
                      <TotalShipping>0</TotalShipping>
                      <TotalDeductible>0</TotalDeductible>
                      <Total>5000</Total>
                   </CurrentTotals>
                   <CouponCode />
                   <TransactionDiscount>0</TransactionDiscount>
                   <TransactionTax>0</TransactionTax>
                   <TransactionConvenienceFee>0</TransactionConvenienceFee>
                </Transaction>
             </Order>
          </Request>
       </Engine>
    </CnPAPI>

    Leave a comment:


  • mprcic@stand.org
    started a topic Receiving Error when omitting CV2

    Receiving Error when omitting CV2

    We have been experiencing very high declines due to bad CV2s and without being able to determine the cause, we have decided to omit the field. Based on this thread, http://forums.clickandpledge.com/showthread.php?t=1973, our understanding is that we can leave the field out.

    However, when I remove the field entirely from the XML, we get a failure and a transaction result code of 2052 - which is defined in the C&P Api as an XML error.

    I validated the XML as correctly formatted. Is something else required in order to leave out CV2? I'm pasting our XML below (test data)

    Thanks!

    <CnPAPI xmlns="urn:APISchema.xsd"><Version>12</Version><Engine><Request><Operation><OperationType >Transaction</OperationType><IPAddress>50.1.1.1</IPAddress><DeclineFraud>true</DeclineFraud><EnableRestriction>true</EnableRestriction><UrlReferrer></UrlReferrer></Operation><Authentication><AccountGuid>d34f7264-eb39-4cd1-8532-5cbeff6fb6ce</AccountGuid><AccountID>19060</AccountID></Authentication><Order><OrderMode>Test</OrderMode><Tracker><=!=[=C=D=A=T=A=[]=]=></Tracker><Campaign><=!=[=C=D=A=T=A=[]=]=></Campaign><CardHolder><BillingInformation><BillingF irstName><=!=[=C=D=A=T=A=[TestWOCv2]=]=></BillingFirstName><BillingMI></BillingMI><BillingLastName><=!=[=C=D=A=T=A=[TestWOCv2]=]=></BillingLastName><BillingEmail><=!=[=C=D=A=T=A=[[email protected]]=]=></BillingEmail></BillingInformation><CustomFieldList><CustomField>< FieldName>Campaign</FieldName><FieldValue></FieldValue></CustomField><CustomField><FieldName>Community</FieldName><FieldValue>Oregon General</FieldValue></CustomField><CustomField><FieldName>Entity</FieldName><FieldValue>Stand for Children, Inc. (C4)</FieldValue></CustomField><CustomField><FieldName>Fund</FieldName><FieldValue>Membership</FieldValue></CustomField><CustomField><FieldName>MembershipStat e</FieldName><FieldValue>OR</FieldValue></CustomField><CustomField><FieldName>MembershipChap ter</FieldName><FieldValue></FieldValue></CustomField><CustomField><FieldName>MembershipTeam </FieldName><FieldValue>001E000000JHIhcIAH</FieldValue></CustomField></CustomFieldList> <PaymentMethod><PaymentType>CreditCard</PaymentType><CreditCard><NameOnCard><=!=[=C=D=A=T=A=[TestWOCv2 TestWOCv2]=]=></NameOnCard><CardNumber>4111111111111111</CardNumber><ExpirationDate>03/18</ExpirationDate></CreditCard></PaymentMethod></CardHolder><ThirdParty></ThirdParty><OrderItemList><OrderItem><ItemID>1</ItemID><ItemName><=!=[=C=D=A=T=A=[Donation]=]=></ItemName><Quantity>1</Quantity><UnitPrice>5000</UnitPrice><UnitDeductible>0</UnitDeductible><UnitTax>0</UnitTax><UnitDiscount>0</UnitDiscount><SKU></SKU><CouponCode></CouponCode><Campaign><=!=[=C=D=A=T=A=[]=]=></Campaign></OrderItem></OrderItemList><Receipt><SendReceipt>true</SendReceipt><Language>ENG</Language><OrganizationInformation><=!=[=C=D=A=T=A=[]=]=></OrganizationInformation><ThankYouMessage><=!=[=C=D=A=T=A=[]=]=></ThankYouMessage><TermsCondition><=!=[=C=D=A=T=A=[]=]=></TermsCondition><Deductible>false</Deductible></Receipt><Transaction><TransactionType>Authorize</TransactionType><DynamicDescriptor></DynamicDescriptor><CurrentTotals><TotalDiscount>0</TotalDiscount><TotalTax>0</TotalTax><TotalShipping>0</TotalShipping><TotalDeductible>0</TotalDeductible><Total>5000</Total></CurrentTotals><CouponCode></CouponCode><TransactionDiscount>0</TransactionDiscount><TransactionTax>0</TransactionTax><TransactionConvenienceFee>0</TransactionConvenienceFee></Transaction></Order></Request></Engine></CnPAPI>
Working...
X