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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Quickpay payment extension
Pages: [1]

Author Topic: Quickpay payment extension  (Read 2065 times)

andersiversen

  • I post occasionally
  • **
  • Posts: 76
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Quickpay payment extension
November 03, 2011, 06:53:35 pm
Hi

I'm trying to make a Payment extension to Civicrm 4 for Quickpay
I've based my work on: http://quickpay.net/modules/civicrm/
and tried to upgrade that code by following this example in the documentation:
http://wiki.civicrm.org/confluence/display/CRMDOC40/Example+of+Creating+A+Payment+Processor+Extension

It works as far as paying through the Quickpay Payment "Window" (billingmode "notify")
But it fails in the callback file ( QuickpayNotify.php ) and the main function in QuickpayIPN.php never gets called...
That means that the user is not let on to the thank-you page and the payment is "pending from incomplete transaction" in CIVICRM (it is "captured" correctly at Quickpay).
The url in the browsers address bar does change to the thank you page url when comming back from Quickpay, but the page is the same "confirmation" page that sends the user to Quickpay.

I'm using the suggested patch from https://github.com/GiantRobot/CiviCRM-Ogone-Payment-Processor/commit/0abe532e553fa570a4b04a87a4e1645498727246
for QuicpayNotify.php - doing so I discovered what I think is an error in civicrm 4.0's CRM/Core/Extensions/Extension.php line 72
Code: [Select]
$this->path = $config->extensionsDir . DIRECTORY_SEPARATOR . $key . DIRECTORY_SEPARATOR;should be
Code: [Select]
$this->path = $config->extensionsDir . $key . DIRECTORY_SEPARATOR;and hence also there shouldn't be a slash before QuickpayIPN.php in (see the patch github link)
Code: [Select]
require_once $ext->path . 'QuickpayIPN.php';
anyway the above line is where it fails, no mather what I seem to do.

I've put my code on github as suggested by grobot (user here in the forums):
https://github.com/andersiversen/Civicrm-Payment-Extension-for-Quickpay-

Well. Help :)

As always: Thanks in advance

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Quickpay payment extension

This forum was archived on 2017-11-26.