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) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • New Payment gateway for civiCRM
Pages: [1]

Author Topic: New Payment gateway for civiCRM  (Read 1131 times)

adiyya

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • Click & Pledge
  • CiviCRM version: 4.1
  • CMS version: joomla 1.7, Drupal7.0, WordPress3.4
  • MySQL version: 5.2
  • PHP version: 5.3
New Payment gateway for civiCRM
July 20, 2012, 05:32:00 am
Hi All,

Its my pleasure to be part of civiCRM.

Recently we have developed a payment procedure in civiCRM 4.1 with joomla 1.7. Do we know how do we submit it to civiCRM so that they may release it in further releases. Previously we have submitted it to civiCRM. Now we have changed the way the system handling the billing mode.

Please guide us how to submit it to civiCRM as early as possible.

Thanks in advance.

Regards,
Adiyya Tadikamalla
Adi T | Click & Pledge®
Email:  tadikamalla.adiyya@clickandpledge.com

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: New Payment gateway for civiCRM
July 20, 2012, 08:34:28 am

all new payment gateways / custom reports / searches are now going to be packaged extension starting in 4.2

We'll have a few blog posts on this once 4.2 is ready for release. there are a few examples you can use here:

http://svn.civicrm.org/tools/trunk/extensions/

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

adiyya

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • Click & Pledge
  • CiviCRM version: 4.1
  • CMS version: joomla 1.7, Drupal7.0, WordPress3.4
  • MySQL version: 5.2
  • PHP version: 5.3
Re: New Payment gateway for civiCRM
July 25, 2012, 05:30:51 am
Thanks lobo for quick response. Sorry for the late reply. Iam away from my system for few days.


Thanks,
Adiyya T
Adi T | Click & Pledge®
Email:  tadikamalla.adiyya@clickandpledge.com

adiyya

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • Click & Pledge
  • CiviCRM version: 4.1
  • CMS version: joomla 1.7, Drupal7.0, WordPress3.4
  • MySQL version: 5.2
  • PHP version: 5.3
Re: New Payment gateway for civiCRM
August 10, 2012, 06:48:14 am
Hi Lobo,

We have one payment processor named 'Click and Pledge' with CiviCRM(4.1) core. Now we have updated the code. We are trying to submit it to CiviCRM as extension(or trying to submit updated code to CiviCRM). If we provide it as extension and trying to install, it is giving 'DB Error: already exists' (I believe this is because we have already 'ClickAndPledge' name in 'payment_processor_type' table).

Note: If we created new payment procedure as extension that's fine. But we are updating the code for already existing payment procedure.

We are following instructions from following URLs to create extension:
http://wiki.civicrm.org/confluence/display/CRMDOC42/Creating+CiviCRM+Extensions
http://wiki.civicrm.org/confluence/display/CRMDOC42/Example+of+Creating+a+Payment+Processor+Extension

Please let us know how to procede to integrate our updated code with CiviCRM. Looking forward for your kind co-operation

Thanks in advance.

Adiyya T,
Click & Pledge
Adi T | Click & Pledge®
Email:  tadikamalla.adiyya@clickandpledge.com

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: New Payment gateway for civiCRM
September 06, 2012, 01:15:05 pm
Hello, Addiya,

Your problem description makes sense (although it's a new situation we haven't encountered before). The "civicrm_payment_processor_type" table requires that each "name" be unique, and it does appear that the "name" is already used by some other code in core. The simplest solution would be to use different name for the extension variant -- eg "ClickAndPledgeExt" or "ClickAndPledge2". (I'd give you more details on renaming -- but that depends on how exactly the extension is written -- eg in info.xml, does it declare the extension type as "payment" or "module"?)

The simple approach comes with one drawback -- administrators who have previously configured "ClickAndPledge" payment processors will need to revise the configuration. That's probably a reasonable thing to do (since they have access to two different implementations and may want to try out each). However, if you really want to do this automatically, then you might use something like this pseudocode:

Code: [Select]
function clickandpledge_civicrm_enable() {
    // If core defines older ClickAndPledge, then migrate data and disable it
    sql("UPDATE payment_processor
      SET payment_processor_type = ClickAndPledgeExt
      WHERE payment_processor_type = ClickAndPledge")
    sql("UPDATE payment_processor_type
      SET is_active = 0
      WHERE name = ClickAndPledge")
 }

 function clickandpledge_civicrm_disable() {
    // If core defines older ClickAndPledge, then restore it
    sql("UPDATE payment_processor_type
      SET is_active = 1
      WHERE name = ClickAndPledge")
    sql("UPDATE payment_processor
      SET payment_processor_type = ClickAndPledge
      WHERE payment_processor_type = ClickAndPledgeExt")
 }

Implementing the above may take a bit of effort because that hasn't been done before, it requires testing for corner cases, and some of the documentation for implementing payment processors needs revision for 4.2. Also, the specific codes depend on the declared extension-type ("payment" or "module").

Final note: In two spots, I've mentioned that extensions can be of type "payment" or "module". For 4.2+, "module" is the better approach, but there are some gaps in documentation regarding payment-processing. But fortunately there is an example:

https://github.com/drastik/civicrm_stripe/tree/master/extension-4.2/com.drastikbydesign.stripe

Kamran.Razvan

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: 1.7
  • MySQL version: 4
  • PHP version: 4
Re: New Payment gateway for civiCRM
September 07, 2012, 06:18:56 am
Thank you for your reply.

Is there anyway to remove the old extension (app) from the core?  That extension will no longer work with our platform and needs to be removed.


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: New Payment gateway for civiCRM
September 07, 2012, 07:42:24 am

hey kamran:

can u please file an issue for this. we'll take care of it in 4.2.1

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

adiyya

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • Click & Pledge
  • CiviCRM version: 4.1
  • CMS version: joomla 1.7, Drupal7.0, WordPress3.4
  • MySQL version: 5.2
  • PHP version: 5.3
Re: New Payment gateway for civiCRM
September 10, 2012, 11:45:34 pm
Thank you Lobo for your reply. We have filed an issue and we receive the notification that Fixed for 4.2.1.

Thanks for the fix.

Adiyya T,
Click & Pledge
Adi T | Click & Pledge®
Email:  tadikamalla.adiyya@clickandpledge.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • New Payment gateway for civiCRM

This forum was archived on 2017-11-26.