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) »
  • New payment processor using POST request
Pages: [1]

Author Topic: New payment processor using POST request  (Read 1367 times)

joshc

  • Guest
New payment processor using POST request
April 07, 2009, 07:22:56 pm
Hi,

I'm currently trying to create a new payment processor and have come across a problem relating to redirecting the user to the authorized 3rd party payment page (Paydollar). I've been following the guidelines available from http://wiki.civicrm.org/confluence/display/CRMDOC/Creating+Additional+Payment+Processor+Plugins and it's gotten me so far as to be able to select the new processor for a contribution and actually call the custom function doTransferCheckout. The difference I see with this processor compared to the other available processors is that the user needs to be redirected to the payment page along with its payment information (id, amount, etc.) using a POST request. All the previous ones seem to use CRM_Utils_System::redirect() to access their payment page but the necessary information can't be passed along.

This might be more of a PHP question about creating a redirect POST request without using a form or such but any help would be appreciated. Thanks!

Josh

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: New payment processor using POST request
April 07, 2009, 09:32:29 pm

You might want to check the docs for either "curl" or the per package HTTP/Request.php

I suspect you can use either package to do what you want (i.e. send details of transaction in a POST request)

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) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • New payment processor using POST request

This forum was archived on 2017-11-26.