close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Express Button Not working

Thread began 2/18/2012 9:54 pm by netsysinc419552 | Last modified 2/21/2012 12:47 pm by Jason Byrnes | 620 views | 3 replies |

netsysinc419552

PayPal Express Button Not working

Using the same Website environment I am able to get Paypal express to work properly in the paypal sandbox environment but when I make the changes recommended to move to a Production Paypal site (i.e. changes code in checkout and pp_confirm + pointing to Production PayPal API Creditials) I return to the pp_checkout_failure page indicating I have bad API creditials. I know my creditials are correct because I used a HMTL code that PayPal gave me to valide my API Creditaials. I need help here since I do not see anything wrong. I have attached the pp_falure page where I capture the request and response and I have also added the HTML code that PayPal gave me to validate my creditials (which are valid).

I also attached the checkout and PP_ECO_PHP.php pages for your review.

Oh, one more thing....I have made quite a few changes to the checkout page and hope you can provide a fix without detroying any changes I have alreay made. It has taken me a long time to get to this point in my code....hope you will understand my concern.....

Thanks for your help!!!
John

Attached Files
PP_ECO_PHP.zip
PayPal 10002 error send to Webassist.txt
ycheckout_page.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the error indicates that the transaction is being sent to the sandbox server using the the live API credentials.

try changing this code:

php:
$nextIndex = count($WA_PP_ECO_Set_params[0]);
  if ($row_rs_xyz[xyzPayPalSandProd] == 'sandbox') {
      $WA_PP_ECO_Set_params[0][$nextIndex] = "UseSandbox";
      $WA_PP_ECO_Set_params[1][$nextIndex] = "true";
  } else {  // Use Production PayPal
      $WA_PP_ECO_Set_params[0][$nextIndex] = "UseSandbox";
      $WA_PP_ECO_Set_params[1][$nextIndex] = "false";
  }




to:

php:
$nextIndex = count($WA_PP_ECO_Set_params[0]);
  /*if ($row_rs_xyz[xyzPayPalSandProd] == 'sandbox') {
      $WA_PP_ECO_Set_params[0][$nextIndex] = "UseSandbox";
      $WA_PP_ECO_Set_params[1][$nextIndex] = "true";
  } else {  // Use Production PayPal*/
      $WA_PP_ECO_Set_params[0][$nextIndex] = "UseSandbox";
      $WA_PP_ECO_Set_params[1][$nextIndex] = "false";
 /* }*/



it would seem that the code is not properly setting it to the production server.

Sign in to reply to this post

netsysinc419552

Same problem as before

Made the changes as you requested and getting the same error. I forgot to give you this in my initial post which shows what was past to the following funtion "$WA_PP_ECO_SetResult = WA_PP_ECO_Set_Post($WA_PP_ECO_Set_params,$WA_PP_ECO_Do_itemized);". This also shows I am setting the UseSandbox to false....

xxxxx ECO SET POST PARMS xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Array ( [0] => Array ( [0] => Username [1] => Password [2] => Signature [3] => System [4] => Currency [5] => OrderTotal [6] => ItemTotal [7] => TaxTotal [8] => ShippingTotal [9] => HandlingTotal [10] => ReturnURL [11] => CancelURL [12] => PaymentAction [13] => UseSandbox ) [1] => Array ( [0] => orders_api1.mysticalshifts.com [1] => SLST5RHxxxxT8MSP [2] => AFcWxV21C7fd0v3bYYYRCpSSRl31xxxxxxxxXmhWYB9AfUSdhUgSmmCv [3] => WPPro [4] => USD [5] => 0.77 [6] => 0.77 [7] => 0 [8] => 0 [9] => 0 [10] => pp_confirm.php [11] => pp_cancel.php [12] => Authorization [13] => false ) )

Array ( [0] => Array ( [0] => Amount1 [1] => Name1 [2] => Number1 [3] => Quantity1 [4] => Tax1 ) [1] => Array ( [0] => 0.77 [1] => AN [2] => 2479 [3] => 1 [4] => ) )

Any thoughts on what to do next???

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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