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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Proplem with the paypal SANDBOX!!

Thread began 8/20/2010 5:16 am by antoniocerasuolo411297 | Last modified 9/10/2010 12:15 pm by Jason Byrnes | 3601 views | 52 replies |

antoniocerasuolo411297

Proplem with the paypal SANDBOX!!

Hi,

I am having trouble with the paypal sandbox.. i put in the debugging on the pp_checkout_failure.php page and am getting the following below: can anyone help me???? what is the problem??



Direct Pay:


Express Authorize

<?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>antoni_1281564546_biz@hotmail.com</Username><Password>1281564553</Password><Signature>A-m3fRYlLDrTzS2.Zvmjiday.IDCA5FAQnVWxsOjwtWFwbvbg78Mea8r</Signature><Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><SetExpressCheckoutReq xmlns="urn:ebay:api:PayPalAPI"><SetExpressCheckoutRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><SetExpressCheckoutRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><ReturnURL>http://mylombardy.com/pp_confirm.php</ReturnURL><CancelURL>http://mylombardy.com/pp_cancel.php</CancelURL><PaymentAction>Authorization</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">480.00</OrderTotal></PaymentDetails></SetExpressCheckoutRequestDetails></SetExpressCheckoutRequest></SetExpressCheckoutReq></soap:Body></soap:Envelope>

<?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">A-m3fRYlLDrTzS2.Zvmjiday.IDCA5FAQnVWxsOjwtWFwbvbg78Mea8r</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-20T08:56:26Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">862c02b45626c</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">60.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1445048</Build></SetExpressCheckoutResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
Express Process

Sign in to reply to this post

antoniocerasuolo411297

I may have copied some leading spaces of the signature in the main setup of the checkout wizard..

do i need to run the wizard again to fix this?

Sign in to reply to this post

antoniocerasuolo411297

I just cheched the chechout.php and as you can see there are no spaces before or after in API but would the spaces show up here?? but i really don't think this is the problem!! I beleive it is an outright problem on the paypayl system itself.. by the way i copy pasted the new PP_ECO_PHP.php as was suggested in other similar thread.


WHAT are you suggesting i do to get this issue solved??? am running out of ideas :-)

$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "Username";
$WA_PP_ECO_Set_params[1][$nextIndex] = "antoni_1281564546_biz_api1.hotmail.com";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "Password";
$WA_PP_ECO_Set_params[1][$nextIndex] = "1281564553";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "Signature";
$WA_PP_ECO_Set_params[1][$nextIndex] = "A-m3fRYlLDrTzS2.Zvmjiday.IDCA5FAQnVWxsOjwtWFwbvbg78Mea8r";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$W

Sign in to reply to this post

antoniocerasuolo411297

Should I just try to get new API credentials?? and maybee that would do the trick?

Sign in to reply to this post

Jason ByrnesWebAssist

the error you are getting is:
Security header is not valid

This error means there is an issue with the credentials, either they are not Sandbox credentials, or you are passing the transacrtion through the live server.


To check if you are passing through the live server look for the following on the checkout page:

$WA_PP_ECO_Set_params[0][$nextIndex] = "UseSandbox";

to use the sandbox, the next line should be set to true:
$WA_PP_ECO_Set_params[1][$nextIndex] = "true";


I'm not entirely sure the api username you are using is a Sandbox username, I thought the sandbox user names usually had 'test' in them somewhere, you should double check that these API credentials are actually tesst credentals.


See the following PDF for detail on getting sandbox API credentials:
paypal_sandbox.pdf

Sign in to reply to this post

antoniocerasuolo411297

source neenwed

Jason,

these are sandbox credentials!!

I asked for new test credentials and but them into the checkout page by hand copy/pate carefully

but now am getting this error when i got to the checkout page:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\inetpub\vhosts\mylombardy.com\httpdocs\checkout.php:1) in D:\inetpub\vhosts\mylombardy.com\httpdocs\WA_eCart\WA_eCart_Definition_PHP.php on line 465

Sign in to reply to this post

Jason ByrnesWebAssist

headers already sent means that there is output to the page

the error is reporting the outpout at line 1:
checkout .php:1

Often times when the error is reported at line 1, it is because the unicode signatureBOM is applied to the page.

Go to Modify Page properties.

In the title and encoding Section, make sure the Include Unicode Signature (BOM) is Not checked.


if you still have a problem, look for a blank line or space in the page outside the php tags at line 1.

Sign in to reply to this post

antoniocerasuolo411297

Jason,

i'm herer at my office and dont have dreamweaver.. am using notepad2 :-) as soon as i get home i will do what you say but what should i exactly do ??

thanx

Sign in to reply to this post

antoniocerasuolo411297

Jason,

ok i used the ITf -8 property..

anyhow.. you won't beleive this .. the sand box is working now!
this is a miracle!

thanx!

Sign in to reply to this post

Jason ByrnesWebAssist

Excellent, glad to hear it is working.

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