darrenultra 0 Posted March 23, 2011 Hey, I have installed Paypal Express Checkout IPN V0.4.1. After being directed back from google and coninuing with an order I am prestented with the following error message: An error occured when we tried to process your payment. Please contact the store owner for assistance. Error #1: Invalid Data (10428) Handling total is invalid. Error #2: Transaction refused because of an invalid argument. See additional error messages for details. (10413) The totals of the cart item amounts do not match order amounts. I checked my emails for the Paypal Error Dump ... In function: before_process() Response from PayPal: [security] = N/A [RequesterCredentials] [0] [Credentials] [0] [username] = N/A [Password] = N/A [subject] = N/A [DoExpressCheckoutPaymentResponse] [0] [Timestamp] = 2011-03-22T21:35:15Z [Ack] = FailureWithWarning [CorrelationID] = 1750102bbcf6 [Errors] [0] [shortMessage] = Invalid Data [LongMessage] = Handling total is invalid. [ErrorCode] = 10428 [severityCode] = Error [1] [shortMessage] = Transaction refused because of an invalid argument. See additional error messages for details. [LongMessage] = The totals of the cart item amounts do not match order amounts. [ErrorCode] = 10413 [severityCode] = Warning [Version] = 2.0 [build] = 1783668 [DoExpressCheckoutPaymentResponseDetails] = N/A From this request: (WARNING!!) DO NOT expose your API Username/Password to the public!! [?xml version="1.0" encoding="utf-8"?] [soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema] [soap:Header] [RequesterCredentials xmlns=urn:ebay:api:PayPalAPI] [Credentials xmlns=urn:ebay:apis:eBLBaseComponents] [username]support_api1.mywebsite.co.uk[/username] [Password]MYPASSWORD[/Password] [/Credentials] [/RequesterCredentials] [/soap:Header] [soap:Body] [DoExpressCheckoutPaymentReq xmlns=urn:ebay:api:PayPalAPI] [DoExpressCheckoutPaymentRequest] [Version xmlns=urn:ebay:apis:eBLBaseComponents]2.0[/Version] [DoExpressCheckoutPaymentRequestDetails xmlns=urn:ebay:apis:eBLBaseComponents] [PaymentAction]Sale[/PaymentAction] [Token]EC-0PG96129ND043584U[/Token] [PayerID]UZYR3UVM82FWQ[/PayerID] [PaymentDetails] [OrderTotal currencyID=GBP]23.99[/OrderTotal] [OrderDescription]Order placed on March 22, 2011, 10:34 pm by JOHN SMITH (ID: 7073)[/OrderDescription] [itemTotal currencyID=GBP]19.99[/itemTotal] [shippingTotal currencyID=GBP]4[/shippingTotal] [HandlingTotal currencyID=GBP]-4[/HandlingTotal] [TaxTotal currencyID=GBP]4[/TaxTotal] [NotifyURL]https://sslrelay.com/mywebsite.co.uk/ext/modules/payment/paypal_ec/ipn.php?language=[/NotifyURL] [Custom]Phone: 01600123123 -- Email: nicknicknick@nicknicknick.com[/Custom] [shipToAddress] [Name]John Smith[/Name] [street1]A Place[/street1] [street2][/street2] [CityName]Another Place[/CityName] [stateOrProvince]Wilhamptonshire[/stateOrProvince] [PostalCode]GR5 8RP[/PostalCode] [Country]GB[/Country] [/shipToAddress] [PaymentDetailsItem][Name]Smith Ad Alti T-Shirt-Size-Large-T-Shirt Colour-Tidepool[/Name][Number]758{2}162{24}341 (Ad Alti)[/Number][Amount currencyID=GBP]16.66[/Amount][Quantity]1[/Quantity][Tax currencyID=GBP]3.33[/Tax][/PaymentDetailsItem] [/PaymentDetails] [/DoExpressCheckoutPaymentRequestDetails] [/DoExpressCheckoutPaymentRequest] [/DoExpressCheckoutPaymentReq] [/soap:Body] [/soap:Envelope] If anyone knows what is causing this error please let me know. Even blind stabs in the dark appreciated. Thanks Share this post Link to post Share on other sites
darrenultra 0 Posted March 24, 2011 Hey, I have installed Paypal Express Checkout IPN V0.4.1. After being directed back from google and coninuing with an order I am prestented with the following error message: An error occured when we tried to process your payment. Please contact the store owner for assistance. Error #1: Invalid Data (10428) Handling total is invalid. Error #2: Transaction refused because of an invalid argument. See additional error messages for details. (10413) The totals of the cart item amounts do not match order amounts. I checked my emails for the Paypal Error Dump ... In function: before_process() Response from PayPal: [security] = N/A [RequesterCredentials] [0] [Credentials] [0] [username] = N/A [Password] = N/A [subject] = N/A [DoExpressCheckoutPaymentResponse] [0] [Timestamp] = 2011-03-22T21:35:15Z [Ack] = FailureWithWarning [CorrelationID] = 1750102bbcf6 [Errors] [0] [shortMessage] = Invalid Data [LongMessage] = Handling total is invalid. [ErrorCode] = 10428 [severityCode] = Error [1] [shortMessage] = Transaction refused because of an invalid argument. See additional error messages for details. [LongMessage] = The totals of the cart item amounts do not match order amounts. [ErrorCode] = 10413 [severityCode] = Warning [Version] = 2.0 [build] = 1783668 [DoExpressCheckoutPaymentResponseDetails] = N/A From this request: (WARNING!!) DO NOT expose your API Username/Password to the public!! [?xml version="1.0" encoding="utf-8"?] [soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema] [soap:Header] [RequesterCredentials xmlns=urn:ebay:api:PayPalAPI] [Credentials xmlns=urn:ebay:apis:eBLBaseComponents] [username]support_api1.mywebsite.co.uk[/username] [Password]MYPASSWORD[/Password] [/Credentials] [/RequesterCredentials] [/soap:Header] [soap:Body] [DoExpressCheckoutPaymentReq xmlns=urn:ebay:api:PayPalAPI] [DoExpressCheckoutPaymentRequest] [Version xmlns=urn:ebay:apis:eBLBaseComponents]2.0[/Version] [DoExpressCheckoutPaymentRequestDetails xmlns=urn:ebay:apis:eBLBaseComponents] [PaymentAction]Sale[/PaymentAction] [Token]EC-0PG96129ND043584U[/Token] [PayerID]UZYR3UVM82FWQ[/PayerID] [PaymentDetails] [OrderTotal currencyID=GBP]23.99[/OrderTotal] [OrderDescription]Order placed on March 22, 2011, 10:34 pm by JOHN SMITH (ID: 7073)[/OrderDescription] [itemTotal currencyID=GBP]19.99[/itemTotal] [shippingTotal currencyID=GBP]4[/shippingTotal] [HandlingTotal currencyID=GBP]-4[/HandlingTotal] [TaxTotal currencyID=GBP]4[/TaxTotal] [NotifyURL]https://sslrelay.com/mywebsite.co.uk/ext/modules/payment/paypal_ec/ipn.php?language=[/NotifyURL] [Custom]Phone: 01600123123 -- Email: nicknicknick@nicknicknick.com[/Custom] [shipToAddress] [Name]John Smith[/Name] [street1]A Place[/street1] [street2][/street2] [CityName]Another Place[/CityName] [stateOrProvince]Wilhamptonshire[/stateOrProvince] [PostalCode]GR5 8RP[/PostalCode] [Country]GB[/Country] [/shipToAddress] [PaymentDetailsItem][Name]Smith Ad Alti T-Shirt-Size-Large-T-Shirt Colour-Tidepool[/Name][Number]758{2}162{24}341 (Ad Alti)[/Number][Amount currencyID=GBP]16.66[/Amount][Quantity]1[/Quantity][Tax currencyID=GBP]3.33[/Tax][/PaymentDetailsItem] [/PaymentDetails] [/DoExpressCheckoutPaymentRequestDetails] [/DoExpressCheckoutPaymentRequest] [/DoExpressCheckoutPaymentReq] [/soap:Body] [/soap:Envelope] If anyone knows what is causing this error please let me know. Even blind stabs in the dark appreciated. Thanks Share this post Link to post Share on other sites
darrenultra 0 Posted March 24, 2011 Ok I found the solution in another thread: You have to hardcode the following variables on line 355 and 356 of paypal_ec.php $tx_total = 0.00; $ha_toatl = 0.00; ...sorry about double-posting the first message. I did so by accident whilst trying to post this solution. I'm not the aggressive sort. Share this post Link to post Share on other sites