close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PS3 Checkout Failure

Thread began 8/04/2010 4:13 pm by robert222776 | Last modified 8/06/2010 10:19 am by Jason Byrnes | 1105 views | 7 replies |

robert222776

PS3 Checkout Failure

I get the following message after inserting the troubleshooting code, suggested by Jason, into the checkout failure page. I have made modifications to the PS3 shipping calculations to accommodate my situation. All is well with that until I try to checkout from the confirm page. I am also using the Auth and Capture feature offered by PP PaymentsPro, and I have changed the appropriate code in PS3 to allow for that. I have had successful transactions in the sand box before, but not since I have changed the shipping code. This is a test store, and I am using my PayPal sandbox, so I do not believe any of the information is sensitive. Can you please give me some idea where to start the troubleshooting process, or what information seems to be missing, or causing the problem?

Thanks,
Robert

Direct Pay:
Full Request: <?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>robert_1276740772_biz_api1.evantagefive.com</Username><Password>1276740777</Password><Signature>AbGaA2Z9MiNT5rwEE0cv00K6dffUA6n87goZC5LU0vWIWCifhvOGyIOb</Signature><Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><DoDirectPaymentReq xmlns="urn:ebay:api:PayPalAPI"><DoDirectPaymentRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">2.20</Version><DoDirectPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><PaymentAction>Authorization</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">2448.97</OrderTotal><ItemTotal currencyID="USD">1859.97</ItemTotal><TaxTotal currencyID="USD">186</TaxTotal><ButtonSource>WebAssist.eCartPHP.Pro.DP</ButtonSource><PaymentDetailsItem><Name>Enclosure Kit </Name><Amount currencyID="USD">379.99</Amount><Quantity>2</Quantity><Number>5</Number></PaymentDetailsItem><PaymentDetailsItem><Name>Enclosure Kit </Name><Amount currencyID="USD">924.99</Amount><Quantity>1</Quantity><Number>41</Number></PaymentDetailsItem><PaymentDetailsItem><Name>Cat Ramp with Scratching Post</Name><Amount currencyID="USD">175</Amount><Quantity>1</Quantity><Number>84</Number></PaymentDetailsItem><ShipToAddress><Name>John Doe</Name><Street1>123 Main St.</Street1><CityName>Anytown</CityName><StateOrProvince>CA</StateOrProvince><PostalCode>95555</PostalCode><Country>US</Country><Phone>707-123-4567</Phone></ShipToAddress></PaymentDetails><CreditCard><CreditCardType>Visa</CreditCardType><CreditCardNumber>4437914971054348</CreditCardNumber><ExpMonth>06</ExpMonth><ExpYear>2015</ExpYear><CardOwner><PayerStatus>verified</PayerStatus><PayerName><FirstName>John</FirstName><LastName>Doe</LastName></PayerName><Payer>rjttjr@sonic.net</Payer><PayerCountry>US</PayerCountry><Address><Street1>123 Main St.</Street1><CityName>Anytown</CityName><StateOrProvince>CA</StateOrProvince><Country>US</Country><CountryName>US</CountryName><PostalCode>95555</PostalCode><Phone>707-123-4567</Phone></Address></CardOwner><CVV2>123</CVV2></CreditCard><IPAddress>98.207.25.217</IPAddress><MerchantSessionId>880c6a1671a71b03a4c08d626ecfbb39</MerchantSessionId></DoDirectPaymentRequestDetails></DoDirectPaymentRequest></DoDirectPaymentReq></soap:Body></soap:Envelope>
Full Response: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI"><SOAP-ENV:Header><Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext" xsi:type="wsse:SecurityType"></Security><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" xsi:type="ebl:CustomSecurityHeaderType"><Credentials xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:UserIdPasswordType"><Username xsi:type="xs:string"></Username><Password xsi:type="xs:string"></Password><Signature xsi:type="xs:string">AbGaA2Z9MiNT5rwEE0cv00K6dffUA6n87goZC5LU0vWIWCifhvOGyIOb</Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id="_0"><DoDirectPaymentResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2010-08-04T20:01:25Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">9139629867d05</CorrelationID><Errors xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorType"><ShortMessage xsi:type="xs:string">Transaction refused because of an invalid argument. See additional error messages for details.</ShortMessage><LongMessage xsi:type="xs:string">The totals of the cart item amounts do not match order amounts.</LongMessage><ErrorCode xsi:type="xs:token">10413</ErrorCode><SeverityCode xmlns="urn:ebay:apis:eBLBaseComponents">Error</SeverityCode></Errors><Version xmlns="urn:ebay:apis:eBLBaseComponents">2.20</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1421734</Build><Amount xsi:type="cc:BasicAmountType" currencyID="USD">2045.97</Amount></DoDirectPaymentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Express Authorize
Full Request: n/a
Full Response: n/a

Express Process:
Full Request: n/a
Full Response: n/a

Sign in to reply to this post

Jason ByrnesWebAssist

the error being returned is:
<LongMessage xsi:type="xs:string">The totals of the cart item amounts do not match order amounts.</LongMessage>


the issue is being caused by the changes that where made to the shipping code, there is no shipping value being passed.


What exactly was changed in the shipping code?

Sign in to reply to this post

robert222776

Thanks jason. I have implemented a two zone (based on zip code) shipping cost. Briefly, I added two fields to the product table in the database, one for each zone (roughly east or west of the Mississippi). Every product has two shipping costs, one which is ultimately used based on the buyers zip code. I have modified the shopping cart so the buyer can enter their zip code. I have also entered in conditional statements (based on zip code) on the cart and confirm pages that determine and calculates the shipping cost per product added to the cart, the total shipping cost, and the grand total (products+tax+shipping), with the help of functions I added to the eCart definition page. The cart and confirm pages work fine, it is when I go to check out that I see the above problem. I expected to see some kind of problem based on my changes so far, and hoped that you would confirm the origin of the problem.

I have not gutted any of the original shipping code, but I expect that leaving it there will not cause problems, since that part of the store is not set up (i..e. without the real time shipping quotes), those variables should have no value. I have just added my own code for shipping and brought those values into the equations. The reason I am not using the pre-built shipping function is the seller has already used a similar zone shipping system, and feels it works best for his types of products (large and heavy).

Based on your response, I will attempt to carry my changes forward until I get a "sale" authorization confirmation. With the new ticket system, I am not sure if you can continue helping me within the forum format since this is clearly not an as-is implementation.

However, please let me know if my assumptions about the pre-built shipping code are incorrect.

Thanks,
Robert

Sign in to reply to this post

Jason ByrnesWebAssist

leaving the original shipping code in place will not cause an issue, the rate lookup will just fail.


the cause of the problem is that the shipping rate you are returning is being added to the grand total of the cart. but there is no shipping amount being sent to paypal.

If you examine the full request, you will see:

<OrderTotal currencyID="USD">2448.97</OrderTotal>
<ItemTotal currencyID="USD">1859.97</ItemTotal>
<TaxTotal currencyID="USD">186</TaxTotal><ButtonSource>WebAssist.eCartPHP.Pro.DP</ButtonSource>
<PaymentDetailsItem><Name>Enclosure Kit </Name>
<Amount currencyID="USD">379.99</Amount>
<Quantity>2</Quantity><Number>5</Number>
</PaymentDetailsItem>
<PaymentDetailsItem>
<Name>Enclo sure Kit </Name>
<Amount currencyID="USD">924.99</Amount>
<Quantity>1</Quantity><Number>41</Number>
</PaymentDetailsItem>
<PaymentDetailsItem>
<Name>Cat Ramp with Scratching Post</Name>
<Amount currencyID="USD">175</Amount>
<Quantity>1</Quantity>
<Number>84</Number>
</PaymentDetailsItem>




the paypal system will look at the individual item info and make sure that the item info passed adds up to the item total. It will also take the item total, tax and shipping and make sure it adds up to the OrderTotal.


In your case, ItemTotal plus tax is not adding up to the Order total.

Sign in to reply to this post

robert222776

Thanks Jason.

So, is this that part of the original confirm page code I need to edit for my own shipping totals (i.e with my "TotalZoneShipping" value and my "ZoneShippingTotal() function?

$nextIndex = count($PP_DirectPayment_optional[0]);
$PP_DirectPayment_optional[0][$nextIndex] = "ShippingTotal";
$PP_DirectPayment_optional[1][$nextIndex] = "".$WA_Store_Cart->GetShipping() ."";

Anywhere else for PayPal?

Thanks,
Robert

Sign in to reply to this post

Jason ByrnesWebAssist

really you would want to store the result of your ZoneShippingTotal() function into a session variable, then create a shipping rule that uses a flat rate calculation of $_SESSION['sessionName'] where session name is the session you create. and instead of manually adding it to the subtotal, let eCart do that for you.

Sign in to reply to this post

robert222776

Your idea gave made me think about what I was doing. To use a "house wiring" analogy, I was abandoning the existing wiring for "getShipping()" in favor of all new wiring (my new function with a different name). Why not just use the current getShipping() function name for my new code that determine the shipping cost for the item based on zip code? I figured this would work since the code on the key pages that used getShipping() would take me "home" to PayPal. Well, it worked, and all my shopping cart products, tax, and shipping costs made it through to "Checkout Success" and the transaction record shows up in the "sellers" PP Sand Box!

Thanks Jason!

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear this is working for you.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...