• Developers
  • redirect after payment request not working in browser after bunq payment

Using the BUNQ API I generate a payment request in mu website, this can be used on browsers on desktop computers. I created a page in the site that will check the result of payment, and will fulfil the service that has been payed for. I use the "redirect_url" parameter in the API.


If the user has accepted the payment request, and it has payed the requested amount, using iDeal, even using a smartphone to perform the iDeal payment, the browser will show the "payment processing", and after that "payment success" pages. From this page, user user will be redirected to the "redirect_url" given to the RFP API. Now my platform knows the user (logged in) and known the request and the status, so it can fulfil the request. THIS IS NICE!

However is the user pay's the request using its owm BUNQ account (i.s.o. iDeal) we get stuk in the next screen.


After completing the payment in de app, the user can open de "redirect_url" page however since the flow started on the desktop, it will need to login again on the smartphone get the correct fulfilment experience.

It would be extreemly nice the have a customer experience similar to using the ING app to perform an iDeal payment. So after the payment is completed in de app, the bunq.me page will reflect this status (poll the payment status api every x second should make this possible.

The mist simple solution is to add a button leading to the redirect link saying somthing like

"go back the requesting website after you completed the payment on your smartphone"

in this case we can at least complete the payment flow nicely on the platform it it was started on.


Thank you.

    Sorry, I used enter after typing the title, and that posted an empty post ...

    Now I filled in the details. Hope this make more sense ...

      Hey Mathijs,


      You're on fire today with your API questions, me gusta 😀.


      There is one thing I don't understand correctly, and therefore would like to as a couple of questions:


      I know that if you pay with iDeal as shown here there is an button to be redirected back to the webshop.


      If you're using bunq.me aka a request, once the user pays this request in the app (s)he will be redirected to an url specified in the redirect_url attribute via our API 🤔.


      Let me know if this was the info you were looking for, if not then could you answer my questions to make it more clear to me on how to help you 😁

        Hey Mathijs,


        So I just tested this out and I think I know what the issue is 💪.



        And what you would like is to redirect the web page on the computer(2) instead of the user's mobile phone(1) after accepting the request in the bunq app correct ?


        If this is the case, then this is indeed not implemented and I understand the use case. It actually makes sense the behaviour you're trying to achieve.


        If you would like, I can add this on our Wishlist so our developers can take a look at it for implementation ✊

          the core of the problem is that the payment flow is started in a desktop browser, but the redirect URL is triggered in the bung app, that does run on an other device.

          So users can request something that needs to be payment on one device, but need another device to complete the payment. I would be nice is the user can be send to te redirect page on the same platform / device that was used to start the payment flow.

          a bunq.me url looks like this https://www.bunq.me/t/<long_unique_id_string>

          If you pick the option "pay using bunq", this page starts calings the bunq api (using XHTTP calls). The page knows if the payment is taken over the bunq app. However its stops polling the payment status than. Wat we need is to keep the page palling the state, so that after completing the payment in the app on another device, the page knows it's status en cen redirect to the correct back back in to the website that originated the payment request. on the correct device / browser.

          Now the redirect is requested from the app, and stays on the mobile device.

          Since de polling mechanism already exists in de bunq.me page, it seems like a not so difficult change to keep polling after the payment was picked up in the app, until is is completed ..

          Hope this clears things up a bit more ,,,,

            Yep, this is indeed how it works by design. Redirecting the web page instead of redirecting inside the bunq app is not possible yet!


            I can see the use case of this and therefore will add it to our Wishlist so our developers can take a look at it.

              thanks.

              I would be nice to have some place where we can see the roadmap of future features ...

                Hi Kevin - did you talk with David vD about this issue - two days ago?

                  Hey Gijs,


                  I dont understand your question 🙊, could you please add more context 😁?

                    Unfortunately this should then be done offline.

                      a year later

                      @Kevin-Violet-Zebra#16584 Hi Kevin, is this now implemented? I am too trying to get the user in the browser to be redirected after payment, in order to show a Thank You page.

                        Write a Reply...