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) »
  • payment provider question
Pages: [1]

Author Topic: payment provider question  (Read 377 times)

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
payment provider question
June 14, 2014, 04:51:15 am
I am building a payment provider based on
http://wiki.civicrm.org/confluence/display/CRMDOC/Example+of+creating+a+payment+processor+extension

The payment provider is of type Notify.

What I can not find is where a reference is created to the specific Notify.php in this extension?

How would payment provider know where to return to exactly?
a) For the immediate return (with succes or fail screen)
b) For the cron'ed notification about payment statuses

The specific question is:
How do I create the URL's for the return and notification pages to give to Payment Provider?

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Re: payment provider question
June 14, 2014, 02:00:23 pm
I restarted the extension and used
https://github.com/eileenmcnaughton/nz.co.fuzion.cmcic

as the main example.

So it has become a "module" extension in stead of a "payment" extension.

Now it works.
I also needed a POST submit to the payment provider and this extension shows how that is done.

When I'm done, I will post it on extensions page and help update the wiki.

The notification URL is when you use this example

Code: [Select]
   $notificationUrl = CRM_Utils_System::url('civicrm/payment/ipn', array(
       'processor_id' => $params['payment_processor_id'],
       'mode' => $this->_mode,
       ), TRUE, NULL, FALSE
     );





Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • payment provider question

This forum was archived on 2017-11-26.