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 CiviEvent (Moderator: Yashodha Chaku) »
  • A little trouble with test drive
Pages: 1 [2]

Author Topic: A little trouble with test drive  (Read 7038 times)

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: A little trouble with test drive
January 02, 2009, 01:19:23 am
Quote from: Donald Lobo on January 01, 2009, 08:52:14 pm
1. The userFrameworkResourceURL should be the exact url that you save in url setting form. There is no transformation that happens (to the best of my knowledge). You might want to print the config object and check it out.

Ok, thanks. I managed to "print the config object" (just so you get the idea of my level of PHP knowledge), and the value is correct, i.e. the long path.
And I don't know what I did yesterday, but the notify url also points to the correct location. Which means that it results in the "missing parameter" error as before, and calling it without any parameters gets me "Could not get module name from request url".
Odd, or rather embarrassing as I guess it has been that way from the beginning - my apologies for the false alarm, I'm deeply sorry for wasting your time with this!   :-[

So what I have now is a notify_url that looks ok but doesn't work. What else could I try to track this down?

Quote from: Donald Lobo on January 01, 2009, 08:52:14 pm
2. The cron scripts are invoked from outside of the CMS framework (and hence bypass the CMS). I dont remember the exact reasons why we wanted to bypass the CMS. I suspect we should pull this back into the CMS in future releases and bypass a few issues

I understand, thanks for elaborating.

Cheers,

Ronald

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: A little trouble with test drive
January 03, 2009, 06:39:52 am
Ok, so rolling back to before I set off on the wrong track.

Quote from: Donald Lobo on January 01, 2009, 08:27:36 am

Basically we add extern/ipn.php to the resourceURL (http://drupal.demo.civicrm.org/civicrm/admin/setting/url?reset=1)

That url needs to exist and without parameters should give you: Could not get module name from request url

You notify url should be resource url + 'extern/ipn.php'

i'd ensure the above works.

It does.

And when I then use the URL output by the debug statement in PayPalImpl.php and run through the PayPal sandbox payment procedure, I still get "Pending", but this in CiviCRM.log:

Code: [Select]
Jan 04 01:29:21  [info] $GET = Array
(
    [reset] => 1
    [contactID] => 17
    [contributionID] => 22
    [module] => event
    [eventID] => 1
    [participantID] => 16
)


Jan 04 01:29:21  [info] $POST = Array
(
    [mc_gross] => 2.00
    [invoice] => 80d7b9bb625f462027afa8484b469c1c
    [protection_eligibility] => Ineligible
    [payer_id] => RRM9LZXVGLFJU
    [tax] => 0.00
    [payment_date] => 06:29:13 Jan 03, 2009 PST
    [payment_status] => Pending
    [charset] => windows-1252
    [first_name] => Test
    [notify_version] => 2.6
    [custom] =>
    [payer_status] => verified
    [business] => mybuyer@mydomain.com.au
    [quantity] => 1
    [verify_sign] => AQU0e5vuZCvSg-XJploSa.sGUDlpAtqPKRClqQh41vg8sRBOnJZSR4sv
    [payer_email] => mybuyer@mydomain.com.au
    [txn_id] => 2VU297077A8690823
    [payment_type] => instant
    [last_name] => User
    [receiver_email] => mybuyer@mydomain.com.au
    [receiver_id] => EU5QE7YMUXPLN
    [pending_reason] => multi_currency
    [txn_type] => web_accept
    [item_name] => Online Event Registration: Test Event
    [mc_currency] => AUD
    [item_number] =>
    [residence_country] => US
    [test_ipn] => 1
    [handling_amount] => 0.00
    [transaction_subject] => Online Event Registration: Test Event
    [payment_gross] =>
    [shipping] => 0.00
)


Jan 04 01:29:22  [info] returning since contribution status is pending

Does that give any useful clues to anyone?
Any help greatly appreciated...

Cheers,

Ronald

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: A little trouble with test drive
January 03, 2009, 06:43:46 am

check the paypal status, paypal has kept the transaction in "pending" status due to it being "multi-currency". CiviCRM is doing the right thing.

At some later point, paypal will make another IPN call and either complete or cancel the transaction

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

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: A little trouble with test drive
January 03, 2009, 06:48:27 am
Hi lobo,

Thanks for your quick reply, and of course you are right.
I was wondering if the problems before were caused by the (Australian) buyer account I used being "unverified".
So I tried to verify it but didn't manage to, that's why I then created a US account.

Do you think PayPal would call back later for the unverified Australian accounts as well?
And any idea how long this would usually take?

Darn, I'm off to PayPal - there must be a way to verify the Ozzie account...

Cheers,

Ronald

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: A little trouble with test drive
January 03, 2009, 07:24:50 am
Ouch.
My seller account was US, so all the previous atttempts were multicurrency transactions.
And PayPal didn't call back, at least not within 3.5 days or so.
What fun!  >:(  :-X

Oh well.
Many thanks for all your help with this, lobo, I do appreciate it.

Cheers,

Ronald

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: A little trouble with test drive
January 06, 2009, 12:18:25 am
Quote
For that one I get
Could not get module name from request url

Is that the expected behaviour?

Quick note - the answer to this is YES. If you call IPN.php without feeding it a module name you will get that response

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: A little trouble with test drive
January 06, 2009, 03:01:07 am
Thanks Eileen, I appreciate you pointing that ou.
Lobo had mentioned it as well and it's now all working - pretty much all self-inflicted pain!   ::)
Great to have the support on the forum in any case, it did help a lot.

Cheers,

Ronald

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • A little trouble with test drive

This forum was archived on 2017-11-26.