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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Writing payment plugins which support multiple simultaneous payments
Pages: [1]

Author Topic: Writing payment plugins which support multiple simultaneous payments  (Read 577 times)

andyw

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 4
  • CiviCRM version: 4.x
  • CMS version: Drupal, Joomla
Writing payment plugins which support multiple simultaneous payments
April 20, 2011, 09:27:55 am
Hi there,

I wonder if somebody might be able to give me some pointers on payment plugins / billing modes if it's not too much bother?

We have a couple of billing_mode 4 payment plugins which we've written for specific clients, and would like them to be able to support separate contribution and membership payments.

However, when enabling this in Civi (ticking the 'Separate Membership Payment' box under 'Membership Settings'), we get this error here:

Sorry. A non-recoverable error has occurred.
This contribution page is configured to support separate contribution and membership payments. This plugin does not currently support multiple simultaneous payments. Please contact the site administrator and notify them of this error

No problem, so looking at the code which generates this error, it seems that Civi is looking at the billing mode to determine whether or not the payment plugin is capable of supporting this feature.

So my questions are:

* What is involved in getting a billing_mode 4 plugin to support multiple simultaneous payments? Would it involve changing the billing mode and significantly rewriting the plugin? If so, what billing modes would be capable of doing this?

* What would the plugin itself need to do to support this? How is this type of transaction handled by Civi?

Thanks for your help!

Andrew
Andrew Walker, Developer at Circle Interactive

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: Writing payment plugins which support multiple simultaneous payments
April 20, 2011, 09:36:52 am
billing mode 1 supports this

basically the ability to make two different transactions with the PP is needed.

in mode 4, the user is sent to the PP and we can only do one combined transaction, hence it is not supported.

lobo
« Last Edit: April 20, 2011, 09:43:09 am by Donald 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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Writing payment plugins which support multiple simultaneous payments

This forum was archived on 2017-11-26.