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) »
  • Payment Processor Error Message | Paypal Website Payments Pro
Pages: [1]

Author Topic: Payment Processor Error Message | Paypal Website Payments Pro  (Read 1363 times)

drcdb1

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.2
  • MySQL version: 5
  • PHP version: 5
Payment Processor Error Message | Paypal Website Payments Pro
April 29, 2011, 01:02:59 pm
I've been doing some contract Drupal work for a client who uses CiviContribute to process payments from their customers.  All of the credit card options seem to work fine, but the PayPal button (included in the form upon enabling the PayPal processor) always returns an error when clicked, whether or not the user has an existing PayPal account.

I've checked with PayPal and they believe that the "cart" is passing the wrong variable for the "SOLUTIONTYPE" ID, which apparently needs to be "mark" or "sole" depending on the preferred permissions for users without existing PayPal accounts.  The problem is, I cannot locate any files within the CiviCRM or CiviContribute packages that contain these variables or the "SOLUTIONTYPE" id.

Any help would be greatly appreciated, as I have already done fairly extensive research, ultimately yielding no results.  I am admittedly a N00B at CiviCRM.  I have included the entire error message below, albeit brief:

"---

Payment Processor Error message
: 10453:Transaction refused because of an invalid argument. See additional error messages for details. The Solution Type you requested is not supported.

---"

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 | Paypal Website Payments Pro
April 29, 2011, 01:25:41 pm

might want to add some debug statements here:

CRM/Core/Payment/PayPalImpl.php

function invokeAPI

See the url that is being redirected to and then modify as needed to get paypal to work

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

drcdb1

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.2
  • MySQL version: 5
  • PHP version: 5
Re: Payment Processor Error Message | Paypal Website Payments Pro
May 20, 2011, 02:27:30 pm
Thank you for the reply.  I have taken a look at that file (PayPalImpl.php) and I have located several instances of the "invokeAPI" function.  This seems to return the "$args" function, which uses a variable named "method" ...I was wondering if this could be related.  I have searched for the "solutiontype" function, or something similar, to no avail.  Is there something I'm missing?

Is there a location where the "mark" or "sole" variables are usually placed in the code for similar issues?


Regards,

Darren

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 | Paypal Website Payments Pro
May 20, 2011, 05:41:20 pm

I did a grep of the code when i checked the forum post first and did not see us setting the solution type. Your best bet will be to log the call to paypal and see what we send so you can be double sure

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) »
  • Payment Processor Error Message | Paypal Website Payments Pro

This forum was archived on 2017-11-26.