cancel
Showing results for 
Search instead for 
Did you mean: 

PayPal Error with Sandbox Sample Code

I'm getting the following error when using my Sandbox Credentials using the Sample Code. This is only happening when I'm trying to do PayPal Express Checkout. My API Transaction Key and Login credentials work for other transactions.

 

Is this due to the Sandbox Maintenance that is scheduled for today at 6:00pm Pacific? 

 

Any help would be appreciated. Thanks!

 

 

E00027 : The transaction was unsuccessful. 57 : An error occurred during processing. Please try again

 

<?xml version="1.0" encoding="utf-8"?> 
<createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <messages>
    <resultCode>
      Error
    </resultCode>
    <message>
      <code>
        E00027
      </code>
      <text>
        The transaction was unsuccessful.
      </text>
    </message>
  </messages>
  <transactionResponse>
    <responseCode>
      3
    </responseCode>
    <rawResponseCode>
      0
    </rawResponseCode>
    <transId>
      2254998933
    </transId>
    <refTransID />
    <transHash>
      0573D45B85D937B5D90398C864BDF8F7
    </transHash>
    <testRequest>
      0
    </testRequest>
    <entryMode>
      Keyed
    </entryMode>
    <accountType>
      PayPal
    </accountType>
    <errors>
      <error>
        <errorCode>
          57
        </errorCode>
        <errorText>
          An error occurred during processing.  Please try again.
        </errorText>
      </error>
    </errors>
  </transactionResponse>
</createTransactionResponse>
mascotbooster
Member
3 REPLIES 3

Hello @mascotbooster

 

The maintenance happening later today is unrelated to your issue.  Could you please provide your entire XML request with any sensitive information removed?

 

Richard

RichardH
Administrator Administrator
Administrator

I recently re-enabled PayPal as a digital payment solution. Is it possible it will take some time to activate? Thanks!

 

Here is the XML request:

 

<?xml version="1.0" encoding="utf-8"?>
<createTransactionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>[MY_LOGIN]name>
<transactionKey>[MY_KEY]</transactionKey>
</merchantAuthentication>
<transactionRequest>
<transactionType>authOnlyTransaction</transactionType>
<amount>18.95</amount>
<payment>
<payPal>
<successUrl>https://my.server.com/success.html</successUrl>
<cancelUrl>https://my.server.com/cancel.html</cancelUrl>
<paypalLc></paypalLc>
<paypalHdrImg></paypalHdrImg>
<paypalPayflowcolor>FFFF00</paypalPayflowcolor>
</payPal>
</payment>
<lineItems>
<lineItem>
<itemId>item1</itemId>
<name>golf balls</name>
<quantity>1</quantity>
<unitPrice>18.95</unitPrice>
</lineItem>
</lineItems>
<shipTo>
<firstName>China</firstName>
<lastName>Bayles</lastName>
<company>Thyme for Tea</company>
<address>12 Main Street</address>
<city>Bellevue</city>
<state>WA</state>
<zip>98004</zip>
<country>USA</country>
</shipTo>
</transactionRequest>
</createTransactionRequest>

I believe it's something to do with my Digital Payment Solution - PayPal integration. Becuase, when using the default sandbox credentials it works. 

 

I've submited a support ticket