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

debugging paypal transactions

Thread began 5/20/2010 1:17 pm by dcb286193 | Last modified 5/27/2010 8:48 pm by Eric Mittman | 1990 views | 11 replies |

dcb286193

debugging paypal transactions

I am having issues with the confirmation checkout page. It keeps failing and I can not seem to get it to work. I have spent several days with no luck. So I am including the file with the pass code information stripped out. I did rename the file to send to you from confirm.php to confirm1.php so I did not write over my current page

Any help is appreciated.

Thank you
dennis.

Attached Files
confirm1.php.zip
Sign in to reply to this post

dcb286193

After doing a search for issues on the confirmation page, I ran accross a post where you suggested putting this code on the checkout_failure page

<?php echo(PP_DirectPayment_Result("Short Error Message")) ?>
<?php echo(PP_DirectPayment_Result("Long Error Message")) ?>

This is the error code that is generated if it helps: "Transaction failed due to internal error"

Sign in to reply to this post

dcb286193

After doing another search, I ran accross this post:

<?php
if(!session_id()) session_start();
echo "<p>Direct Pay: <br />";
echo "Full Request: ".(isset($_SESSION["PP_DirectPayment_postedValues"])?htmlentities($_SESSION["PP_DirectPayment_postedValues"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["PP_DirectPayment"])?htmlentities($_SESSION["PP_DirectPayment"]):"n/a")."<br /></p>";
echo "<p>Express Authorize <br />";
echo "Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."<br />";
echo "<p>Express Process: <br />";
echo "Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."<br /></p>";
?>

This is the code that is generated if it helps:

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>XXXXXXXXXXXXXXXXXXXXXXXX</Username><Password>XXXXXXXXXXXXXXXX</Password><Signature>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</Signature><Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><DoDirectPaymentReq xmlns="urn:ebay:api:PayPalAPI"><DoDirectPaymentRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><DoDirectPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><PaymentAction>Sale</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">257.00</OrderTotal><OrderDescription>Letterhead w/bleed</OrderDescription><ItemTotal currencyID="USD">257</ItemTotal><ButtonSource>WebAssist.eCartPHP.Pro.DP</ButtonSource><PaymentDetailsItem><Name>Letterhead w/bleed</Name><Amount currencyID="USD">257</Amount><Quantity>1</Quantity></PaymentDetailsItem><ShipToAddress><Name>Todd</Name><Street1>3604 4th Ave Ste 6</Street1><CityName>San Diego</CityName><StateOrProvince>CA</StateOrProvince><PostalCode>92103</PostalCode><Country>United States</Country><Phone>(619) 295-9877</Phone></ShipToAddress></PaymentDetails><CreditCard><CreditCardType>Visa</CreditCardType><CreditCardNumber>4xxxxxxxxxxxxxx</CreditCardNumber><ExpMonth>x</ExpMonth><ExpYear>20xx</ExpYear><CardOwner><PayerStatus>verified</PayerStatus><PayerName><FirstName>FirstName</FirstName><LastName>LastName</LastName></PayerName><Payer>email@email.com</Payer><PayerCountry>United States</PayerCountry><Address><Street1>xxx</Street1><CityName>city</CityName><StateOrProvince>State</StateOrProvince><Country>United States</Country><CountryName>United States</CountryName><PostalCode>zipCode</PostalCode><Phone>(619) XXX-XXXX</Phone></Address></CardOwner><CVV2>XXX</CVV2></CreditCard><IPAddress>76.212.204.1</IPAddress><MerchantSessionId>6qes765supct3fn4fljku56iv0</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">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</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-05-20T18:47:34Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">24d31676774f8</CorrelationID><Errors xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorType"><ShortMessage xsi:type="xs:string">Transaction failed due to internal error</ShortMessage><LongMessage xsi:type="xs:string">Internal Error</LongMessage><ErrorCode xsi:type="xs:token">10001</ErrorCode><SeverityCode xmlns="urn:ebay:apis:eBLBaseComponents">Error</SeverityCode></Errors><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1298200</Build></DoDirectPaymentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Express Authorize
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>XXXXXXXXXXXXXXXXXXXXX</Username><Password>XXXXXXXXXXXXXXXXXXXXX</Password><Signature>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</Signature><Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><SetExpressCheckoutReq xmlns="urn:ebay:api:PayPalAPI"><SetExpressCheckoutRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><SetExpressCheckoutRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><ReturnURL>http://www.xxxxxxxx.com/pp_confirm.php</ReturnURL><CancelURL>http://www.xxxxxxxx.com/pp_cancel.php</CancelURL><PaymentAction>Authorization</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">257.00</OrderTotal></PaymentDetails></SetExpressCheckoutRequestDetails></SetExpressCheckoutRequest></SetExpressCheckoutReq></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">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id="_0"><SetExpressCheckoutResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2010-05-20T18:09:51Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">c7b1d69222e64</CorrelationID><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1311648</Build><Token xsi:type="ebl:ExpressCheckoutTokenType">EC-48X44856L2268381J</Token></SetExpressCheckoutResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

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

Sign in to reply to this post

Eric Mittman

I have removed some of the details from your direct pay request because I didn't know if you intended on posting them. When I search on this error it says that it could be happening for a number of reasons. Since you are getting success on the Express Checkout it seems that things should be setup correctly. The only thing I can think of is that the item information you are sending is causing this error to be returned somehow.

Here is the item information from the request:

<PaymentDetailsItem>
<Name>Letterhead w/bleed</Name>
<Amount currencyID="USD">257</Amount>
<Quantity>1</Quantity>
</PaymentDetailsItem>

Do you get this same result if you test with an item that has different values? Just looking at this I'm not sure if the w/bleed is valid, it could be this part that is throwing things off. Please try this out with a couple of different items to see if you get the same result. Also, if you could test with different buyer info like the credit card and billing details this would also help to determine where the problem is. Please post back with whatever results you get.

Sign in to reply to this post

dcb286193

Thanks Eric for removing the code that I had missed. What a problem that would have been if that information was left.

I have spent the entire weekend reworking the pages from scratch. Started off with the checkout pages as built by the webassists checkout wizard. Sent one payment through and it worked-as is. I resetup the checkout page with validations using the forms builder with validation, then spent the rest of the time renaming all names of the posts to match names of the posts on the confirm page. Now nothing works yet I verified all the names transfer over correctly from one page to the next.

Bottom line I still receive the same error code "Transaction failed due to internal error". Do you any other suggestions as this is getting very frustrating.

Sign in to reply to this post

Eric Mittman

Are you just using Form Builder to add in validation to the checkout form? If so then you do not need to edit the existing form with Form Builder, instead you can just apply the server side validations to the default checkout page.

This should allow you to add in the validation that you need without having to update any of the form fields and leave the form on the checkout page intact. This is definitely the way that I would do it in the same scenario.

If you are starting with a working set of checkout pages make sure to backup and test each step along the way to ensure that you do not break any of the existing functionality. If you do then you can revert to your backup and let us know what the issue is that you are experiencing.

Sign in to reply to this post

dcb286193

OK figured out what was causing the issue with PayPal. On the form builder wizard on country you have "United States" as the value. According to PayPal this is not correct it needs to be "US". Thats it. PayPal Internal error code: 10001.

Now with paypal situated I am getting the following code errors having to do with?

Notice: Use of undefined constant undefined - assumed 'undefined' in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 464
Notice: Use of undefined constant undefined - assumed 'undefined' in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 465
Notice: Use of undefined constant undefined - assumed 'undefined' in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 466
Warning: Division by zero in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 480
Warning: Division by zero in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 481
Warning: Division by zero in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 500
Warning: Division by zero in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 501
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/i/p/m/ipmlithographi/html/confirm.php:464) in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 510
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/i/p/m/ipmlithographi/html/confirm.php:464) in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 510
Warning: sleep() expects parameter 1 to be long, string given in /home/content/i/p/m/ipmlithographi/html/webassist/email/mailformatting_php.php on line 348
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/i/p/m/ipmlithographi/html/confirm.php:464) in /home/content/i/p/m/ipmlithographi/html/webassist/email/mail_php.php on line 285
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/i/p/m/ipmlithographi/html/confirm.php:464) in /home/content/i/p/m/ipmlithographi/html/webassist/email/mail_php.php on line 285
Warning: Division by zero in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 519
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/i/p/m/ipmlithographi/html/confirm.php:464) in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 540
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/i/p/m/ipmlithographi/html/confirm.php:464) in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 540
Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/p/m/ipmlithographi/html/confirm.php:464) in /home/content/i/p/m/ipmlithographi/html/confirm.php on line 668

This has, I think, something to do with the email portion of the confirm page. Here is the start of the code where the issue begins.

line 464: $BurstSize = undefined;
line 465: $BurstTime = undefined;
line 466: $WaitTime = undefined;


Your help is always appreciated.

Sign in to reply to this post

Eric Mittman

In the checkout pages that are created with the checkout wizard the selection in the country menu will be United States, but the value is set to US, here is the code from this option in the country select list:

<option value="US">United States</option>



Was yours different from this?

As for the error you are now getting this is an issue with the Universal Email implementation within eCart, to resolve it you will need to update the following. Currently in the UE code that is on these lines you have this:

php:
$BurstSize = undefined;  

$BurstTime = undefined;  
$WaitTime = undefined;



You should update these lines so that they are like this instead:

php:
$BurstSize = 200;  

$BurstTime = 1;  
$WaitTime = 1;



This should stop the error that you are getting when you get to this page. I have logged this issue as a bug so that it can be fixed in a future update.

Sign in to reply to this post

dcb286193

I used the forms wizard to re-build the checkout page that was created with ecart to include validation since it does such a nice job. So, it probably wrote over the existing code when it rewrote the form (I am guessing). Atleast we know if using forms wizard to build a checkout page you will need to change the "United States" value to "US".

I did make the changes indicated and it has now successfully completed the transaction.

Thank you for all the support.

Sign in to reply to this post

Eric Mittman

The country select lists that are generated by the checkout wizard should have a value of 'US' for the United States. Is this not the case when you are running the wizard? Please post back and include a copy of the checkout page that was generated that has the incorrect value for the US and also include some info about your os and version of DW that you are working with. This is not an issue that I have seen or been able to reproduce, if eCart is writing any part of any checkout pages incorrectly I would like to have as much specific info as possible so that any potential issue can be corrected.

Sign in to reply to this post
loading

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...