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) »
  • Trying to package a new WorldPay payment processor
Pages: [1]

Author Topic: Trying to package a new WorldPay payment processor  (Read 2679 times)

mcdruid

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Trying to package a new WorldPay payment processor
March 10, 2011, 05:30:43 am
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’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: 6
  • MySQL version: 5
  • PHP version: 5.2
Re: Trying to package a new WorldPay payment processor
May 25, 2011, 01:46:08 am
I got the exact same problem! Have you found a solution?

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Trying to package a new WorldPay payment processor
May 25, 2011, 07:05:26 am
I'll try to test this scenario on my local machine - stay tuned.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

mcdruid

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Trying to package a new WorldPay payment processor
June 15, 2011, 02:35:40 am
Quote from: heliosabc on May 25, 2011, 01:46:08 am
I got the exact same problem! Have you found a solution?
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

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Trying to package a new WorldPay payment processor
June 15, 2011, 02:39:24 am
how to install extensions looks like it might be the same issue?

heliosabc

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: 6
  • MySQL version: 5
  • PHP version: 5.2
Re: Trying to package a new WorldPay payment processor
June 15, 2011, 02:40:27 am
In fact, I got it to work!

mcdruid

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Trying to package a new WorldPay payment processor
June 15, 2011, 02:42:14 am
Great! are you able to explain what the problem was, and how you solved it?

heliosabc

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: 6
  • MySQL version: 5
  • PHP version: 5.2
Re: Trying to package a new WorldPay payment processor
June 15, 2011, 05:38:21 am
I don't remember, it has been a long time, but I changed something in the civicrm code to make it work, only one line to adjust, but still :)

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Trying to package a new WorldPay payment processor
June 20, 2011, 07:30:10 am
Mcdruid - sorry, I forgot there are two threads with the same issue. As stated in other thread - there was a bug, fixed now. Please apply the path mentioned in another thread and let me know if it helped.

Thx.
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Trying to package a new WorldPay payment processor

This forum was archived on 2017-11-26.