CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Problems with setting up PayPal Website Payments Pro
Pages: [1]

Author Topic: Problems with setting up PayPal Website Payments Pro  (Read 1878 times)

davistv

  • Guest
Problems with setting up PayPal Website Payments Pro
March 31, 2008, 01:18:06 pm
Hello,

I'm setting up a new drupal 5.7 / civicrm 2.0.1 site for a client, and I'm having some very strange issues with setting up PayPal Website Payments Pro.

I've got a sandbox account setup, but I can't seem to get civievent to use the sandbox account for an event registration, even if I use "test-drive registration". Instead, it always uses the live account details. I've copied the sandbox info into the live fields, but I get the same error as the live account, which is these name/value pairs:

ACK=Failure
L_ERRORCODE0=10002
L_SHORTMESSAGE0=Security error
L_LONGMESSAGE0=Security header is not valid
L_SEVERITYCODE0=Error
VERSION=3%2e000000
BUILD=543066

I added some debug statements to see what's being sent. When I use the live Paypal account, I see the debug messages. Here they are, but anonymized to protect my client:

nvpreq = user=paypal_user&pwd=paypal_password&version=3&signature=paypal_signature&subject=&method=DoDirectPayment&paymentAction=Sale&amt=1&currencyCode=USD&invnum=d4e6fa9698a297c3efeec73d3e5e873b&ipaddress=192.168.1.128&creditCardType=Visa&acct=1111222233334444&expDate=122008&cvv2=333&firstName=This&lastName=Guy&email=this%40guy.com&street=123+home_street&city=Cincinnati&state=OH&countryCode=US&zip=45202

CURLOPT_POSTFIELDS = 10015

ch = Resource id #661

response = TIMESTAMP=2008%2d03%2d31T19%3a46%3a20Z&CORRELATIONID=61fe5f3e11498&ACK=Failure&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error&VERSION=3%2e000000&BUILD=543066

The API URLs I'm using are https://api-3t.sandbox.paypal.com/nvp and https://api-3t.paypal.com/nvp. Are these correct?

Another note: This is on a Fedora 4 system, php 5.2.5.

Any suggestions on how to debug this further?

Thank You,
Troy

« Last Edit: March 31, 2008, 02:55:21 pm by davistv »

davistv

  • Guest
Re: Problems with setting up PayPal Website Payments Pro
April 01, 2008, 02:30:14 pm
Solved!

The correct API URL for PayPal Website Payments Pro (as of civicrm 2.0.1) is https://api-3t.paypal.com/ for live and https://api-3t.sandbox.paypal.com/ for testing.

I also had some corrupted data from a client, cut and paste fixed that issue.

Many thanks to dlobo for helping me root out the problem.

Cheers,
Troy

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Problems with setting up PayPal Website Payments Pro

This forum was archived on 2017-11-26.