Announcement

Collapse
No announcement yet.

TRACKER Parameter

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

  • CnP.Support
    replied
    Hi;

    Tracker node is a child of Order node. why are you putting it at the bottom of the XML? The order of these nodes is important and you should not put them anywhere you want. The example shows you the exact order ..

    <Order>
    <OrderMode>Test</OrderMode>
    <Tracker>MothersDayDonation</Tracker>

    Take a look at the manual and Example 9: Line 18 - download the XML and take a look.

    I just tested it with the change & it works. see below:

    <CnPAPI xmlns="urn:APISchema.xsd">
    <Version>12</Version>
    <Engine>
    <Request>
    <Operation>
    <OperationType>Transaction</OperationType>
    <IPAddress>127.0.0.1</IPAddress>
    </Operation>
    <Authentication>
    <AccountGuid>d024735f-1055-42bc-9026-b0e4137a2e01</AccountGuid>
    <AccountID>12387</AccountID>
    </Authentication>
    <Order>
    <OrderMode>Test</OrderMode>
    <Tracker>MothersDayDonation</Tracker>
    <CardHolder>
    <BillingInformation>
    <BillingFirstName>Huda</BillingFirstName>
    <BillingLastName>Dabbouseh</BillingLastName>
    <BillingEmail>[email protected]</BillingEmail>
    <BillingPhone>6305679503</BillingPhone>
    </BillingInformation>
    <BillingAddress>
    <BillingAddress1>55 E Erie Apt 3003</BillingAddress1>
    <BillingAddress2 />
    <BillingAddress3 />
    <BillingCity>Chicago</BillingCity>
    <BillingStateProvince>IL</BillingStateProvince>
    <BillingPostalCode>60611</BillingPostalCode>
    <BillingCountryCode>840</BillingCountryCode>
    </BillingAddress>
    <CustomFieldList>
    <CustomField>
    <FieldName>Mother's Day Card Recipient Email</FieldName>
    <FieldValue>[email protected]</FieldValue>
    </CustomField>
    <CustomField>
    <FieldName>Would Like to Volunteer?</FieldName>
    <FieldValue>Yes</FieldValue>
    </CustomField>
    </CustomFieldList>
    <PaymentMethod>
    <PaymentType>CreditCard</PaymentType>
    <CreditCard>
    <NameOnCard>John Smith</NameOnCard>
    <CardNumber>4111111111111111</CardNumber>
    <Cvv2>123</Cvv2>
    <ExpirationDate>01/11</ExpirationDate>
    </CreditCard>
    </PaymentMethod>
    </CardHolder>
    <OrderItemList>
    <OrderItem>
    <ItemID>1</ItemID>
    <ItemName>Donation</ItemName>
    <Quantity>1</Quantity>
    <UnitPrice>500</UnitPrice>
    </OrderItem>
    </OrderItemList>
    <Receipt>
    <SendReceipt>true</SendReceipt>
    </Receipt>
    <Transaction>
    <TransactionType>Authorize</TransactionType>
    <CurrentTotals>
    <Total>500</Total>
    </CurrentTotals>
    </Transaction>

    </Order>
    </Request>
    </Engine>
    </CnPAPI>

    Leave a comment:


  • eclipsed82
    replied
    Also, the manual says:

    CnPAPI.Engine.Request.Order
    Path: CnPAPI.Engine.Request.Order
    Elements:
     OrderMode
     Tracker
     CardHolder
     ThirdParty
     OrderItemList
     Shipping
     Receipt
     Transaction
    Schema
    <xsd:element name="Order">
    <xsd:complexType>
    <xsd:sequence>
    Copyright © 2009, Click & Pledge Payment-as-a-Service [PaaS]  15
    <xsd:element ref="OrderMode"/>
    <xsd:element ref="Tracker" minOccurs="0"/>
    <xsd:element ref="IntegratedPartner" minOccurs="0"/>
    <xsd:element ref="CardHolder" minOccurs="0"/>
    <xsd:element ref="ThirdParty" minOccurs="0"/>
    <xsd:element ref="OrderItemList" minOccurs="0"/>
    <xsd:element ref="Shipping" minOccurs="0"/>
    <xsd:element ref="Receipt" minOccurs="0"/>
    <xsd:element ref="Transaction"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    Details for each of the elements are listed below:

    Tracker
    Description Tracker is a simple text that is an optional parameter which is passed along with
    each transaction. Transactions may be queried in the reporting section based
    on the Tracker text.
    Data Type String
    Range Minimum: blank
    Maximum: 50 characters
    Default
    Operation Transaction Operation only
    Input/output Input
    Version/Release 1.2
    Required No
    Example <Tracker>Solicitation20090301</Tracker>
    Schema
    <xsd:element name="Tracker">
    <xsd:simpleType>
    <xsd:annotation>
    <xsd:documentation>Tracker is a simple text that is an optional parameter which is passed along with each
    transaction. Transactions may be queried in the reporting section based on the Tracker text.</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:normalizedString">
    <xsd:minLength value="0"/>
    <xsd:maxLength value="50"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>

    Leave a comment:


  • eclipsed82
    replied
    This might be easier to read:

    <CnPAPI xmlns="urn:APISchema.xsd">
    <Version>12</Version>
    <Engine>
    <Request>
    <Operation>
    <OperationType>Transaction</OperationType>
    <IPAddress>127.0.0.1</IPAddress>
    </Operation>
    <Authentication>
    <AccountGuid>d024735f-1055-42bc-9026-b0e4137a2e01</AccountGuid>
    <AccountID>12387</AccountID>
    </Authentication>
    <Order>
    <OrderMode>Test</OrderMode>
    <CardHolder>
    <BillingInformation>
    <BillingFirstName>Huda</BillingFirstName>
    <BillingLastName>Dabbouseh</BillingLastName>
    <BillingEmail>[email protected]</BillingEmail>
    <BillingPhone>6305679503</BillingPhone>
    </BillingInformation>
    <BillingAddress>
    <BillingAddress1>55 E Erie Apt 3003</BillingAddress1>
    <BillingAddress2 />
    <BillingAddress3 />
    <BillingCity>Chicago</BillingCity>
    <BillingStateProvince>IL</BillingStateProvince>
    <BillingPostalCode>60611</BillingPostalCode>
    <BillingCountryCode>840</BillingCountryCode>
    </BillingAddress>
    <CustomFieldList>
    <CustomField>
    <FieldName>Motherís Day Card Recipient Email</FieldName>
    <FieldValue>[email protected]</FieldValue>
    </CustomField>
    <CustomField>
    <FieldName>Would Like to Volunteer?</FieldName>
    <FieldValue>Yes</FieldValue>
    </CustomField>
    </CustomFieldList>
    <PaymentMethod>
    <PaymentType>CreditCard</PaymentType>
    <CreditCard>
    <NameOnCard>John Smith</NameOnCard>
    <CardNumber>4111111111111111</CardNumber>
    <Cvv2>123</Cvv2>
    <ExpirationDate>01/11</ExpirationDate>
    </CreditCard>
    </PaymentMethod>
    </CardHolder>
    <OrderItemList>
    <OrderItem>
    <ItemID>1</ItemID>
    <ItemName>Donation</ItemName>
    <Quantity>1</Quantity>
    <UnitPrice>500</UnitPrice>
    </OrderItem>
    </OrderItemList>
    <Receipt>
    <SendReceipt>true</SendReceipt>
    </Receipt>
    <Transaction>
    <TransactionType>Authorize</TransactionType>
    <CurrentTotals>
    <Total>500</Total>
    </CurrentTotals>
    </Transaction>
    <Tracker>MothersDayDonation</Tracker>
    </Order>
    </Request>
    </Engine>
    </CnPAPI>

    Leave a comment:


  • eclipsed82
    replied
    It does not work via the sandbox:

    <CnPAPI xmlns="urn:APISchema.xsd"> <Version>12</Version> <Engine> <Request> <Operation> <OperationType>Transaction</OperationType> <IPAddress>127.0.0.1</IPAddress> </Operation> <Authentication> <AccountGuid>d024735f-1055-42bc-9026-b0e4137a2e01</AccountGuid> <AccountID>12387</AccountID> </Authentication> <Order> <OrderMode>Test</OrderMode> <CardHolder> <BillingInformation> <BillingFirstName>Huda</BillingFirstName> <BillingLastName>Dabbouseh</BillingLastName> <BillingEmail>[email protected]</BillingEmail> <BillingPhone>6305679503</BillingPhone> </BillingInformation> <BillingAddress> <BillingAddress1>55 E Erie Apt 3003</BillingAddress1> <BillingAddress2 /> <BillingAddress3 /> <BillingCity>Chicago</BillingCity> <BillingStateProvince>IL</BillingStateProvince> <BillingPostalCode>60611</BillingPostalCode> <BillingCountryCode>840</BillingCountryCode> </BillingAddress> <CustomFieldList> <CustomField> <FieldName>Motherís Day Card Recipient Email</FieldName> <FieldValue>[email protected]</FieldValue> </CustomField> <CustomField> <FieldName>Would Like to Volunteer?</FieldName> <FieldValue>Yes</FieldValue> </CustomField> </CustomFieldList> <PaymentMethod> <PaymentType>CreditCard</PaymentType> <CreditCard> <NameOnCard>John Smith</NameOnCard> <CardNumber>4111111111111111</CardNumber> <Cvv2>123</Cvv2> <ExpirationDate>01/11</ExpirationDate> </CreditCard> </PaymentMethod> </CardHolder> <OrderItemList> <OrderItem> <ItemID>1</ItemID> <ItemName>Donation</ItemName> <Quantity>1</Quantity> <UnitPrice>500</UnitPrice> </OrderItem> </OrderItemList> <Receipt> <SendReceipt>true</SendReceipt> </Receipt> <Transaction> <TransactionType>Authorize</TransactionType> <CurrentTotals> <Total>500</Total> </CurrentTotals> </Transaction> <Tracker>MothersDayDonation</Tracker> </Order> </Request> </Engine> </CnPAPI>

    Leave a comment:


  • CnP.Support
    replied
    Hi;

    It is hard to give you answer without seeing the XML. Would you please send us the XML so we can see. Have you tested the XML in the sandbox?

    https://developers.clickandpledge.co...mlsandbox1.htm

    We can tell you what is wrong if we can see the xml.

    Leave a comment:


  • eclipsed82
    started a topic TRACKER Parameter

    TRACKER Parameter

    HI,
    My transaction is giving me a result code of an XML Error:

    The element 'Order' in namespace 'urn:APISchema.xsd' has invalid child element 'Tracker' in namespace 'urn:APISchema.xsd'.

    I have been looking at the pdf manual that Click And Pledge Provides, and following the format, but this is returning an error. Tracker is an inner child of Order, yet it is not recognizing this. Please let me know how to fix this ASAP.
    Thanks
Working...
X