CiviCRM Community > Extensions
Trying to package a new WorldPay payment processor
mcdruid:
We've got the basic functionality of a WorldPay payment processor working, based on files from a forum topic [1]
I'm now trying to package this up as an extension (testing this with CiviCRM 3.3.5)
I initially did this following the documentation [2], but from the looks of the google checkout processor listed as an available extension [3] it seems the format of the info file has changed - including the documented processor-type.xml being absorbed into the main info.xml
So I now have:
org.civicrm.worldpay
|-- CRM
| |-- Contribute
| | `-- Payment
| | `-- WorldPay.php
| `-- Event
| `-- Payment
| `-- WorldPay.php
|-- info.xml
|-- WorldPayIPN.php
|-- worldPayNotify.php
`-- WorldPay.php
...when I set the extensions directory, and place my org.civicrm.worldpay directory inside, I can see my extension in the list, and when I expand out the details, the values from my XML file are there.
The next step is where I'm struggling.
My extension is listed with a status of 'Local only' (as opposed to 'Available'). When I click on Install, the table which should show details of the extension I'm about to install is empty (despite the same details being visible on the previous page). If I then click install, I get an error about the downloadUrl not being set.
I've only been able to get the extension to install by pointing downloadUrl in info.xml at a zip file of the (same) extension which it can download. (Even then I get a few permissions errors when it tries to copy files around, but this could just be local to my set up).
So here's the question: how is this supposed to work? should the 'Local only' extension be installable without setting a downloadUrl in the info.xml?
Very happy to share this code, but would be good to get the packaging of it as an extension working.
cheers,
Drew
[1] http://forum.civicrm.org/index.php?topic=15695.0
[2] civicrm.org/blogs/michal/civicrm-extensions-framework-packaging-payment-processor
[3] svn.civicrm.org/tools/branches/v3.3/extensions/org.civicrm.payment.googlecheckout.zip
(not allowed to post external links)
heliosabc:
I got the exact same problem! Have you found a solution?
Michał Mach:
I'll try to test this scenario on my local machine - stay tuned.
Thx,
m
mcdruid:
--- Quote from: heliosabc on May 25, 2011, 01:46:08 am ---I got the exact same problem! Have you found a solution?
--- End quote ---
Sorry for the delay in replying, but no I didn't get any further with this - Michał did you have a chance to look at it?
mcdruid:
how to install extensions looks like it might be the same issue?
Navigation
[0] Message Index
[#] Next page
Go to full version