This topic contains 7 replies, has 2 voices, and was last updated by  mwilliams 2 weeks, 5 days ago.

  • Author
    Posts
  • Participant
    Ryan_Coleman
    Senior Member
    Member since: 16.07.2018
    Number of posts: 101

    Guys,

    I have a few redirects that I am trying that are not working and would love to know where I’m going wrong.

    1. I’ve set the handover and complete event to force the redirect of a user when completing a package and it doesn’t seem to work. See code below as this is what I am sending in my package config.

    "settings": {
        "ceremony": {
          "hidePackageOwnerInPerson": true,
          "optOutButton": false,
          "layout": {
            "brandingBar": {
              "logo": {
                "src": "http://www.mortgagelaw.com/images/logo-medium.png",
                "link": ""
              }
            }
          },
          "events": {
            "complete": {
              "dialog": true,
              "redirect": "https://www.google.com"
            }
          }
        },
        "handOver": {
          "title": "You will now be redirected to GOOGLE!",
          "href": "https://www.google.com",
          "text": "Continue to exit!"
        }
      }
    

    When I use this code, it does prompt the user when the package has been completed but when I click on the exit button, it doesn’t redirect me anywhere. It actually just takes me back to the login page, inside of iframe. This basically gives me two footers for the same page.

    2. I want to redirect the last user, our notary, to a different url upon completion of signing. Is there a way to do this?

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Hey Ryan,

    For #1, there is a slight issue with the curly brackets that’s causing your issue. This should work:

    "settings": {
        "ceremony": {
          "hidePackageOwnerInPerson": true,
          "optOutButton": false,
          "layout": {
            "brandingBar": {
              "logo": {
                "src": "http://www.mortgagelaw.com/images/logo-medium.png",
                "link": ""
              }
            }
          },
          "events": {
            "complete": {
              "dialog": true,
              "redirect": ""
            }
          },
        
        "handOver": {
          "title": "You will now be redirected to GOOGLE!",
          "href": "https://www.google.com",
          "text": "Continue to exit!"
        }
        }
      }

    For #2, there isn’t a way to specify a different handover or just a handover for a particular signer, however, we do have our JavaScript event notifier, which it sounds like you might be able to use since you’re embedding in an iFrame. Take a look at this:

    https://www.esignlive.com/blog/esignlive-event-notifier

    This would allow you to track signer completion in the embedded ceremony and redirect on your own.


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    Ryan_Coleman
    Senior Member
    Member since: 16.07.2018
    Number of posts: 101

    Score

    0

    mwilliams –

    For issue 1, what I pasted was only a small snippet of the code I’m using. All brackets are there, just not displayed in the code above. ha. This does not actually work as the user isn’t redirected once the dialog pops up.

    For issue 2, I’ll look into the JavaScript event notifier.

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    On #1, it definitely works. I tried it with what you had and got the same experience that you described. Then, switched them so that handOver was inside the ceremony object and it then worked fine. It wasn’t a case of missing brackets. If you notice, I removed the closing curly bracket under “events” that closed off the “ceremony” object before the “handOver” object. I moved the comma up to behind the “events” block, then, added the removed curly bracket down below the “handOver” block to close the “ceremony” block in the proper place. Where you close it, “handOver” is part of “settings” and isn’t recognized.

    You can test this in Postman by creating a package in the OSS UI, grabbing the Transaction ID from the URL, and then passing a PUT request to https://sandbox.esignlive.com/api/packages/{packageID} with Authorization: Basic {APIKEY} and Content-Type: application/json headers and a body that contains the JSON from each of our posts inside a set of curly brackets ‘{}’.

    If you’re unable to test this out, please send me the larger JSON to developer@esignlive.com. I’ll make the change in it and send back to you.

    On #2, let me know if you run into any issues. 🙂


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    Ryan_Coleman
    Senior Member
    Member since: 16.07.2018
    Number of posts: 101

    Score

    0

    mwilliams –

    Thanks for clarifying that one as I didn’t notice. That was exactly my problem and once I moved it into the ceremony object, it worked.

    I hate to ask but what is the difference between the HandOver object and the Complete object in the events object? They both have a redirect. What I did notice is that when I have multiple signers, including a notary, once a signer has finished, it will then redirect them to that new site, regardless of the fact that there are other signers. Is there a way to only get a redirect at the end of the total package and not after each signer?

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    I believe the redirect on the complete object is a placeholder for when auto-redirect is completed as a feature. As of right now, I don’t think it does anything.

    As for allowing the redirect only after the last signer, this isn’t currently available. This feature is typically only used for remote, integrated solutions, but I can see how this would be an issue if embedding an in-person ceremony into an application. The only things I can request, at this time, are to file an Enhancement Request with support and to look at using the JS event notifier I mentioned above. This would allow you to remove the handover URL and simply handle the redirect on your own.


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    Ryan_Coleman
    Senior Member
    Member since: 16.07.2018
    Number of posts: 101

    Score

    0

    mwilliams – Thanks for the information. I am leaning more towards the JS Event Notifier at this point as it looks more like something that we will be leveraging.

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Great! Let us know if you have any questions on that!


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120

You must be logged in to reply to this topic.