close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paypal Pro payments will not process

Thread began 9/07/2010 1:46 pm by doug278506 | Last modified 9/08/2010 9:29 am by Jason Byrnes | 648 views | 9 replies |

doug278506

Paypal Pro payments will not process

When trying to make a transaction we are getting an error that says "Transaction could not be completed". As per another thread I installed this code and got the response that follows. Please advise as we need to be processing transactions as soon as possible. Please note in the code output that anywhere I have used the word "hidden" that is to hide sensitive information. Thanks in advance for any help.

<?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>";
echo "<p>UPS: <br />";
echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_UPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullRequest"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_UPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullResponse"]):"n/a")."<br /></p>";


echo "<p>FedEX: <br />";
echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullRequest"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullResponse"]):"n/a")."<br /></p>";

echo "<p>USPS: <br />";
echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullRequest"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullResponse"]):"n/a")."<br /></p>";
?>

Here is the resultant output from the previous code as displayed on the failure page:

Direct Pay:
Full Request: n/a
Full Response: n/a

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

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

UPS:
Full Request: <?xml version="1.0"?><AccessRequest xml:lang="en-US"><AccessLicenseNumber>hidden</AccessLicenseNumber><UserId>hidden</UserId><Password>hidden</Password></AccessRequest><?xml version="1.0"?><RatingServiceSelectionRequest xml:lang="en-US"><Request><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><RequestAction>Rate</RequestAction><RequestOption>rate</RequestOption></Request><PickupType><Code>01</Code></PickupType><Shipment><Shipper><ShipperNumber>W9607R</ShipperNumber><Address><City>hidden</City><StateProvinceCode>AL</StateProvinceCode><PostalCode>36703</PostalCode><CountryCode>US</CountryCode></Address></Shipper><ShipTo><Address><City>Selma</City><StateProvinceCode>AL</StateProvinceCode><PostalCode>36701</PostalCode><CountryCode>US</CountryCode></Address></ShipTo><Service><Code>03</Code></Service><Package><PackagingType><Code>02</Code></PackagingType><Dimensions><Length>12</Length><Width>12</Width><Height>12</Height><UnitOfMeasurement><Code>IN</Code></UnitOfMeasurement></Dimensions><PackageWeight><Weight>1.0</Weight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement></PackageWeight></Package></Shipment></RatingServiceSelectionRequest>
Full Response:

FedEX:
Full Request: n/a
Full Response: n/a

USPS:
Full Request: n/a
Full Response: n/a

Sign in to reply to this post

doug278506

conshann or

Well, I found code elsewhere on the forums that appears to be the correct troubleshooting code for PowerStore 3. Unfortunately, the output is still the same. I only see output under the UPS section.

<?php
if(!session_id()) session_start();
if($WAGLOBAL_Gateway == 1 ) {
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>";
}

if($WAGLOBAL_Gateway == 2) {
echo "<p>Auth Net: <br />";
echo "Full Request: ".(isset($_SESSION['WAAuthNet_postedValues'])?htmlentities($_SESSION['WAAuthNet_postedValues']):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION['WAAuthNet'])?htmlentities($_SESSION['WAAuthNet']):"n/a")."<br /></p>";
}

if($WAGLOBAL_Gateway == 3 ) {
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 /></p>";
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>";
}

if($WAGLOBAL_Shipping == 1) {
echo "<p>UPS: <br />";
echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_UPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullRequest"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_UPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullResponse"]):"n/a")."<br /></p>";
}
if($WAGLOBAL_Shipping == 2) {
echo "<p>FedEX: <br />";
echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullRequest"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullResponse"]):"n/a")."<br /></p>";
}
if($WAGLOBAL_Shipping == 3) {
echo "<p>USPS: <br />";
echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullRequest"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullResponse"]):"n/a")."<br /></p>";
}
?>

Sign in to reply to this post

Jason ByrnesWebAssist

where the UPS Response is blank, it suggests that the UPS information added to the store admin is not correct.


the shipping provider is not responding to the request because the request credentials are invalid.

Double check that you have the correct information added for the Account, Password, Access Key and Shipper number in the store admin.

Sign in to reply to this post

doug278506

UPS Shipping

No, as you can see in the output, the UPS section is the ONLY ONE that displays correct information. The Direct Pay part is the part with no output at all that should have output.

Sign in to reply to this post

Jason ByrnesWebAssist

The ups section has a reqest, but does not have a response.


This suggests that the rate lookup is failing.

this will happen before trying to process the transaction through paypal.

When it gets to the failure page, look at the address bar?

Does the address contain a shipping=failed querystring?


this means that the shipping rate lookup failed and that is the cause of being directed to the checkout failure page.

Sign in to reply to this post

doug278506

UPS Shipping

The following is the URL:

checkout_failure.php?shipping=fail

Sign in to reply to this post

Jason ByrnesWebAssist

yes, the "?shipping=fail" at the end of the URL means that the problem is caused by the shipping lookup.


As i said before: double check the Account, Password, Access Key and Shipper number in the store admin.

Sign in to reply to this post

doug278506

UPS Lookup

I just had the credentials verified....any other issues that might cause this to happen that you know of? Or is that definitely it? Either way, I guess I need to get in touch with UPS, but I'm not exactly sure what I'm supposed to tell them.

Sign in to reply to this post

doug278506

PayPal Issue

I just disabled shipping so that we could bypass that part and see if a transaction would go through. Now my output shows as follows:

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>HIDDEN</Username><Password>HIDDEN</Password><Signature>HIDDEN</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>Sale</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">1.04</OrderTotal><ItemTotal currencyID="USD">1</ItemTotal><TaxTotal currencyID="USD">0.04</TaxTotal><ButtonSource>WebAssist.eCartPHP.Pro.DP</ButtonSource><PaymentDetailsItem><Name>TEST</Name><Amount currencyID="USD">1</Amount><Quantity>1</Quantity><Number>2</Number></PaymentDetailsItem><ShipToAddress><Name>HIDDEN</Name><Street1>HIDDEN<Street1><CityName>HIDDEN</CityName><StateOrProvince>AL</StateOrProvince><PostalCode>36703</PostalCode><Country>US</Country><Phone>HIDDEN</Phone></ShipToAddress></PaymentDetails><CreditCard><CreditCardType>Visa</CreditCardType><CreditCardNumber>HIDDEN</CreditCardNumber><ExpMonth>HIDDEN</ExpMonth><ExpYear>2011</ExpYear><CardOwner><PayerStatus>verified</PayerStatus><PayerName><FirstName>Blake</FirstName><LastName>Buster</LastName></PayerName><Payer>HIDDEN</Payer><PayerCountry>US</PayerCountry><Address><Street1>HIDDEN</Street1><CityName>HIDDEN</CityName><StateOrProvince>AL</StateOrProvince><Country>US</Country><CountryName>US</CountryName><PostalCode>36703</PostalCode><Phone>HIDDEN</Phone></Address></CardOwner><CVV2>HIDDEN</CVV2></CreditCard><IPAddress>HIDDEN</IPAddress><MerchantSessionId>buqlja5rmurvs8vgdhbn0prcu2</MerchantSessionId></DoDirectPaymentRequestDetails></DoDirectPaymentRequest></DoDirectPaymentReq></soap:Body></soap:Envelope>
Full Response:


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


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


UPS:
Full Request:
Full Response:

So it looks like now I'm not getting a response from PayPal. Do you see anything in the output that might point to a reason why?

Thanks in advance for all your help.

Sign in to reply to this post

Jason ByrnesWebAssist

make sure there aren't any leading or trialing spaces in the settings for the shipping and paypal credentials.


Also make sure you are entering proper API credentials. The Paypal API Username will not be an email address. The API Username is not the same as your PayPal Username.

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