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 (Moderator: Donald Lobo) »
  • Custom payment gateway (Netbanx): recurring transactions and receipts
Pages: [1]

Author Topic: Custom payment gateway (Netbanx): recurring transactions and receipts  (Read 427 times)

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Custom payment gateway (Netbanx): recurring transactions and receipts
February 01, 2014, 01:13:03 pm
I maintain a payment gateway extension for Netbanx and was wondering where I could find more information on how to implement recurring transactions. I read the code from a few other gateways (mostly AuthNet), but had doubts on the best way to do it.

CiviCRM code has this:
CRM/Contribute/BAO/Contribution/Utils.php processConfirm():
Code: [Select]
    //Do not send an email if Recurring contribution is done via Direct Mode
    //We will send email once the IPN is received.
    if (!empty($paymentParams['is_recur']) && $form->_contributeMode == 'direct') {
      return TRUE;
    }

1- if my gateway processes the first contribution immediately, and I want to send a receipt immediately, what should the code do?
2- according to Netbanx documentation, recurrent transactions must be processed by sending a 'originalConfirmation' number, which sounds very similar to AuthNet. However, unlike AuthNet, if i understood correctly, it's up to a CiviCRM cron to process the recurring transactions. Although in this case I should just implement something based on Core/Payment/AuthorizeNetIPN.php from within my cron?

References:
https://github.com/mlutfy/ca.nodisys.netbanx
http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Payment-Processor+Extension
http://www.support.optimalpayments.com/REPOSITORY/WebServices_API_1.0_FR.pdf
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Custom payment gateway (Netbanx): recurring transactions and receipts

This forum was archived on 2017-11-26.