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) »
  • CC section shown when PayPal Express is the only payment type enabled
Pages: [1]

Author Topic: CC section shown when PayPal Express is the only payment type enabled  (Read 3555 times)

alexlyn

  • Guest
CC section shown when PayPal Express is the only payment type enabled
May 29, 2008, 08:22:04 pm
I have a site running CiviCRM 2.03.  On the membership sign-up page, there is a CC section followed by a Checkout with PayPal section.  The non-profit I built the site for only supports PayPal Express.  How can I get rid of the CC information section?

PayPal and Check are the only two payment instruments supported.  Interestingly, if I disable all accepted credit cards, I get an error when I launch the contribution page.

Any help is much appreciated...

Thanks,
Alex.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CC section shown when PayPal Express is the only payment type enabled
May 30, 2008, 04:09:28 pm
Make sure the Payment Processor you've set up for them has the "type" set to PayPal Express (Admin CiviCRM >> Global Settings >> Payment Processors) - and this is the one configured for their contribution page (Manage Contribution Pages >> Configure >> Title and Settings). If so, the credit card block should not be shown. I just verified this on our public demo...
Protect your investment in CiviCRM by  becoming a Member!

alexlyn

  • Guest
Re: CC section shown when PayPal Express is the only payment type enabled
May 30, 2008, 04:27:10 pm
I have both settings as described, but the CC information section still shows.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CC section shown when PayPal Express is the only payment type enabled
May 30, 2008, 04:32:10 pm
See if you can recreate this behavior on the public demo. I've got a PP Express processor setup with fake credentials - since we're only testing the behavior of the initial contribution page:

http://drupal.demo.civicrm.org/civicrm/admin/paymentProcessor?reset=1&action=browse

Protect your investment in CiviCRM by  becoming a Member!

alexlyn

  • Guest
Re: CC section shown when PayPal Express is the only payment type enabled
May 30, 2008, 05:58:46 pm
I tried creating the same behavior on the demo site, but was unable to.  From what I can tell, the demo site settings are the same as my site's settings.

I also tried creating a new contribution page, but ended up with the same result.  Sections on the contribution page are as follows:

1. Membership selection
2. Credit or Debit Card Information
3. Billing Name and Address
4. Boat Information (custom section)
5. Check out with PayPal

Since we only accept PayPal, I don't think sections 2 and 3 should be displayed.


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CC section shown when PayPal Express is the only payment type enabled
May 31, 2008, 08:42:29 am
Are you saying that you set up a contribution page on the demo w/ the exact same set of elements (Membership Selection and "Boat Information" (custom)) - and it works differently than on our site? If you haven't done that, please give that a shot.

As you've noted, if the Processor for the contrib page is PayPal Express then sections 2 and 3 should NOT be rendered. I would try downloaded the latest stable release (2.0.4) and see if that fixes things (no DB upgrade needed, just overwrite the codebase after backing up).

Otherwise, a bit more info on your install (Joomla / version OR Drupal / version) and some screen shots might help. Finally if none of that clarifies things we can have you add some debug statements in the code to try and figure out what's happening.
Protect your investment in CiviCRM by  becoming a Member!

alexlyn

  • Guest
Re: CC section shown when PayPal Express is the only payment type enabled
June 01, 2008, 02:53:05 pm
Yes, I have used the same configuration on my site with different results.

CiviCRM 2.03 is hosted on Drupal 5.7 for my site.

Until a couple of months ago, the contribution was working perfectly.  After I upgraded to CiviCRM 1.9, this behavior started. The recommendation from these forums was to upgrade to CiviCRM 2.  To move to CiviCRM 2, I needed to change web hosts since my previous host (Site5) didn't support MySQL 5.  I'm on the new host (DrupalValueHosting), with an upgraded CiviCRM, but am still seeing this behavior.

Can you give me any pointers to what code is executed to generate a contribution page? Alternatively, are there any SQL tables I can look at?  There's a good chance the issue is the result of database corruption during the upgrades.

Thanks,
Alex.


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: CC section shown when PayPal Express is the only payment type enabled
June 02, 2008, 01:42:10 am

The two tables you will need to look at and check are:

civicrm_payment_processor_type
civicrm_payment_processor

most likely some values dont match between your install and the default 2.0.4 install. You should ignore mismatches on the username/password/api key and other columns

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

alexlyn

  • Guest
Re: CC section shown when PayPal Express is the only payment type enabled
June 03, 2008, 08:55:03 am
I took a look at both tables and nothing looks out of line (but what do I know  :)).

Here's the contents of my civicrm_payment_processor table without passwords, keys, etc.:

1:
  id: 3
  domain_id: 1
  name: PayPal Express
  description: PayPal Express
  payment_processor_type: PayPal_Express
  is_active: 1
  is_default: 1
  is_test: 0
  url_site: https://www.paypal.com/
  url_api: https://api-3t.paypal.com/
  url_button: https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif
  class_name: Payment_PayPalImpl
  billing_mode: 3
2:
  id: 4
  domain_id: 1
  name: PayPal Express
  description: PayPal Express 2
  payment_processor_type: PayPal_Express
  is_active: 1
  is_default: 0
  is_test: 1
  url_site: https://www.sandbox.paypal.com/
  url_api: https://api-3t.sandbox.paypal.com/
  url_button: https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif
  class_name: Payment_PayPalImpl
  billing_mode: 3

And here is the record for PayPal Express from civicrm_payment_processor_type:

1:
  id: 4
  domain_id: 1
  name: PayPal_Express
  title: PayPal - Express
  is_active: 1
  is_default: 0
  user_name_label: User Name
  password_label: Password
  signature_label: Signature
  class_name: Payment_PayPalImpl
  url_site_default: https://www.paypal.com/
  url_api_default: https://api-3t.paypal.com/
  url_button_default: https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif
  url_site_test_default: https://www.sandbox.paypal.com/
  url_api_test_default: https://api-3t.sandbox.paypal.com/
  url_button_test_default: https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif
  billing_mode: 3

What table/field value is used to decide whether the CC information section is shown?

Thanks,
Alex.

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: CC section shown when PayPal Express is the only payment type enabled
June 03, 2008, 02:03:53 pm

can u set the billing_mode field to 2 in all those records (for paypal_express).  That should fix things.

I'm not sure how they got the value of 3 :(

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

alexlyn

  • Guest
Re: CC section shown when PayPal Express is the only payment type enabled
June 03, 2008, 04:25:55 pm
Woohoo! I changed the 3's to 2's and the CC information section is gone now.  I'll do some further testing, but everything looks great so far.  Thanks VERY MUCH for your help!

Alex.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • CC section shown when PayPal Express is the only payment type enabled

This forum was archived on 2017-11-26.