Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Contributor
Posts: 12
Registered: ‎01-31-2019

getHostedPaymentPageRequest unable to send descriptions

Hi,

 

We need to send additional information as part of the transaction sent to the hosted payment page.

 

According the the documentation a description can be sent as part of the lineItems or part of the order elements, but we receive error messages stating the message does not conform to the XSD.

 

However, the documentation for getHostedPaymentPageRequest shows that they should be accepted Authorize.Net API Documentation

 

Can we assume the documentation is wrong?

 

Thanks

Nick

 

 

 

 

 

<getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
        <merchantAuthentication><name>6J5abP9XXX</name><transactionKey>9362yZFdRx62CXXX</transactionKey></merchantAuthentication>
        <transactionRequest>
                <transactionType>authCaptureTransaction</transactionType>
                <amount>200.00</amount>
                <poNumber>16043260761131</poNumber>

        <lineItems>
            <lineItem>
                <itemId>1123</itemId>
                <name> Name1 </name>
                <description>college_name,finance_code</description>
                <quantity>1</quantity>
                <unitPrice>10.00</unitPrice>
                <taxable>false</taxable>
            </lineItem>
            <lineItem>
                <itemId>1376346</itemId>
                <name> Name2 </name>
                <description>college_name,finance_code</description>
                <quantity>1</quantity>
                <unitPrice>20.00</unitPrice>
                <taxable>false</taxable>
            </lineItem>
        </lineItems>

Or

 

        <transactionRequest>
                <transactionType>authCaptureTransaction</transactionType>
                <amount>200.00</amount>
                <poNumber>16043272383772</poNumber>
        <order>
            <invoiceNumber>1244</invoiceNumber>
            <description>Some description text</description>
        </order>
        <customer>
          <email>nick.j.kings%40gmail.com</email>
        </customer>
        <billTo>
Contributor
Posts: 12
Registered: ‎01-31-2019

Re: getHostedPaymentPageRequest unable to send descriptions

I have found that I am able to send the <description> element, IF I get the ordering  in the XML correct

 

Could that be a similar solution for sending <lineItems> as part of the getHostedPaymentPageRequest / transactionRequest?

 

Thanks

Nick

 

<getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
    <merchantAuthentication><name>6J5abPXXXX</name><transactionKey>9362yZFdRx62XXXX</transactionKey></merchantAuthentication>
    <transactionRequest>
        <transactionType>authCaptureTransaction</transactionType>
        <amount>200.00</amount>
        <order>
            <invoiceNumber>16043353446059</invoiceNumber>
            <description>15955970464b3J6,collegename,financecode:15955970464b3J6R6V7xZM0xoB7kk2K31OhaJHN8F9R9H,newcollege,fincode2</description>
        </order>
        <poNumber>16043353446059</poNumber>
        <customer>
            <email>nickXXXXX.com</email>
        </customer>
Member
Posts: 1
Registered: ‎11-28-2020

Re: getHostedPaymentPageRequest unable to send descriptions

Customer satisfaction surveys give firms specific information about positive and negative perceptions, which could improve marketing or sales efforts.

https://surveyz.onl/