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 »
  • Community Contributed Payment Processors »
  • Paypal Standard defaults to uk link
Pages: [1]

Author Topic: Paypal Standard defaults to uk link  (Read 1308 times)

comff

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.0.91
  • PHP version: 5.3.28
Paypal Standard defaults to uk link
March 08, 2014, 10:05:25 am
We are trying to setup a donate now page and have created a simple contribution page that collects amount and email with paypal standard as the payment processor.  All seems to work except that when we click on the contribute button, it transfers control to "https://www.paypal.com/uk/..." instead of "https://www.paypal.com/us/...".

Which, of course, does not work since we are a us based company.  I have been all over our configuration pages and do not see UK referenced anywhere, so I have no idea what is triggering CiviCRM to default to a UK based payment processor.

Any suggestions would be more than appreciated!

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Paypal Standard defaults to uk link
March 08, 2014, 01:43:32 pm
Does " been all over our configuration pages" include going to administer>system settings>payment processors, selecting the paypal processor and checking that the button url is indeed the US url you want?

comff

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.0.91
  • PHP version: 5.3.28
Re: Paypal Standard defaults to uk link
March 08, 2014, 04:24:23 pm
Yes, my efforts did include fine tooth checking (as much as possible given that there are only a few input fields), reconfiguring, deleting and re-adding the payment processor for the paypal standard processor.  In response to your post, I revisited the payment processor page again, and did not see any reference to "button url", only "site url" which is set to "https://www.paypal.com/", which appears to be country independent and is the value recommended in the Civicrm documentation. Additionally, we have an independently hosted test site (same hosting provider, different account), which is an exact copy of our production site as of a few days ago, and this site works perfectly fine with the exact same configuration.  I have also been through every configuration page that seems even remotely relevant (checking country and currency settings) to no avail.

When all that failed to provide a solution, I contacted PayPal and they were as confused as I was because, according to them, the paypal link is supposed to be derived by paypal, not civicrm, based on the paypal account associated with the email address specified. The email we are passing is the same one used in our test environment which, as I already mentioned, is working perfectly fine. Their only thought they had was that civicrm was redirecting through it's own paypal link, but I am at a total loss as to how it could be doing that, especially since the company name on the paypal payment page correctly reflects our foundation.

I hope this provides some insight as to what the problem might be.

« Last Edit: March 09, 2014, 06:55:32 am by comff »

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: Paypal Standard defaults to uk link
March 08, 2014, 05:24:14 pm

can you try your contribution in a different browser as an anonymous user

alternatively, clear any and all your cookies associated with paypal and see if that works

in general, when people ask questions, its to ensure things have happened rather than imply anything else :)

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

comff

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.0.91
  • PHP version: 5.3.28
Re: Paypal Standard defaults to uk link
March 08, 2014, 06:16:07 pm
Lobo, thanks for your suggestions and wisdom.  Clearly, I need plenty of both!

I tried your suggestions to no avail.  My browser of choice is Firefox, so I attempted the contribution using Explorer. No go.  I cleared everything that could be cleared for Explorer and Firefox, cleared the Joomla cache, purged Joomla expired cache, cleared CiviCRM cache using the Administrator -> System Settings -> Clean up Caches and Update Paths, and also ran the Clean-up Temporary Data and Files job. Once all that was done, tried again and still no go.  I also tried it on a totally different computer using Google Chrome. And still it links to a UK paypal link.

I am at my wits end on this one.  I just don't understand why our test site works perfectly, but our production site, with what appears to be the exact same configuration, is determined not to work. Do you know of any configuration option that may have inadvertently been set that would cause this type of behavior?  I have no idea how CiviCRM really interfaces with PayPal, so I am lost.

I sincerely appreciate any assistance.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Paypal Standard defaults to uk link
March 09, 2014, 01:26:58 am
Have you tried a test using a different PC/laptop?  I wonder whether the operating system locale on your machine is set to the UK.
Andy Clark

comff

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.0.91
  • PHP version: 5.3.28
Re: Paypal Standard defaults to uk link
March 09, 2014, 08:24:06 am
Thanks for your reply Andy! Yes, I tried three different computers, two windows based one mac, as well as different browsers(explorer/chrome/safari/firefox).  The odd thing is that our test site works as expected by redirecting to www.paypal/us but our production site, which appears to be configured the same, redirects to www.paypal/uk every time.  Both sites (test and production) are hosted by the same provider (Siteground) and we recently refreshed our test site with a copy of production a week ago. So, I cannot even begin to imagine what the difference is.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Paypal Standard defaults to uk link
March 09, 2014, 08:36:14 am
What happens when you logon (manually) to your production Paypal website, using the "Merchant Account Email" address that's in your payment processor settings?  Do you go to the US site?
Andy Clark

comff

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.0.91
  • PHP version: 5.3.28
Re: Paypal Standard defaults to uk link
March 09, 2014, 10:06:34 am
Yes, when I log into our paypal account, the link is US based.  I also spoke with paypal to have them confirm everything was in order.  Our test site is using the exact same account information as well, they both point to our production live paypal account. Yet the test site directs to a US link and production directs to a UK link. Even thought the credentials are the same. It's crazy!

comff

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.0.91
  • PHP version: 5.3.28
Re: Paypal Standard defaults to uk link
March 09, 2014, 08:51:24 pm
Success!  And on the off chance that others find themselves in this situation, I have outlined below the steps necessary to resolve it.  Not sure just what went south, but I finally bit the bullet and did a full uninstall/reinstall of CiviCRM.  I attempted just about every other partial recovery I could think of to avoid a full uninstall/reinstall, they did not work, so save yourself the time! The steps below are basically the same steps to follow when moving CiviCRM from one hosting provider to another, so if you have done that, then you already know what to do!  Anyone who hasn't, read on ...

1. MOST IMPORTANT: Backup full site and db.
2. Using phpMyAdmin, export only CiviCRM tables excluding:
        civicrm_acl_cache
        civicrm_acl_contact_cache
        civicrm_cache
        civicrm_domain
        civicrm_group_contact_cache
    Making sure to check the "Disable foreign key checks" option and Under Object Creation Options
    check the "Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT statement"option.
3. Uninstall CiviCRM.
4. IMPORTANT: Delete all CiviCRM db tables via phpMyAdmin. Just uninstalling and reinstalling will not work, tried it!
5. Reinstall CiviCRM.
6. Using phpMyAdmin, import the db export file created in step 2.
7. Using phpMyAdmin, issue the following SQL commands (these are probably unnecessary since you have a fresh install, but you never know!):
         CiviCRM db:
            truncate civicrm_uf_match;
            update civicrm_domain set config_backend = null;
         Joomla db:
            truncate com_session;
8. In /media/civicrm, delete the folder "templates_c". A new one will be created when CiviCRM is run.
 
9. Navigate to the CiviCRM Configuration Checklist and review the setting to make sure that they are correct.
 
10. If you have custom data profiles set up in your civiCRM, they may be present but for some unknown reason not be active. Go to your Administer >> Customize >> Custom Data and select "View and Edit Custom Fields". Select "Edit Field" for any one of the custom fields in the group and save it without making any changes. This will make civiCRM aware of the custom data fields and everything should be back on track.

11. If you have CMS user Profiles that relate to the civiCRM contacts, you will want to run "Synchronize Users to Contacts". It can be found at Administer >> Manage >> Synchronize Users to Contacts 

11. Reconfigure Captcha (if using).

12. I am sure others have more complex setups that we do, so you may have other elements that need to be addressed.  This is just what worked for us.

So, there you go!  Once all that was done, we were back in business.  If anyone has any ideas as to what we did that caused it all to go crazy, I would love to know so we don't EVER do it again!

Thanks to everyone who offered assistance.

Patrece

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • Paypal Standard defaults to uk link

This forum was archived on 2017-11-26.