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 transaction fails

Thread began 5/29/2010 4:38 am by i.edwards384429 | Last modified 6/01/2010 4:32 pm by Jason Byrnes | 1451 views | 8 replies |

i.edwards384429

PayPal transaction fails

Hi

another site all set up when I test in real time it trnasfers to paypal and asks me to log in then returns me to the shop and ask me to confirm the order. I then
get the message

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


Any ideas where I go from here

thanks

Ian

Sign in to reply to this post

i.edwards384429

update

Hi

forgot to say

I have copied over the revised PP_ECO_PHP.php and checked the API details

thanks

Ian

Sign in to reply to this post

Jason ByrnesWebAssist

to troubleshoot the cause of the failure, please add the following code to the checkout 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>";  
 } 
?>



NOTE: The full request and full response will contain sensitive information, please remove any sensitive information before posting the details here.

Sign in to reply to this post

i.edwards384429

update

Hi Jason

trust you had a good long weekend!!

Ok here's the error message

of course I've been through it line by line and it's plain engliosh to me;-)

Any help appreciated as I need to get this site put to bed

thanks

Ian

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>xxxxxx.co.uk</Username><Password>xxxxxxVKGK4XCHEGX</Password><Sig

nature>AFcWxV21C7fd0v3bYYYRCpSSRl31AvtsjYVY77xxxxxcg-

c9XRIm4yI</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">8.50</OrderTotal><ReturnURL>http://www.cookersrus.co.uk/pp_confirm.php</ReturnURL><CancelURL>http:

//www.cookersrus.co.uk/pp_cancel.php</CancelURL><PaymentAction>Authorization</PaymentAction></SetExpressCheckoutReq

uestDetails></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">xxxxx21C7fd0v3bYYYRCpSSRl31AvtsjYVY77FjhTjEcg-

c9XRIm4yI</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-01T16:01:29Z</Timestamp><Ack

xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack><CorrelationID

xmlns="urn:ebay:apis:eBLBaseComponents">ae4e853b8a975</CorrelationID><Version

xmlns="urn:ebay:apis:eBLBaseComponents">2.20</Version><Build

xmlns="urn:ebay:apis:eBLBaseComponents">1322101</Build><Token xsi:type="ebl:ExpressCheckoutTokenType">EC-

4XA0909501858033L</Token></SetExpressCheckoutResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>


Express Process:
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>xxxxxookersrus.co.uk</Username><Password>xxxK4XCHEGX</Password><S

ignature>AFcWxV21C7fd0v3bYYYRCpSSRl31AvtsjYVY77Ecg-

c9XRIm4yI</Signature><Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><DoExpressCheckoutPaym

entReq xmlns="urn:ebay:api:PayPalAPI"><DoExpressCheckoutPaymentRequest><Version

xmlns="urn:ebay:apis:eBLBaseComponents">2.20</Version><DoExpressCheckoutPaymentRequestDetails

xmlns="urn:ebay:apis:eBLBaseComponents"><Token>EC-

4XA0909501858033L</Token><PaymentAction>Sale</PaymentAction><PayerID>N8356DSMB2GYQ</PayerID><PaymentDetails><OrderT

otal currencyID="GBP">8.50</OrderTotal><ShippingTotal currencyID="GBP">7.5</ShippingTotal><ItemTotal

currencyID="GBP">1</ItemTotal><ButtonSource>WebAssist.eCartPHP.Pro.ECO</ButtonSource><PaymentDetailsItem><Name>Belt

</Name><Amount

currencyID="GBP">1</Amount><Quantity>1</Quantity><Number>1</Number></PaymentDetailsItem></PaymentDetails></DoExpres

sCheckoutPaymentRequestDetails></DoExpressCheckoutPaymentRequest></DoExpressCheckoutPaymentReq></soap:Body></soap:E

nvelope>
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">AFcWxV21C7fd0v3bYYYRCpSSRl31AvtsjYVY77FjhTjEcg-

c9XRIm4yI</Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-

ENV:Header><SOAP-ENV:Body id="_0"><DoExpressCheckoutPaymentResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp

xmlns="urn:ebay:apis:eBLBaseComponents">2010-06-01T16:01:59Z</Timestamp><Ack

xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID

xmlns="urn:ebay:apis:eBLBaseComponents">baac87bedae64</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 transaction currency specified must be the same as previously

specified.</LongMessage><ErrorCode xsi:type="xs:token">10444</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">1322101</Build><DoExpressCheckoutPaymentResponseDetails

xmlns="urn:ebay:apis:eBLBaseComponents"

xsi:type="ebl:DoExpressCheckoutPaymentResponseDetailsType"></DoExpressCheckoutPaymentResponseDetails></DoExpressChe

ckoutPaymentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Sign in to reply to this post

Jason ByrnesWebAssist

the long error is:
<LongMessage

xsi:type="xs:string">The transaction currency specified must be the same as previously

specified.</LongMessage>



if you change this code on the checkout page:
$WA_PP_ECO_Set_params[0][$nextIndex] = "Currency";
$WA_PP_ECO_Set_params[1][$nextIndex] = "USD";


you must also change this code on the pp_confirm.php page:
$WA_PP_ECO_Do_optional[0][$nextIndex] = "Currency";
$WA_PP_ECO_Do_optional[1][$nextIndex] = "USD";


to match.

Sign in to reply to this post

i.edwards384429

update

Hi Jason

sorry to be so stupid, found the code in line 118-119 in checkout.php which is

$WA_PP_ECO_Set_params[0][$nextIndex] = "Currency";
$WA_PP_ECO_Set_params[1][$nextIndex] = "USD";


However I fail, to see the lines you list in pp_confirm.php

can you tell me the line no?

thanks for the assist

Ian

Sign in to reply to this post

Jason ByrnesWebAssist

the default powerstore 3 files have that code at lines 511 - 512

Sign in to reply to this post

i.edwards384429

update

Hi Jason

seems search and find has a problem on my DW installation. However good news - that sorted the problem, changed both of them to GBP and the sale went through.

thanks

Ian

Sign in to reply to this post

Jason ByrnesWebAssist

excellent, glad to hear it is working.

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