CiviCRM Community > Extensions

Quickpay payment extension

(1/1)

andersiversen:
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: ---$this->path = $config->extensionsDir . DIRECTORY_SEPARATOR . $key . DIRECTORY_SEPARATOR;
--- End code ---
should be

--- Code: ---$this->path = $config->extensionsDir . $key . DIRECTORY_SEPARATOR;
--- End code ---
and hence also there shouldn't be a slash before QuickpayIPN.php in (see the patch github link)

--- Code: ---require_once $ext->path . 'QuickpayIPN.php';
--- End code ---

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

Navigation

[0] Message Index

Go to full version