Answers.Body: <p>welcome to CiviCRM - we had some communications with a potential client who had an in-house developer that did some work on SwipeHQ. Suggest you try getting in touch with him via this <a href="https://civicrm.stackexchange.com/questions/7562/how-to-detect-handle-card-failure-from-payment-providers-callback-url?sem=2">question</a> or give me a buzz and I will put you in touch if that is helpful. Adding a SwipeHQ tag</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-13T23:03:33.763Z
Answers.Text: Thank you, will leave a note on his question but if you could help me get in touch also, that would be great!
  
  Edit: I cant actually comment as Ive only just joined this exchange - would you be able to point me in the right direction?
Answers.UserDisplayName: Aaron Cole
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-13T23:18:01.000Z
Answers.Text: Looks like a comment to me ;-). Flick me a request via fuzion.co.nz and i will pass it on to him
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-13T23:18:56.123Z
Answers.Text: oh may be you can't comment on someone elses question. - will +1 your comment to me in case that helps
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-14T08:31:58.650Z
Answers.Text: I've added a proposed approach on that question, hope it helps this too.
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-15T01:37:31.587Z
Answers.Text: Hi Chris, thanks for that comment, the issue is Im not sure how to actually access the payment "thanks"/"failed" pages - as in what url, parameters etc I actually need. Currently I get a "id not found" error whenever I try to redirect there
Answers.UserDisplayName: Aaron Cole
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-13T20:57:21.697Z
Answers.LastActivityDate: 2016-06-13T20:57:21.697Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I'm developing a payment plugin for SwipeHQ (a New Zealand based online credit card processor) for my clients Drupal website running CiviCRM.</p>
  
  <p>Currently a user will make a purchase and be redirected to the correct payment provider page, but is currently (incorrectly) being redirected to the IPN notification page on completion. The IPN end point should be used by the payment provider to notify the server of success or otherwise, but when the client is redirected here none of this information yet exists so it throws an exception. How do I instead redirect to the completion page ("hi your purchase is successful pending payment") - I have tried passing the URL in the format</p>
  
  <pre><code>civicrm/event/register?_qf_Confirm_display=true&amp;e436769547477d10db6253a97538b92a_7705
  But it complains about not being able to find the id..
  </code></pre>
  
  <p>I guess what I'm asking is, is there an easy way, given a transaction id or something similar (which I can hake the payment provider pass back to me) I can close the users current transaction?</p>
  
Tags: <drupal><payment-processor><omnipay><swipehq>
Title: What is the correct return from payment provider URL?
ThreadText: # What is the correct return from payment provider URL?
  
  (Asked by: username_0 on 2016-06-13)
  
  I'm developing a payment plugin for SwipeHQ (a New Zealand based online credit card processor) for my clients Drupal website running CiviCRM.
  Currently a user will make a purchase and be redirected to the correct payment provider page, but is currently (incorrectly) being redirected to the IPN notification page on completion. The IPN end point should be used by the payment provider to notify the server of success or otherwise, but when the client is redirected here none of this information yet exists so it throws an exception. How do I instead redirect to the completion page ("hi your purchase is successful pending payment") - I have tried passing the URL in the format
  civicrm/event/register?_qf_Confirm_display=true&e436769547477d10db6253a97538b92a_7705
  But it complains about not being able to find the id..
  
  I guess what I'm asking is, is there an easy way, given a transaction id or something similar (which I can hake the payment provider pass back to me) I can close the users current transaction?
  
  **Tags:** drupal, payment-processor, omnipay, swipehq
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-06-13. Score: 2
  
  welcome to CiviCRM - we had some communications with a potential client who had an in-house developer that did some work on SwipeHQ. Suggest you try getting in touch with him via this [question](https://civicrm.stackexchange.com/questions/7562/how-to-detect-handle-card-failure-from-payment-providers-callback-url?sem=2) or give me a buzz and I will put you in touch if that is helpful. Adding a SwipeHQ tag
  
  > **Comments:**
  > **username_0**: Thank you, will leave a note on his question but if you could help me get in touch also, that would be great!  Edit: I cant actually comment as Ive only just joined this exchange - would you be able to point me in the right direction?  
  > **username_1**: Looks like a comment to me ;-). Flick me a request via fuzion.co.nz and i will pass it on to him  
  > **username_1**: oh may be you can't comment on someone elses question. - will +1 your comment to me in case that helps  
  > **username_2**: I've added a proposed approach on that question, hope it helps this too.  
  > **username_0**: Hi Chris, thanks for that comment, the issue is Im not sure how to actually access the payment "thanks"/"failed" pages - as in what url, parameters etc I actually need. Currently I get a "id not found" error whenever I try to redirect there  
  
  ---
  
  