close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paypal Transactions fail with Client API's

Thread began 6/21/2010 6:01 pm by sharada408278 | Last modified 6/23/2010 8:46 am by Jason Byrnes | 1878 views | 5 replies |

sharada408278

Paypal Transactions fail with Client API's

Everything works beautifully within sandbox. When I switch the server behaviors in chekcout.php, pp_confirm.php and confirm.php to point to client API's, the transaction (Express Chekout) fails. Added the full request and response to pp_checkout_failure.php and obtained the full dump

Part of the error message (since the full one contains sensitive info) Posted error log on private ticket.
Security header is not valid</LongMessage><ErrorCode xsi:type="xs:token">10002</ErrorCode>

Is this a client API configuration problem with Paypal ??

Sign in to reply to this post

Jason ByrnesWebAssist

yes, the error "Security header is not valid" means that the API credentials being used are not being excepted.

for express checkout, there are 3 server behaviors that need to be changed:
On the checkout.php page:
1)"Authentication For PayPal Express checkout"

On the pp_confirm.php page
2) "Get Payer Profile from PayPal Express Checkout"

3) "Process Transaction with PayPal Express checkout"


all 3 of these must be changed to use the Live API credentials, and in all three, you need to turn the sandbox off.

Sign in to reply to this post

sharada408278

Hi Jason:

I modified the server behavior to turn off sandbox, but in the "Process Transaction with Paypal Express Checkout", even though I turn off use of sandbox, I see the code below has not changed.

$nextIndex = count($WA_PP_ECO_Do_optional[0]);
$WA_PP_ECO_Do_optional[0][$nextIndex] = "TaxTotal";
$WA_PP_ECO_Do_optional[1][$nextIndex] = "".$eCart1->GetTax() ."";
$nextIndex = count($WA_PP_ECO_Do_optional[0]);
$WA_PP_ECO_Do_optional[0][$nextIndex] = "UseSandbox";
$WA_PP_ECO_Do_optional[1][$nextIndex] = "true";
$nextIndex = count($WA_PP_ECO_Do_optional[0]);
$WA_PP_ECO_Do_optional[0][$nextIndex] = "UseSandbox";
$WA_PP_ECO_Do_optional[1][$nextIndex] = "true";

Should I edit the code manually on these lines ? change "true" to "false"

If so where else should these be changed ?

IN DIRECT PAY (confirm.php) I edit the server behavior "Local Checkout"

$nextIndex = count($PP_DirectPayment_required[0]);
$PP_DirectPayment_required[0][$nextIndex] = "UseSandbox";
$PP_DirectPayment_required[1][$nextIndex] = "false";

IN checkout.php server Behavior "Authentication for Paypal Express Checkout" took the switch off
for Sandbox and I do not see that variable in the code.


Thanks

Sign in to reply to this post

sharada408278

Changed the server behaviors and turned off sandbox as detailed above.

Express Checkout does not go to confirm page, directly goes to pp_checkout_failure.php

I dumped the full request and response and have posted on private thread also zipped the confirm.php, checkout.php and the pp_confirm.php files. PLease take a look. I would like to resolve this as soon as possible. Private Ticket number 117052

Is it possible that the Client has not enabled Payment Pro and hence this is happening ?

Sign in to reply to this post

sharada408278

API credentials had a space after username, When I fixed that pp express checkout reaches the paypal login page. So that one seems to work.

Just updating thread.

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