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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • Payment processor, error message with no error
Pages: [1] 2

Author Topic: Payment processor, error message with no error  (Read 28430 times)

harrstar

  • Guest
Payment processor, error message with no error
March 06, 2008, 07:30:57 am
Hi all,

I am having some trouble getting the payment processor (Joomla 1.0.15 and civicrm v2beta2) to work, I am using PayPal Pro (yes I checked the settings twice even generated new signature). I have a event registration page setup. Once I have filled in the data it does not matter if I use the PayPal button to check out or the civicrm hidden conection to paypal. I get this error messages :

Payment Processor Error message
: :

It has no error code, nothing, just this.

In fact after reviewing the apache logs I found that there were no "calls" to paypal. So I setup a debugging session with the live site and found out after pressing the PayPal button:

In PayPalImpl.php aroung line 64 this is executed :
    /**
     * express checkout code. Check PayPal documentation for more information
     * @param  array $params assoc array of input parameters for this transaction
     *
     * @return array the result in an nice formatted array (or an error object)
     * @public
     */
    function setExpressCheckOut( &$params ) {
        $args = array( );

        $this->initialize( $args, 'SetExpressCheckout' );

        $args['paymentAction']  = $params['payment_action'];
        $args['amt']            = $params['amount'];
        $args['currencyCode']   = $params['currencyID'];
        $args['invnum']         = $params['invoiceID'];
        $args['returnURL'   ]   = $params['returnURL'];
        $args['cancelURL'   ]   = $params['cancelURL'];

The setting of the paymentAction fails, it contains NULL after that statement, an php error code is pisplayed : "Undefined index:  payment_action".

I tried it with setting the API URL in the PayPal settings and managed to get this out of the debugger :

for $nvpreq (PayPalImpl.php line 380)
"user=harrst_1194757246_biz_api1.gmail.com&pwd=E3PABJ6BCN97H585&version=3&signature=
AmpyWzIi4rNfkuvPgUWb0fhTyWMaAGuv1RsDbbVMd50Vz6F-0r7I1N1O&subject=&method=
SetExpressCheckout&paymentAction=&amt=59&currencyCode=USD&invnum=e1627823981dac132a097f44a0613681&
returnURL=https%3A%2F%2Fgalactics.org%2Findex.php%3Foption%3Dcom_civicrm%26task%3Dcivicrm%2Fevent%2Fregister%26_qf_Confirm_display
%3D1%26rfp%3D1&cancelURL=https%3A%2F%2Fgalactics.org%2Findex.php%3Foption%3Dcom_civicrm%26task%3Dcivicrm%2Fevent%2Fregister%26_qf_Register_display%3D1"

got as response in $result in PayPalImpl.php line 389
<!doctype html public "-//ietf//dtd html 2.0//en">
<html><head>
<title>404 not found</title>
</head><body>
<h1>not found</h1>
the requested url /2.0/nvp was not found on this server.<p>
<p>additionally, a 500 internal server error
error was encountered while trying to use an errordocument to handle the request.
<hr>
<address>apache/1.3.27 server at <a href

this was my API setting (taken from PayPal)
https://api.sandbox.paypal.com/2.0/

Than I tried it without setting the API field :

$nvpreq:
"user=harrst_1194757246_biz_api1.gmail.com&pwd=E3PABJ6BCN97H585&version=3&signature=
AmpyWzIi4rNfkuvPgUWb0fhTyWMaAGuv1RsDbbVMd50Vz6F-0r7I1N1O&subject=&method=
SetExpressCheckout&paymentAction=&amt=59&currencyCode=USD&invnum=bc36f14463548e12e9cd126a07e6e1bb&
returnURL=https%3A%2F%2Fgalactics.org%2Findex.php%3Foption%3Dcom_civicrm%26task%3Dcivicrm%2Fevent%2Fregister%26
_qf_Confirm_display%3D1%26rfp%3D1&cancelURL=https%3A%2F%2Fgalactics.org%2Findex.php%3Foption%3Dcom_civicrm%26
task%3Dcivicrm%2Fevent%2Fregister%26_qf_Register_display%3D1"

and got in $result
"\"if01\" width=100% height=\"100%\" frameborder=0 src=\"\">Click here to proceed.</a></iframe>\n\n<script language=
\"javascript\">\nvar url = document.referrer;\ndomain = url.match( /:\\/\\/(www\\.)?([^\\/:] )/ );\ndomain = domain[2]?domain[2]:'';\nif01.src = 'http://domains.googlesyndication.com/apps/domainpark/domainpark.cgi?cid=ca-dp-netster"

This was all tested by just clicking the paypal express checkout button (https://www.sandbox.paypal.com/en_US/i/btn/btn_xpressCheckout.gif), no log entries in apache log to sandbox.paypal.com.
Now I am completly lost. Where to adjust what? What did I do wrong?
civicrm was installed with 1.9 under joomla. As it was only installed for testing I uninstalled, deleted all civicrm tables and did a successful v2beta2 install.

Please show me the direction where I should search.

Harry

« Last Edit: March 06, 2008, 07:38:07 am by harrstar »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Payment processor, error message with no error
March 06, 2008, 12:30:59 pm

Can you reproduce this on our demo machine? I just tried it on the demo machine and it worked fine

If you get on IRC, i can help you debug and see what values the demo machine is sending to paypal

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

harrstar

  • Guest
Re: Payment processor, error message with no error
March 06, 2008, 01:59:54 pm
Thank You Lobo,
in order to get evrything straight I am in the process of changing the server config to run suexec and than update civicrm to beta 5. If I have problems after that I let you know, will also post if the problem is fixed with the update.

I have read in the docs and here on the forum that updating a joomla install has to be done through the joomla installation routines including the following steps. Is there an insight why that needs to be the case? Its just a lot of work compared to just copying the new code over the old one (or erase old and copy new in place).   ;D

Thanks
Harry


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Payment processor, error message with no error
March 06, 2008, 02:20:52 pm

that code has not changed in the recent past, so i suspect beta5 wont fix it.

joomla installer puts a compont in two different directories. we also autogenerate some files etc, so its a bit hard to do an erase and copy. That said, if you know what you are doing, you can do an erase and copy :). We manage our joomla demo using symlinks and avoid the install/reinstall problem. however u need to be fairly comfortable with manipulating files and symlinks etc. i can explain how we manage on IRC and u can then document it :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

harrstar

  • Guest
Re: Payment processor, error message with no error
March 07, 2008, 08:02:20 am
Hi Lobo,

thank you very much for your offer. Let me ask this : I am running suexec which does not allow symlinks to be executed, I guess that will render your solution useless, right? (don't have suexec running yet, thats what I am fighting with, gives me that 500 message and no more uesfull information in the logs)
Harry
« Last Edit: March 07, 2008, 08:07:38 am by harrstar »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Payment processor, error message with no error
March 07, 2008, 10:10:32 am

sorry, i have no idea what suexec is / does :(

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

harrstar

  • Guest
Re: Payment processor, error message with no error
March 10, 2008, 08:45:59 am
Hi Lobo,

its just a security feature for the web server.

Did the update to beta5 (as suggested in http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Joomla+Sites+to+2.0)

Before applying the update I did this : http://forum.civicrm.org/index.php/topic,2504.0.html (first post) which went smoothly. Than unistall/install civicrm, which went smoothly too.  :D   :D   :D

But, my problem is still there.   ???  So it must be something with the data inside the tables which is wrong. I believe you, that it is working on the demo. But I still have that problem. I don't have much data inside civicrm, just two forms (event and membership) and the basic and payment setup. Is there a way to conserve that data and do a fresh install of civicrm? If not would a table dump (what tables) help find the problem?

Harry

Edit :
Just found this in my logs :
* About to connect() to nvp port 80
*   Trying 63.214.247.170... * connected
* Connected to nvp (63.214.247.170) port 80
> POST / HTTP/1.1
Host: nvp
Accept: */*
Content-Length: 521
Content-Type: application/x-www-form-urlencoded

user=xxxxxxxx&pwd=yyyyyyyyyyyyyyyyyyyyyy&version=3&signature=yyyyyyyyyyyyyyyyyyyyyyyyy&subject=&method=SetExpressCheckout&paymentAction=&amt=59&currencyCode=USD&invnum=b29081aee96b8ba8e89bc76fd6ee29b0&returnURL=https%3A%2F%2Fgalactics.org%2Findex.php%3Foption%3Dcom_civicrm%26task%3Dcivicrm%2Fevent%2Fregister%26_qf_Confirm_display%3D1%26rfp%3D1&cancelURL=https%3A%2F%2Fgalactics.org%2Findex.php%3Foption%3Dcom_civicrm%26task%3Dcivicrm%2Fevent%2Fregister%26_qf_Register_display%3D1< HTTP/1.1 200 OK
< Date: Mon, 10 Mar 2008 16:13:38 GMT
< Server: Apache/2.2.4 (FreeBSD)
< Last-Modified: Tue, 04 Mar 2008 00:10:25 GMT
< ETag: "2069422-70e-4479154c6fe40"
< Accept-Ranges: bytes
< Content-Length: 1806
< Connection: close
< Content-Type: text/html
< X-Pad: avoid browser bug
* Closing connection #0

« Last Edit: March 10, 2008, 09:47:25 am by harrstar »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Payment processor, error message with no error
March 10, 2008, 10:28:15 am

the machine to connect in sandbox mode is: https://api-3t.sandbox.paypal.com/

not nvp

not sure why your log is showing that, you might want to chekc you settings again. You can also help by debugging:

CRM/Core/Payment/PayPalImpl.php, function invokeAPI

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

harrstar

  • Guest
Re: Payment processor, error message with no error
March 10, 2008, 10:53:19 am
Hi Lobo,

Thanks. Yes, I know. Out of desperation I tried the paypal live site.

by poking around I found that problem : I did convert a existing paypal processor entry into a paypalpro entry. This did not fill in all the url's needed which I then filled in by hand with what I found which obviously was incorrect. By clicking new payment processor I regenerated that ppp entry, this time the url's where filled. Testing it : It did send me to the sandbox login, logged in and got the payment review page from pp. Clicking continue it did throw me back to the payment confirmation of that event registration. Clicking continue there than gave a error from civicrm : please enter first and last name. Which was filled in. I am using as registration data different names/emails etc than the email that is paying with paypal.

Why is it throwing me back to the confirmation page if I hit that pp express button as explained above? Any idea?

Harry

Edit:

Using a credit card it works like a charm  :D  :D  :D  :D
Just that express checkout.....
« Last Edit: March 10, 2008, 10:56:39 am by harrstar »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Payment processor, error message with no error
March 10, 2008, 01:17:39 pm

can you please reproduce this on demo and give us the steps to do so.

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

harrstar

  • Guest
Re: Payment processor, error message with no error
March 10, 2008, 02:06:05 pm
Hi lobo,

would love to, but can't access the joomla! backend at your demo.  ;)

Here is what I did :

a) setup civicrm with paypal standard.
b) found out there is a bug with records not being written correctly into civicrm if registering person and paying person is different.
c) setup paypal pro
d) setup ssl
e) back to civicrm and inside the payment processor definition changed (!) the processor from paypal standard to paypal pro
f) above problem occurred
g) back into the list with the defined payment processors
h) hit new link and re-entering access codes etc. This time the links were all filled in.
i) got it working for cc direct payment
j) express checkout not working.

Here is an extract from the logs :

> POST /nvp HTTP/1.1
Host: api-3t.sandbox.paypal.com
Accept: */*
Content-Length: 208
Content-Type: application/x-www-form-urlencoded

user=harrst_1194757246_biz_api1.gmail.com&pwd=E3PABJ6BCN97H585&version=3&signature=AmpyWzIi4rNfkuvPgUWb0fhTyWMaAGuv1RsDbbVMd50Vz6F-0r7I1N1O&subject=&method=GetExpressCheckoutDetails&token=EC-9RD233724D3208304< HTTP/1.1 200 OK
< Date: Mon, 10 Mar 2008 20:49:38 GMT
< Server: Apache/1.3.27 (Unix) mod_ssl/2.8.12 OpenSSL/0.9.7a mod_fastcgi/2.4.2 PHP/4.3.2
< Content-Length: 507
< Connection: close
< Content-Type: text/plain; charset=utf-8
* Closing connection #0

It looks like there is no info send to paypal. checked the settings again (and again). I am testing with the live page but connecting to sandbox. Here my settings :

harrst_1194757246_biz@gmail.com (+ password and signarure)
https://www.sandbox.paypal.com/
https://api-3t.sandbox.paypal.com/
https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif

Thanks for your help!!

Harry

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Payment processor, error message with no error
March 10, 2008, 02:22:19 pm

please reproduce on the drupal demo. joomla and drupal share the same code base, so most likely if there is a problem it occurs in both the systems

i'm only interested in the pp express button bug u mentioned below

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

harrstar

  • Guest
Re: Payment processor, error message with no error
March 10, 2008, 02:37:00 pm
Hi lobo,

yes, did it in the demo, no problem there. But :

we are asking complete address information through a profile from the person signing up.
Fist part of the event signup is:
enter name, firstname address, phone gender .... as required(!) fields.

Next part :
paypal button / cc info (left empty)

next part :
billing address (left empty)

When we use the paypal button it comes back as it does in the demo to the confirmation page. In the demo after pressing continue it goes to the thank you pages.

In our setup after pressing continue it comes back with name/first name must be filled. They are indeed empty. BUT all other required fields are filled.

With other words : Before hitting the paypal button the fields for first name and last named are filled, hit button, hit continue in paypal and it comes back to our site and the confirmation page is displayed but first/last name is missing. Only them. Rest of the profile fields are correct.

We need to have that complete address of the one signing up because the one paying is not always the one paying (50:50). We are handling a soccer club, and the one signing up might be a kid and the parents pay. Or companies pay for their employees.

Thank you so much so far for your help

Harry

PS: In the meantime is there a way to switch of the display of the pp button including the surrounding text?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Payment processor, error message with no error
March 10, 2008, 02:51:07 pm

You should try to reproduce the issue by creating a contribution page similar to your site, i.e. create a profile etc

your paypal contract requires the paypal express button when using paypal pro

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

harrstar

  • Guest
Re: Payment processor, error message with no error
March 10, 2008, 03:22:28 pm
Hi lobo,

took me a while to realize that I could test it under the drupal version too.

I entered the same profile as I have here, its named "testharry"

Than entered the event as I have it here (without the text). Its named "harry's test event"

Then ran the test drive, got the same error, name and first name missing after paypal

Harry

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • Payment processor, error message with no error

This forum was archived on 2017-11-26.