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 »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Whoa... Type DoDirectPaymentRequestType not defined?
Pages: [1]

Author Topic: Whoa... Type DoDirectPaymentRequestType not defined?  (Read 1880 times)

ijames

  • Guest
Whoa... Type DoDirectPaymentRequestType not defined?
February 16, 2008, 04:06:45 am
On Drupal 5.2...

I'm getting a Payment Processor Error?

I've setup a CiviContribute contribution form.  I'm using Paypal Test API with Web Payments Pro setup...

I have not seen anything mentioned about this error...

Oh help help help! 

Thanks,

James

ijames

  • Guest
Re: Whoa... Type DoDirectPaymentRequestType not defined?
February 16, 2008, 04:17:02 am
I've noticed that it's happening in this code:  PayPalImpl.php  on line 384: 

$doDirectPayment =& PayPal::getType( 'DoDirectPaymentRequestType' );

I have not seen anybody calling this out as being a problem... 

James

ijames

  • Guest
Re: Whoa... Type DoDirectPaymentRequestType not defined?
February 16, 2008, 06:36:55 am
Solved and NOT...

Strangely, the file

sites/all/modules/civicrm/packages/PayPal/Type/DoDirectPaymentRequestType.php

Was blank....

So I replaced it with what it was supposed to be...

Now when I hit Make Contribution button, it spins and then gives me an unexpectedly dropped connection?

I'm pretty sure I've got my sandbox keys setup correctly...

Log shows nothing.

Thanks for any help!

James

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: Whoa... Type DoDirectPaymentRequestType not defined?
February 16, 2008, 10:16:36 am

not sure how or why one file could be empty, so you should check your directory structure and see if other files are empty

are you using this with php 5.2.x? We've had problems getting paypal's soap interface to work with php 5.2.x and dont have a resolution for that. We switched to using PayPal's NVP api for 2.0 to get around the issue

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

ijames

  • Guest
Re: Whoa... Type DoDirectPaymentRequestType not defined?
February 16, 2008, 10:28:14 am
Yowchza...   Thanks for the reply! 

What's NVP and does it still require a Web Payment Pro account which is just evil to setup?

So far Paypal has been 100 times the trouble that Drupal/Civicrm has been. 

How's Authorize.Net?

I've tried it in testing and it also didn't complete the cycle. 

I've got such a short timeline, and GoDaddy makes it practically impossible to upgrade a site since you have to ftp everything and have no shell account! 

So I'm looking for quickest solution... 

James


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: Whoa... Type DoDirectPaymentRequestType not defined?
February 16, 2008, 10:52:55 am

nvp is paypal's new protocol (name value pairs, the rest of the world calls it REST :)

sorry no experience with most of the other providers. not having shell access is a major pain and makes things even more difficult to debug.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Whoa... Type DoDirectPaymentRequestType not defined?

This forum was archived on 2017-11-26.