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) »
  • Google checkout doesnt work with civievent plz plz need help
Pages: [1]

Author Topic: Google checkout doesnt work with civievent plz plz need help  (Read 3594 times)

altaf

  • Guest
Google checkout doesnt work with civievent plz plz need help
December 30, 2007, 07:36:45 am
i have set google checkout from
     globalsettings->paymentprocessor->googlecheckout
     entered merchant test id
     merchantid---223355036030866
     gmerchantkey---eCQSdbafiKdGjalDoLM6og

then in event i have set that processor
  from eventfees-> paymentmethod(googlecheckout)



then in googlemerchant account i have selected Preferences and tick the checkbox
     Automatically authorize and charge the buyer's credit card
and it calls googleNotify.php so i entered in url
 http://__civicrm/extern/googleNotify.php
it says Eventid not found........

 ??? can anybody tell me user registers for that event , neither its adding as user as a  particpant nor its showing status of contribution  completed plz plz guys any any help would be aprreciated

 ---altaf
« Last Edit: January 02, 2008, 09:56:14 pm by altaf »

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: Google checkout doesnt work civievent plz plz need help
December 30, 2007, 08:29:01 am

Can u be more specific as to when it gives you the error: "Eventid not found"

if u call this url: http://__civicrm/extern/googleNotify.php it will give u the above error. google uses that callback url and sends in specific parameters etc

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

altaf

  • Guest
Re: Google checkout doesnt work civievent plz plz need help
December 30, 2007, 08:40:13 am
My first question
1) does googlecheckout workds with civicrm1.9 , i doubt so i checkd with paypal standard but it works fine but when i try this it gives me error,

2) You said more specific actually , i dont know whether its error or not but to check whether its creating participant and making contribution after transaction i did this trick entered
 http:---civicrm/extern/googleNotify.php into

3) does my google settings are proper and to test does it work properly i m checking it on demo civicrm.org where i hve created
 
   i)altafgoogle payment processor
   ii)created event altaftest and using this processor
   iii)and in merchant api callback googlecheckout i have entered
           https://demo.civicrm.org/drupal/sites/all/modules/civicrm/extern/googleNotify.php


where i m wrong can  tell me ? ND I GUESS IT SHOUD WORK because it works for paypal standard .....

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: Google checkout doesnt work civievent plz plz need help
December 30, 2007, 07:22:02 pm

1. yes

2. entering the url will not work (for paypal or google). you need to enter it in the same format that google would post back

3. are you doing a test transaction or live transaction. also are u using the latest version of v1.9 (earlier revisions had a bug with live google checkout)

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

altaf

  • Guest
Re: Google checkout doesnt work civievent plz plz need help
December 31, 2007, 05:49:18 am
hi thanx for the reply
 can u tell me is it fixed for civicrm-1.9.12432-drupal-php5 version.....

  1) if i only do contribution it works fine but when i register for the event for testdrive it neither makes a contribution nor creates user as a participant
  2) When i access Civicrm.Log in it , it says  Could not find inside getcontext contribution record with invoice id: 716220933937568. Can u throw a light , where i am going wrong because my google settings are proper otherwise it shouldnt work for contribution too but its working so settings are proper.  But the problem is in googleIPN.php file ......
                 Thanx in advance.......
                 -altaf

altaf

  • Guest
Re: Google checkout doesnt work civievent plz plz need help
December 31, 2007, 06:03:53 am
 i got d error
when it tries to retrieve invoice_id from contribution table , it doesnt match with that id

in googleNotify.php
 at line 495
 $contribution->invoice_id = $orderNo;

 Happy New year ......

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: Google checkout doesnt work civievent plz plz need help
December 31, 2007, 10:24:46 am

Seems like this is an error/bug with 1.9. we'll test and ensure it works with at least the test mode in google checkout in v2.0

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

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Google checkout doesnt work civievent plz plz need help
January 01, 2008, 08:42:42 pm
Yep, it's a bug with 1.9 and here is the fix :

In the file: CRM/Core/Payment/GoogleIPN.php

Replace line : 520
Code: [Select]
if ( empty( $privateData['eventID'] ) ) {
With :
Code: [Select]
            if ($root == 'new-order-notification') {
                $eventID = $privateData['eventID'];
            } else {
                $eventID     = (int)str_replace('eid', "", $contribution->trxn_id);
            }
            if ( !$eventID ) {

And replace the line:
Code: [Select]
$event->id = $privateData['eventID'];
With :
Code: [Select]
$event->id = $eventID;
Note: All the changes are inside getContext(..) method.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

altaf

  • Guest
Re: Google checkout doesnt work with civievent plz plz need help
January 02, 2008, 10:02:51 pm
Thank you , i added the patch its working now.........  :)


altaf
« Last Edit: January 03, 2008, 09:09:10 pm by altaf »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Google checkout doesnt work with civievent plz plz need help

This forum was archived on 2017-11-26.