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 CiviContribute »
  • Community Contributed Payment Processors »
  • SOLVED: Implementing PlugnPay
Pages: [1]

Author Topic: SOLVED: Implementing PlugnPay  (Read 2751 times)

howardshand

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.0.51b-community-nt
  • PHP version: 5.3.8
SOLVED: Implementing PlugnPay
February 05, 2012, 05:40:24 pm
Undertaking a move of our university alumni site to a Joomla/JomSocial/Civicrm build and looking to implement our current localized version (Jamaica) of the PlugnPay payment processor for Civicrm.

Looking for any advice/best practices/experience of anyone here who has done anything similar.

The php apis I would be looking to implement incase you want to look through are:

http:// plugnpay-php.googlecode.com/files/plugnpay-php-0.6.tar.gz
« Last Edit: November 20, 2014, 10:55:44 am by howardshand »
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

My current favorite is Recurring events and recording atten...

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: Implementing PlugnPay
February 06, 2012, 07:19:43 am

http://wiki.civicrm.org/confluence/display/CRMDOC40/Example+of+Creating+A+Payment+Processor+Extension

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

howardshand

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.0.51b-community-nt
  • PHP version: 5.3.8
Re: Implementing PlugnPay
February 07, 2012, 06:55:16 am
Thanks Lobo.

Will take a good look.
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

My current favorite is Recurring events and recording atten...

howardshand

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.0.51b-community-nt
  • PHP version: 5.3.8
Re: Implementing PlugnPay
April 21, 2012, 10:38:04 am
Have implemented a semi-working version, just providing the code in case anyone else ever needs it:

https://github.com/howardshand/CiviCRM-PlugnPay-Payment-Processor
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

My current favorite is Recurring events and recording atten...

howardshand

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.0.51b-community-nt
  • PHP version: 5.3.8
Re: Implementing PlugnPay
May 31, 2012, 06:13:01 pm
Have resolved the issue of implementing Plug & Pay with some help from Michael Williamson from Plug & Pay by using their Authorize.net emulation method. This allows you to use the CiviCRM Authorize.net plugin and pass requests through to Plug & Pay.

For the values that you see listed in the plugin, here are the values you should use:

1. API Login: This value should be set as the username for your Plug & Pay account (must be set to the main username and not any sub-login accounts).

2. Payment Key: This is an Authorize.net variable that has no corresponding use to Plug & Pay.  Therefore you can enter any valid value here.  We will not be using it for anything.

3. MD5 Hash:  This is something that you will need to set up in your Plug & Pay account by logging into your Plug & Pay account, choosing the link 'Security Administration' under the 'Settings Tab' and then choosing the option for 'Verification Hash' from the following options. Normally the 'Verification Hash' option will not be viewable as it is off by default and must be activated by Plug & Pay for the option to display.

4. Site URL:  This is the payment url that the software will be posting transaction data to.  You will want to use the following value here: https://pay1.plugnpay.com/payment/pnpremote.cgi

5. Recurring Payment URL: This would be a URL used with Authorize.net's recurring billing service.  This is not supported by our Authorize.net emulation layer so it is not an applicable variable for us to use.  If you need to enter a value here use the above URL as well.

6. There is a variable named ‘x_version’ which is an Authorize.net variable that determines the version of Authorize.net. It is a require variable for the emulation to work and if the value does not get passed then the attempt fails. To solve this problem modifications must be made to CRM/core/payment/AuthorizeNet.php. So at around line 335 (thanks ksorbo) add

        $fields['x_amount']         = $this->_getParam( 'amount' );
        $fields['x_currency_code']  = $this->_getParam( 'currencyID' );
        $fields['x_description']    = $this->_getParam( 'description' );
        $fields['x_version']        = '3.1';  // added line

And voilà it should all be working!
« Last Edit: June 04, 2012, 07:09:20 am by howardshand »
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

My current favorite is Recurring events and recording atten...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • SOLVED: Implementing PlugnPay

This forum was archived on 2017-11-26.