veda-consulting / uk.co.vedaconsulting.payment.gocardlessdd

1 stars 7 forks source link

Redirect loop from Gocardless confirmation link #17

Open axaak opened 7 years ago

axaak commented 7 years ago

Hi, thank you for creating the Gocardless extension which we've been testing. We have: Civicrm 4.6.27 Gocardless extension: 1.2.1 UK direct debit extension 2.3.8.

On the confirmation page we get the following message and link:

You can modify or cancel future payments at any time by logging in to your account. The receipts will also include a link you can use if you decide to modify or cancel your future payments.

The link is:

https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=9a14faa380fde7f1ac217f904046b504_8619&redirect_flow_id=RE0000FVYFV8AFDRQB9TJCF8WVPTRCRR

Clicking on this links results in a redirection loop which the browser eventually gives up on. Section from our Apache access log shows the looping:

[](217.42.113.125 - - [12/Jun/2017:12:51:31 +0100] "GET /axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M HTTP/1.1" 302 551 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:32 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:33 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:34 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:35 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:36 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:37 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:37 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:38 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:39 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:40 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:40 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:41 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:42 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:43 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:43 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36"
217.42.113.125 - - [12/Jun/2017:12:51:44 +0100] "GET /axa-test-2/?page=CiviCRM&q=civicrm/contribute/transact& HTTP/1.1" 302 413 "https://example.com/axa-test-2/?_qf_ThankYou_display=1&cid=81398&page=CiviCRM&q=civicrm%2Fcontribute%2Ftransact&qfKey=0bfc65c78dac45cd6c65b32fa30d8a8c_6394&redirect_flow_id=RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36")

I've replaced our URL with example.com.

In the JS console I also see a 400 Bad Request:

flow-manifest-20e0498….js:1 POST https://pay-sandbox.gocardless.com/flow/RE0000FWGMP3W4XTQRWBP5X7JKHAWG4M/usage 400 (Bad Request)
(anonymous) @   flow-manifest-20e0498….js:1
(anonymous) @   flow-manifest-20e0498….js:2
g   @   flow-manifest-20e0498….js:2
s   @   flow-manifest-20e0498….js:2
l   @   flow-manifest-20e0498….js:3
l   @   flow-manifest-20e0498….js:3
(anonymous) @   flow-manifest-20e0498….js:3
$eval   @   flow-manifest-20e0498….js:3
$digest @   flow-manifest-20e0498….js:3
$apply  @   flow-manifest-20e0498….js:3
(anonymous) @   flow-manifest-20e0498….js:4
(anonymous) @   flow-manifest-20e0498….js:2
o   @   flow-manifest-20e0498….js:1
r   @   flow-manifest-20e0498….js:2
r   @   flow-manifest-20e0498….js:1

which may or may not be significant.

Can you help fix this link or provide a method which just says "Email us for changes" please?

Regards, axaak