Classic

HandOver / Redirect

0 votes

I have attached my JSON code.

I need OneSpan to redirect to a success link if possible after signing. I did some searching and found that instead it would be a button to go to the success page but a redirect is preferred.


Approved Answer

Reply to: HandOver / Redirect

0 votes

Hi Classic,

 

I added extra brackets, try below code:

       "settings" =>[      
                "ceremony" => [                        
                        "handOver" => [                                
                                        "title" => "Please wait, you will be redirected",
                                        "href" => "http://localhost/demo/page/quote/insurance/bound.php",
                                        "text" => "Exit to site",
                                        "autoRedirect" => true                                
                                ]                        
                ]                
        ]

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: HandOver / Redirect

0 votes

Hi there,

 

Do you mean to automatically redirect to your handover URL without having signer manually clicked the button? If that's the case, try to set "autoRedirect" => true like below:

......

        "ceremony" => [
                [
                "handOver" => [
                        [
                                "title" => "Please wait, you will be redirected",
                                "href" => "http://localhost/demo/page/quote/insurance/bound.php",
                                "text" => "Exit to site",

                                "autoRedirect" => true,
                        ]
                        ]
                ]

......

 

Let me know how this works for you.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: HandOver / Redirect

0 votes

I tried that, there is no button or auto redirect.

I think there's something wrong with the code.

I can have it setup a signing ceremony but no redirect happens after it's done.


Reply to: HandOver / Redirect

0 votes

Can I have the package ID of your transaction?

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: HandOver / Redirect

0 votes

SIzamyQs3T0gajGrCJ06Rw3klOA=


Reply to: HandOver / Redirect

0 votes

I see, it should be "settings" > "ceremony" > "handOver". Try to create a new transaction with below node:

 

"settings" =>[
        [
        "ceremony" => [
                [
                "handOver" => [
                        [
                                "title" => "Please wait, you will be redirected",
                                "href" => "http://localhost/demo/page/quote/insurance/bound.php",
                                "text" => "Exit to site",

                                "autoRedirect" => true
                        ]
                        ]
                ]
        ]

        ]
]

 

Duo

 

 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: HandOver / Redirect

0 votes

Tried that, goes to Unhandled Server Error.

 

This only happens when using "settings" as you recommended. Without that, and using the old code there is no issue except it doesn't work.


Reply to: HandOver / Redirect

0 votes

Hi there,

 

Try this script directly. Don't forget to replace with your own api key and signer email.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off