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 Express failure with error code

Thread began 5/20/2010 10:02 am by Larry | Last modified 5/24/2010 10:02 am by Larry | 1377 views | 6 replies |

Larry

PayPal Express failure with error code

I finally setup Power Store 3 with my PayPal Express API and began getting the dreaded "Failure" message. So I inserted the code from these forums and put it in the body of pp_checkout_failure.php.

And yes I made sure that I was not in testing mode in the admin section of Power Store under the site settings and billing settings, so that should not be an issuse.

Any way below is the error code I get after trying to check out. Mind you once clicking the check out button, the failure page comes up immediatly. Any way here is the error code, I sure hope someone can help:

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>xxxxxxxxxxxxxxxxx</Username><Password>xxxxxxxxxxx</Password><Signature>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</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">30.00</OrderTotal><ReturnURL>http://www.pap911rescue.com/Store/pp_confirm.php</ReturnURL><CancelURL>http://www.pap911rescue.com/Store/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">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</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-20T13:47:31Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">d4d2ab7965f30</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">1311648</Build></SetExpressCheckoutResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

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

USPS:
Full Request: n/a
Full Response: n/a
Transaction Not Completed
We're sorry

Your PayPal transaction could not be completed. Please return to checkout and try again.

Thanks for any and all help

Larry

Sign in to reply to this post

Jason ByrnesWebAssist

see this thread:
showthread.php?t=12914


for a fix to the paypal file that should help with this problem

Sign in to reply to this post

Larry

PayPal Fix

Thank you Jason for your quick response, but I had already used that PayPal fix you noted here, "Known Issue / Solution for PayPal Express Transactions failing"
forumdisplay.php?f=40

I also applied the other fix for "Fix for editing power store w/ eCart changing shipping rules."
forumdisplay.php?f=40

I uploded everything and still cannot get to the PayPal site. As soon as I click on "checkout" I am imediatly taken to the pp_checkout_failure.php page.

I did after applying the fix remove the code for checking the error, and had the same problem. So I inserted the code for checking the error again, uploading everything, clearing my cache and resarting my browser, and I still recieve the failure.

Any other ideas or help would be greatly appreciated.

Larry

Sign in to reply to this post

Jason ByrnesWebAssist

Well, the error being returned is:
Security header is not valid


this error occurs if you are using incorrect API information. there are 4 main cause for the proble:
1) Using Live Credential and processing through the sand box
2) using sand box credentials and processing through the live server
3) Not excepting the billing agreement after requesting the API credentials.
4) sometimes the api credentials generated by paypal are just bad.

things to check:
make sure to turn the sandbox on or off depending on the type of API credentials you are using.

Makes you are copying and pasting the API Username, password and signature into the admin section.

double check for leading or trailing spaces in the api info text boxes

make sure the billing agreement has been excepted.


if all else fails, request new api credentials.

Sign in to reply to this post

Larry

Thanks again Jason,

I did go back and double check, the check box for Test Mode is clear, and the check box for the sand box is clear. I did again copy and paste all of the credentials, and there is for sure no leading or trailing spaces in the credential text boxes.

However you mention about "make sure the billing agreement has been excepted.", sorry but what billing agreement, I am never presented with a billing agreement for this account so I seemed to be lost here.

As a last resort I will request new API credentials, but I am still a little perplexed on the billing agreement thing, could you please expand on that a little more.

Thank you

Larry


Originally Said By: Jason Byrnes
  Well, the error being returned is:
Security header is not valid


this error occurs if you are using incorrect API information. there are 4 main cause for the proble:
1) Using Live Credential and processing through the sand box
2) using sand box credentials and processing through the live server
3) Not excepting the billing agreement after requesting the API credentials.
4) sometimes the api credentials generated by paypal are just bad.

things to check:
make sure to turn the sandbox on or off depending on the type of API credentials you are using.

Makes you are copying and pasting the API Username, password and signature into the admin section.

double check for leading or trailing spaces in the api info text boxes

make sure the billing agreement has been excepted.


if all else fails, request new api credentials.  
Sign in to reply to this post

Jason ByrnesWebAssist

when request the API credentials from paypal, you be asked to accept a billing agreement. the API credentials will not be activated untill you accept this billing agreement.

if you need further assistance, contact paypal.

Sign in to reply to this post

Larry

Thank you Jason,

I will have to contact PayPal because when I requested my API credentials I did not see any place where I had to accept a billing agreement.

Again, thank you for your help

Larry

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