Im having an issues trying to implement paypals Express Checkout Second Redirect option if a user tries to add additional cart items during a paypal payment flow. I am getting the 10001 Error , 'Transaction failed due to internal error'. Here's the only documentation i can find: Express Checkout Second Redirect What i have tried so far is to basically repeat the original setExpressCheckout request though adding the paypal TOKEN recieved in the original successful request and then updating the cart items and values. Original Request: [successful] array (size=29)
'METHOD' => string 'SetExpressCheckout' (length=18)
'PAYMENTREQUEST_0_PAYMENTACTION' => string 'Sale' (length=4)
'VERSION' => float 124
'USER' => string 'xxxx' (length=25)
'PWD' => string 'xxxx' (length=16)
'SIGNATURE' => string 'xxxx' (length=56)
'L_SHIPPINGOPTIONNAME0' => string 'Flat' (length=4)
'L_SHIPPINGOPTIONAMOUNT0' => float 6.99
'L_SHIPPINGOPTIONISDEFAULT0' => string 'true' (length=4)
'PAYMENTREQUEST_0_INSURANCEOPTIONSOFFERED' => string 'false' (length=5)
'PAYMENTREQUEST_0_SHIPPINGAMT' => string '6.99' (length=4)
'PAYMENTREQUEST_0_ITEMAMT' => float 14.39
'PAYMENTREQUEST_0_AMT' => float 21.38
'MAXAMT' => float 54.39
'PAYMENTREQUEST_0_CURRENCYCODE' => string 'AUD' (length=3)
'RETURNURL' => string 'xxxx' (length=42)
'CANCELURL' => string 'xxxx' (length=42)
'CALLBACK' => string 'xxxx' (length=60)
'CALLBACKTIMEOUT' => string '6' (length=1)
'CALLBACKVERSION' => string '61.0' (length=4)
'ALLOWNOTE' => int 1
'PAYMENTREQUEST_0_INVNUM' => string '226622' (length=6)
'PAYMENTREQUEST_0_TAXAMT' => int 0
'L_PAYMENTREQUEST_0_NAME0' => string 'Game of Thrones Oberyn POP! vynil [Pre Ordered]' (length=47)
'L_PAYMENTREQUEST_0_AMT0' => string '14.39' (length=5)
'L_PAYMENTREQUEST_0_QTY0' => int 1
'L_PAYMENTREQUEST_0_NUMBER0' => string '849803050719' (length=12)
'L_PAYMENTREQUEST_0_DESC0' => string '1' (length=1) Second Request: [Failure] array (size=35)
'TOKEN' => string 'EC-1TV65214D77585209' (length=20) // Same token as orignal
'METHOD' => string 'SetExpressCheckout' (length=18)
'PAYMENTREQUEST_0_PAYMENTACTION' => string 'Sale' (length=4)
'VERSION' => float 124
'USER' => string 'xxxx' (length=25)
'PWD' => string 'xxxx' (length=16)
'SIGNATURE' => string 'xxxx' (length=56)
'L_SHIPPINGOPTIONNAME0' => string 'Flat' (length=4)
'L_SHIPPINGOPTIONAMOUNT0' => float 6.99
'L_SHIPPINGOPTIONISDEFAULT0' => string 'true' (length=4)
'PAYMENTREQUEST_0_INSURANCEOPTIONSOFFERED' => string 'false' (length=5)
'PAYMENTREQUEST_0_SHIPPINGAMT' => string '6.99' (length=4)
'PAYMENTREQUEST_0_ITEMAMT' => string '32.38' (length=5)
'PAYMENTREQUEST_0_AMT' => float 39.37
'MAXAMT' => float 72.38
'PAYMENTREQUEST_0_CURRENCYCODE' => string 'AUD' (length=3)
'RETURNURL' => string 'xxxx' (length=42)
'CANCELURL' => string 'xxxx' (length=42)
'CALLBACK' => string 'xxxx' (length=60)
'CALLBACKTIMEOUT' => string '6' (length=1)
'CALLBACKVERSION' => string '61.0' (length=4)
'ALLOWNOTE' => int 1
'PAYMENTREQUEST_0_INVNUM' => string '226622' (length=6)
'PAYMENTREQUEST_0_TAXAMT' => int 0
'L_PAYMENTREQUEST_0_NAME0' => string 'Game of Thrones Oberyn POP! vynil [Pre Ordered]' (length=47)
'L_PAYMENTREQUEST_0_AMT0' => string '14.39' (length=5)
'L_PAYMENTREQUEST_0_QTY0' => int 1
'L_PAYMENTREQUEST_0_NUMBER0' => string '849803050719' (length=12)
'L_PAYMENTREQUEST_0_DESC0' => string '1' (length=1)
'L_PAYMENTREQUEST_0_NAME1' => string 'Game of Thrones Series 1 White Walker POP! Vinyl [Back Ordered]' (length=63)
'L_PAYMENTREQUEST_0_AMT1' => string '17.99' (length=5)
'L_PAYMENTREQUEST_0_QTY1' => int 1
'L_PAYMENTREQUEST_0_NUMBER1' => string '830395030173' (length=12)
'L_PAYMENTREQUEST_0_DESC1' => string '1' (length=1) The response back from paypal is always: 'ACK' => string 'Failure' (length=7)
'VERSION' => string '124' (length=3)
'BUILD' => string '23255924' (length=8)
'L_ERRORCODE0' => string '10001' (length=5)
'L_SHORTMESSAGE0' => string 'Transaction failed due to internal error' (length=40)
'L_LONGMESSAGE0' => string 'Internal Error' (length=14)
'L_SEVERITYCODE0' => string 'Error' (length=5) I have tried to find any similar problems, expamples or any other documentation but i am unable to find anything to help me. Has anyone had any similar issues?
... View more