cancel
Showing results for 
Search instead for 
Did you mean: 

Paypal Invoice ID in auth.net

I have set up paypal through authorize.net.  It works just fine... however when I search transactions in authorize.net there is no saved invoice id or name to search for.  It's really hard to search through a ton of paypal payments in order to find the one you want.  We HAVE to have the custom invoice id saved in to where you can see it in the list of auth.net transactions.  My boss is getting really mad about it.

How do I get a custom invoice id to show up in the transactions list in auth.net when making a paypal transaction through auth.net?  The following is what I send in.  You'll note the refID is what I want to show up in the invoice id slot in auth.net.  (everything in ##'s are variables that get replaced with real data of course)

 

<createTransactionRequest xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
              <merchantAuthentication>
                <name>#APIUserName#</name>
                <transactionKey>#APIPassword#</transactionKey>
              </merchantAuthentication>
              <refId>#orderid#</refId>
              <transactionRequest>
                <transactionType>authOnlyTransaction</transactionType>
                <amount>#amount#</amount>
                <payment>
                  <payPal>
                    <successUrl>#successurl#</successUrl>
                    <cancelUrl>#cancelurl#</cancelUrl>
                    <paypalLc></paypalLc>
                    <paypalHdrImg>#logofile#</paypalHdrImg>
                    <paypalPayflowcolor>FFFF00</paypalPayflowcolor>
                  </payPal>
                </payment>
                <shipTo>
                  <firstName>#first_name#</firstName>
                  <lastName>#last_name#</lastName>
                  <address>#address#</address>
                  <city>#city#</city>
                  <state>#state#</state>
                  <zip>#zip#</zip>
                  <country>#country#</country>
                </shipTo>
            </transactionRequest>
            </createTransactionRequest>

halfhoot
Member
2 REPLIES 2

In a createTransaction request you can send the invoice, it is in the order node. See below:

 

<createTransactionRequest xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
              <merchantAuthentication>
                <name>#APIUserName#</name>
                <transactionKey>#APIPassword#</transactionKey>
              </merchantAuthentication>
              <refId>#orderid#</refId>
              <transactionRequest>
                <transactionType>authOnlyTransaction</transactionType>
                <amount>#amount#</amount>
                <payment>
                  <payPal>
                    <successUrl>#successurl#</successUrl>
                    <cancelUrl>#cancelurl#</cancelUrl>
                    <paypalLc></paypalLc>
                    <paypalHdrImg>#logofile#</paypalHdrImg>
                    <paypalPayflowcolor>FFFF00</paypalPayflowcolor>
                  </payPal>
                </payment>

 

                <order>
                     <invoiceNumber>INVOICE HERE</invoiceNumber>
               </order>


                <shipTo>
                  <firstName>#first_name#</firstName>
                  <lastName>#last_name#</lastName>
                  <address>#address#</address>
                  <city>#city#</city>
                  <state>#state#</state>
                  <zip>#zip#</zip>
                  <country>#country#</country>
                </shipTo>
            </transactionRequest>
            </createTransactionRequest>

mmcguire
Administrator Administrator
Administrator

I just wanted to add that the API documents should have this listed under the PayPal section. I had to hunt around to find this post just to learn that it could indeed be sent with the Paypal information.