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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Payment Processor guidance
Pages: [1]

Author Topic: Payment Processor guidance  (Read 414 times)

ChrisChinchilla

  • I post occasionally
  • **
  • Posts: 104
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 6 & 7
Payment Processor guidance
September 06, 2013, 04:12:10 pm
Hey everyone, apologies if this is in docs somewhere but I can't seem to find it and I'm a bit stuck.

I'm trying to finish off a payment processor and want to know what's going on behind the scenes and the responses coming back from the gateway etc, basically, a bit of debugging.

No matter what kind of debug statements I put into 'doDirectPayment' function (prints, var_dumps, exit etc) nothing seems to happen, am I missing something here? How does the flow for payment processors work? If I remove the function completely I get an error, so I'm in the right code file but I just can't seem to debug what's going on and it's somewht frustrating :/

Thanks!
Melbourne CiviCRM meetup group - http://www.meetup.com/MelbourneCiviCRM/

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 guidance
September 06, 2013, 07:47:50 pm

did u print and exit as the very first statement in your payment processor

note that the function is called AFTER the confirm page. that is when civi makes the payment processor call

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

ChrisChinchilla

  • I post occasionally
  • **
  • Posts: 104
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 6 & 7
Re: Payment Processor guidance
September 06, 2013, 09:52:22 pm
Yes tried that, that works OK.

So are you saying doProcess is executed when someone clicks 'Continue' at the Confirmation page? That's what I assumed, or at a different stage. How would you debug what happens in the function?
Melbourne CiviCRM meetup group - http://www.meetup.com/MelbourneCiviCRM/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Payment Processor guidance

This forum was archived on 2017-11-26.