afer apple pay success, how to redirect to another Web URL

in the javascript code, when apply pay success, I try to redirect user to another web to show the success info of the trade.

session.completePayment(JSON.parse(ApplePaySession.STATUS_SUCCESS));
window.location.href = /ok.html

But I try many ways(e.g. like above) to do so, it still fails.
any comment or solution .please.
thanks
Keep in mind to make sure the user has had the appropriate amount of time to review the success message before redirecting them to another page.

After the user has done so, try using a full URL to redirect them.

Code Block javascript
window.location.href = "https://www.apple.com";


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
afer apple pay success, how to redirect to another Web URL
 
 
Q