close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Powerstore 3 integration with PayPal Pro

Thread began 6/23/2010 12:18 pm by spdraper347403 | Last modified 7/21/2010 8:03 am by Jason Byrnes | 3439 views | 16 replies |

spdraper347403

Powerstore 3 integration with PayPal Pro

I've set up a PayPal Pro Account and followed all instructions (that I am aware of!) to link it with Powerstore 3. When I perform a "dummy" transaction and go through to checkout, after clicking on the PayPal button, I get:

"We're sorry, your PayPal transaction could not be completed. Please return to checkout and try again."

I've queried this with PayPal and they say it is a problem with the shopping cart.

API requests have also been mentioned but I have found no information about this on either this forum or any documentation.

Can you please advise what steps I should take to complete the integration? As I said above, I've followed all instructions so far (and checked back over them several times) so any help would be greatly appreciated.

Many thanks,

Sid

Sign in to reply to this post

spdraper347403

This post has been deleted.

Jason ByrnesWebAssist

to determine why the trransaction is failing, add the following code to the chekout failure page:

php:
<?php  

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




this will write the full request and full response to the screen to help us troubleshoot.

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

Sign in to reply to this post

spdraper347403

Jason,

Password removed - The return after adding the code as follows:

Many thanks for your help!

Sid

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>info@ds-ergonomics.com</Username><Password>*********</Password><Signature>ApKFsXUgrHd.tb9lJZOwA4SSxNMDAne4-q8yDxxnMcsHj9tFNY9EGHYi</Signature><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">44.06</OrderTotal><ReturnURL>http://www.ds-ergonomics.com/powerstore/pp_confirm.php</ReturnURL><CancelURL>http://www.ds-ergonomics.com/powerstore/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">ApKFsXUgrHd.tb9lJZOwA4SSxNMDAne4-q8yDxxnMcsHj9tFNY9EGHYi</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-06-28T09:38:59Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">7763f742f13ca</CorrelationID><Errors xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorType"><ShortMessage xsi:type="xs:string">Security error</ShortMessage><LongMessage xsi:type="xs:string">Security header is not valid</LongMessage><ErrorCode xsi:type="xs:token">10002</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">1366358</Build></SetExpressCheckoutResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>


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

Sign in to reply to this post

Jason ByrnesWebAssist

have you replaced the WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php file with the one from this post:
showthread.php?t=12914

Sign in to reply to this post

spdraper347403

Jason,

Have changed the script file but still getting the same result.

PayPal say it is a website problem and that PayPal is not being reached.

Any more things to try?

Sid

Sign in to reply to this post

spdraper347403

Jason,

Looking at the code added to the checkout failure page, there is mainly reference to ebay. Is that generic or does this need to be amended and / or deleted?

Sid

Sign in to reply to this post

Jason ByrnesWebAssist

the error being returned is:
Security header is not valid


This error means that the API credentials being used are not correct.


i see the username you are using is an email address:
<Username> info@ds-ergonomics.com</Username>
this is not a correct API User name.



The User Name, Password and Signature you should be using is the API Username, API Password and API Signature that is listed on the PayPal API Credentials page.

Sign in to reply to this post

spdraper347403

Same result

Jason,

Sorry, that was a silly error, but......

I've made the amendments in Admin but I'm still getting the same result and just being sent back to the Payment Failure message to try again.

This is incredibly frustrating!

Anything else?

Thanks again,

Sid

Sign in to reply to this post

Jason ByrnesWebAssist

Is it showing the same security header is invalid error?


That error occurs for the following reasons:
Using Sandbox API Credentials through the live server

using Live API Credentials through the sandbox server

You must except the billing agreement with payapl after requesting the API credentials.

Make sure there are no leading or trailing spacers in the api credentials when you add then in the admin section.

sometimes the API credentials that paypal generates are just bad, try getting new api credentials.

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