Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Omdat er nog geen redirect is bij succes of error van de betaling en de support niet optimaal presteerd.

    Heb ik hier een snelle oplossing voor bedacht: Bij de mollie formulier vul je de volgende in:

    Succesvol bericht: “dankjewel”
    Error bericht: “nietgelukt”

    Class succes bericht: “redirect-succes-mollie”
    Class error bericht: “redirect-error-mollie”

    Daarna plaats je de volgende jQuery code in de footer of javascript bestand en vergeet de URL niet aan te passen:

    <script type="text/javascript">
    jQuery("p.redirect-succes-mollie").each(function() {
        if (jQuery(this).text().indexOf("dankjewel") >= 0) {
            window.location.href = "https://www.jouwwebsite.nl/bedankt/";
        }})
    
    jQuery("p.redirect-error-mollie").each(function() {
        if (jQuery(this).text().indexOf("nietgelukt") >= 0) {
            window.location.href = "https://www.jouwwebsite/error/";
        }})
    </script>
    • This reply was modified 8 years, 6 months ago by givenbase.

    Because there is no diversion when payment error occurs and support does not perform optimally.

    I have come up with a quick solution for this: With the mollie form you fill in the following:

    successful message: “thankyou”
    Error message: “unsuccessful”

    Class succes bericht: “redirect-succes-mollie”
    Class error bericht: “redirect-error-mollie”

    Then you place the following jQuery code in the footer or javascript file and do not forget to change the URL:

    <script type="text/javascript>
    jQuery("p.redirect-succes-mollie").each(function() {
        if (jQuery(this).text().indexOf("thankyou") >= 0) {
            window.location.href = "https://www.jouwwebsite.nl/bedankt/";
        }})
    
    jQuery("p.redirect-error-mollie").each(function() {
        if (jQuery(this).text().indexOf("unsuccessful") >= 0) {
            window.location.href = "https://www.jouwwebsite/error/";
        }})
    </script>
    • This reply was modified 8 years, 6 months ago by givenbase.
Viewing 2 replies - 1 through 2 (of 2 total)