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) »
  • How to redirect donor to correct page after payment is done
Pages: [1]

Author Topic: How to redirect donor to correct page after payment is done  (Read 423 times)

ashok

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
How to redirect donor to correct page after payment is done
February 17, 2014, 03:52:24 am
Hi,
I am integrating Juspay payment gateway on my site. After user enters credit card details on merchant's site, it hits my return url.
My question After knowing the status of payment is how do I send the user to correct page ?(i.e. Payment failure of successpage).

Write now what I am doing is if payment status is successful I do a db update to change the contribution_status_id to 1 in civicrm_contribution table and redirect users to  'my-site-url/civicrm/contribute/transact?_qf_ThankYou_display=true&qfKey='{$qfKey};

I tried using following -
CRM_Utils_System::url('civicrm/contribute/transact',  "_qf_ThankYou_display=1&qfKey={$qfKey}", false, null, false)
but nothing seems to be working. I am taking help from http://wiki.civicrm.org/confluence/display/CRMDOC/Example+of+creating+a+payment+processor+extension

Anybody has any idea how to process payment gateway response and send users to correct page? What all db queries need to be done?

Any help much much appreciated.

Thanks,
Negi

stars

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Joomla 2.5.16 Stable
  • MySQL version: 5.5.32
  • PHP version: 5.4.19
Re: How to redirect donor to correct page after payment is done
February 06, 2015, 07:44:02 am
Hello ashok, even I have collided with this problem, it seems the parameter _qf_Main_display = 1 and _qf_ThankYou_display=1 are not processed properly when launched the request to the payment gateway.

I wanted to ask if you have found the solution to the problem.
Thank You.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • How to redirect donor to correct page after payment is done

This forum was archived on 2017-11-26.