HandOver / Redirect
Monday, July 10, 2023 at 01:05pmI 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.
Reply to: HandOver / Redirect
Monday, July 10, 2023 at 01:56pmHi 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
Reply to: HandOver / Redirect
Monday, July 10, 2023 at 01:10pmHi 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
Reply to: HandOver / Redirect
Monday, July 10, 2023 at 01:12pmI 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
Monday, July 10, 2023 at 01:21pmCan I have the package ID of your transaction?
Duo
Reply to: HandOver / Redirect
Monday, July 10, 2023 at 01:23pmSIzamyQs3T0gajGrCJ06Rw3klOA=
Reply to: HandOver / Redirect
Monday, July 10, 2023 at 01:32pmI 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
Reply to: HandOver / Redirect
Monday, July 10, 2023 at 01:46pmTried 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
Thursday, July 20, 2023 at 08:18amHi there,
Try this script directly. Don't forget to replace with your own api key and signer email.
Duo