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) »
  • How to create Payment Processor! Please Help
Pages: [1]

Author Topic: How to create Payment Processor! Please Help  (Read 693 times)

amitsri

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal
  • MySQL version: 5.5.14
  • PHP version: 5.3.0
How to create Payment Processor! Please Help
May 30, 2012, 10:27:38 am
Hello everybody,

I am writing a new payment processor, for an indian bank using CiviCRM 4.1.2 with Drupal 7.14.

I have implemented doTransferCheckout() 'form' mode to submit transaction request to bank payment gateway URL.

Now, i have following issues, please suggest me best possible solution or existing payment processor which works like above payment gateway.


My Payment gateway payment flow is as follows:

Contribute Page->Payment Gateway Web Form->Enter Details and Confirm Payment->Return to caller.

On return, my payment gateway passing values with the return URL. So, my issue is how to validate the result
and redirect user to thank you or cancel pages within civicrm on the basis of result.

Thanks,

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: How to create Payment Processor! Please Help
May 30, 2012, 11:50:27 am

I dont think we've implemented a processor like this before, so i suspect u'll need to figure out the best way to handle this. Most of the current processors which get sent over to an external payment page, ping back at a later time with success or failure. Might be best to model it after that style

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How to create Payment Processor! Please Help
May 30, 2012, 01:35:26 pm
I don't follow this. Why shouldn't this work like any other external processor, such as PayPal? The OP wrote about "Return to caller" but as long as that could be set to the pingback URL, shouldn't it be the same?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: How to create Payment Processor! Please Help
May 30, 2012, 10:59:38 pm

The pingback url (typically extern/*ipn.php in 4.1 and prior) basically assumes its being called from a script and does not echo anything. i.e it succeeds or fails silently (actually it logs it to a file)

So if u redirect to that url, the user will get a blank page :)

hence the suggestion that the OP will need to merge the ipn.php code + the thank-you page code

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

amitsri

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal
  • MySQL version: 5.5.14
  • PHP version: 5.3.0
Re: How to create Payment Processor! Please Help
May 31, 2012, 10:54:37 am
Thanks, for your suggestion, but as a newbie i don't have much knowledge of merging code of ipn.php code + the thank-you page code. The best i have tried to create my own myipn.php based on ipn.php, but the problem is, i won't able to redirect user to thank you or cancel URLs from myipn.php.  Please let me know is there any way to pass myipn.php as return URL and validate payment gateway result there and then redirect user back to thank you or cancel URLs.

Please let me know, where I'll find the thank you page code. I'll try to validate my payment gateway result within that page.

Thanks,

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to create Payment Processor! Please Help

This forum was archived on 2017-11-26.