Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 281957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:14:51+00:00 2026-05-12T05:14:51+00:00

I am having an horrendous time implementing a Payments Pro gateway to Paypal and

  • 0

I am having an horrendous time implementing a Payments Pro gateway to Paypal and I wonder if anyone has had similar issues that may provide me with some insight?

We’re using PHP and have been attempting to interface via the paypalfunctions.php code generated at their own integrationwizard.x.com website. The original had an (acknowledge on reporting) bug in it that had there pilot and live website connects reversed, so my confidence in this was low to start with. However I implemented the code and the gateway is now taking live payments – well part of the time. On a large number of occassions the payment is rejected with an ‘invalid country code’ report.

On logging the request string immediatly before the call inside Paypals own code, and the returned result immediatly on return I can demonstrate that the string passed to Paypal is indeed correct. Paypal themselves acknowledge this, but are seeing truncate values, I quote

“Ok this is indeed a little bit odd. Your NVP string appears to be correct, but we are receiving intermittent truncation of the country code, so for example with GB we sometimes get nothing, a G, a B or a GB with the successful payments. This doesn’t leave much room for where the problem lies – can you search the server logs for the requests being made to us? ”

Now this is also odd because the string passed contains the country code embedded in the center of it – for example (with personal details changed)

USER=ZUTRB8C4OQ&VENDOR=OSO47W6EJP&PARTNER=PayPalUK&PWD=JITCMJA8VAN6YBMP&TENDER=C&TRXTYPE=S&ACCT=XXXXXXXXXXXXXXXX&CVV2=646&EXPDATE=0512&ACCTTYPE=Visa&AMT=55.60&CURRENCY=GBP&FIRSTNAME=John&LASTNAME=Smith&STREET=9/2 Oaklands Hill&CITY=Edinburgh&STATE=&ZIP=EH11AAA&COUNTRY=GB&CLIENTIP=82.19.219.153&ORDERDESC=The  Order&VERBOSITY=MEDIUM&BUTTONSOURCE=PF-CCWizard

Which strongly suggests to me that the issue is how this string is parsed or processed. We have example NVP strings that are accepted and rejected and the layout is identical, and even one case where the same card is rejected at different IPs.

Anyone else had similar experience?

UPDATE: On checking the server (it’s shared hosting) I find a large error log consisting almost entirerly of lines like

[08-Jul-2009 10:14:27] PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0

There’s no obvious link between an sqlite library and curl to my knowledge, but this implies PHP has not been configured corectly and could this cause the sort of random errors where seeing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:14:51+00:00Added an answer on May 12, 2026 at 5:14 am

    I downloaded a copy of paypalfunctions.php but it doesn’t send strings. Instead it uses curl with the CURLOPT_POSTFIELDS parameter to send all the variables as HTTP POST (separate fields in the POST body) instead of a long GET string.

    I suggest using something like tcpdump and Wikeshark to capture and review what is actually sent to PayPal. If you get the same problem again, you can show them the tcpdump to show them that you actually sent the correct string.

    PS: Note that if you sent it according to your TCP logs, that still does not mean that PayPal actually recieves that. I vividly remember hunting down a strange issue with HTTP POST at my former employer. My TCP dump said I sent it. Their TCP dump said they didn’t get it. After weeks it turned out there was a misconfigured transparent proxy halfway between us and them. It accidentally had deep packet inspection turned on to remove certain parts of HTTP POST forms. “Oops” said the network provider.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having a heckuva time with this one, though I feel I'm missing something obvious.
Having discovered that IE does not handle javascript onmouseout , I'm determined to use
Having been a PHP developer on LAMP servers for quite a while, is there
Having worked with Classic ASP for about 2 years now by creating a few
Having read the threads Is SqlCommand.Dispose enough? and Closing and Disposing a WCF Service
Having to upgrade a database schema makes installing a new release of software a
Having a problem getting a TreeView control to display node images. The code below
Having programmed through emacs and vi for years and years at this point, I
Having integrated merb_auth_password_slice as per the README, I can successfully login as redirect_after_login is
Having this route: map.foo 'foo/*path', :controller => 'foo', :action => 'index' I have the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.