close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paypal Express Checkout

Thread begun 8/12/2010 7:26 am by rob294118 | Last modified 8/16/2010 7:06 am by Jason Byrnes | 7269 views | 11 replies |

rob294118

Paypal Express Checkout

I have all of my client's Paypal API info in place.

When I try to checkout using the Paypal Express checkout option, I am prompted to login to my Paypal account. When I click "Continue" in Paypal to the confirmation page to pay, I am brought back the my sites "Checkout Failure" page.

Please help.

Sign in to reply to this post

Jason ByrnesWebAssist

add the following code to the failure page:

php:
<?php

     
if(!session_id()) session_start(); 
     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 will write the full request and full response from paypal to the page to help us trouble shoot the issue.

NOTE:
the full request and response will contain sensitive information that should be removed before posting here.

Sign in to reply to this post

rob294118

This time, I had an item in my cart, logged into Paypal to pay and was returned to cart.php page saying my cart was empty.

I tried again and was given this code:

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">Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><SetExpressCheckoutReq xmlns="urn:ebay:api:PayPalAPI"><SetExpressCheckoutRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">2.20</Version><SetExpressCheckoutRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><OrderTotal currencyID="USD">7.61</OrderTotal><ReturnURL>http://acbyd.com/pp_confirm.php</ReturnURL><CancelURL>http://acbyd.com/pp_cancel.php</CancelURL><PaymentAction>Authorization</PaymentAction></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">Au6YJm4HdUbtCSpezUjAqnGT7JNCApkBTEv0nuk1ZSnW9HA86D7SQ3Ni</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-08-12T15:44:19Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">2d9ecf56b347c</CorrelationID><Version xmlns="urn:ebay:apis:eBLBaseComponents">2.20</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1421734</Build><Token xsi:type="ebl:ExpressCheckoutTokenType">EC-7BH574685M393521F</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

rob294118

Any ideas on this?

Sign in to reply to this post

rob294118

Suuport Request

Do I need to open a support request? We were communicating 6 hours ago.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

this is reporting success, i dont think the issue is paypal, it ios most likely a shipping issue.


change the code on the failure page to this:

php:
<?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>";  

?>




this will write the response and request from the shipping providers as well.


NOTE: Support response times can take 1 to 2 business days.

Sign in to reply to this post

rob294118

The first time through, I always get my shopping cart is empty.

This is the displayed text.

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

<SetExpressCheckoutReq xmlns="urn:ebay:api:PayPalAPI"><SetExpressCheckoutRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">2.20</Version><SetExpressCheckoutRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><OrderTotal currencyID="USD">7.61</OrderTotal><ReturnURL>http://acbyd.com/pp_confirm.php</ReturnURL><CancelURL>http://acbyd.com/pp_cancel.php</CancelURL><PaymentAction>Authorization</PaymentAction></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">Au6YJm4HdUbtCSpezUjAqnGT7JNCApkBTEv0nuk1ZSnW9HA86D7SQ3Ni</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-08-13T16:09:22Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">ea3264cd659d4</CorrelationID><Version xmlns="urn:ebay:apis:eBLBaseComponents">2.20</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1421734</Build><Token xsi:type="ebl:ExpressCheckoutTokenType">EC-28K68987NW493433H</Token></SetExpressCheckoutResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

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

UPS:
Full Request: <?xml version="1.0"?><AccessRequest xml:lang="en-US"><AccessLicenseNumber>1C66B098DCE07150</AccessLicenseNumber><UserId>W8063R</UserId><Password>acbyd1954</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>W8063R</ShipperNumber><Address><City>Ontario</City><StateProvinceCode>CA</StateProvinceCode><PostalCode>91762</PostalCode><CountryCode>US</CountryCode></Address></Shipper><ShipTo><Address><PostalCode></PostalCode><CountryCode></CountryCode></Address></ShipTo><Service><Code>11</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>3.3</Weight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement></PackageWeight></Package></Shipment></RatingServiceSelectionRequest>
Full Response: <?xml version="1.0"?> <RatingServiceSelectionResponse><Response><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><ResponseStatusCode>0</ResponseStatusCode><ResponseStatusDescription>Failure</ResponseStatusDescription><Error><ErrorSeverity>Hard</ErrorSeverity><ErrorCode>111100</ErrorCode><ErrorDescription>The requested service is invalid from the selected origin.</ErrorDescription></Error></Response></RatingServiceSelectionResponse>

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

Jason ByrnesWebAssist

In the PowerStore 3 download page, look in the known issues section for the "PowerStore 3: Support Fix - PayPal Express Checkout Failure"

I believe you may be running into this issue.

Sign in to reply to this post

rob294118

Even More Messed Up

After uploaded the updated files, everything to do with my product pages is messed up format wise:

Products_Results.php

Sign in to reply to this post

rob294118

Error

Formatting fixed.

Getting this error when I try to confirm the purchase in Paypal.

Warning: require_once(wa_evaluate.php) [function.require-once]: failed to open stream: No such file or directory in /homepages/20/d184490718/htdocs/YoungDesigns/pp_confirm.php on line 4

Fatal error: require_once() [function.require]: Failed opening required 'wa_evaluate.php' (include_path='.:/usr/lib/php5') in /homepages/20/d184490718/htdocs/YoungDesigns/pp_confirm.php on line 4

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