# Html help with code

**URL:** <https://community.thunkable.com/t/html-help-with-code/1103392>\
**Category:** Questions about Thunkable X\
**Created:** [February 17, 2021, 9:22am UTC](https://community.thunkable.com/t/html-help-with-code/1103392 "2021-02-17T09:22:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)\
**Post date:** [February 17, 2021, 9:22am UTC](https://community.thunkable.com/t/html-help-with-code/1103392/1 "2021-02-17T09:22:57Z")

</div>

hi all i have create PayPal Checkout and i have the html code but how i can add to this code  
if payment is completed go to the url for the example [www.thunkable.com](http://www.thunkable.com)

 ![Screen Shot 2021-02-17 at 11.18.32 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/9/09e7ac6d137289e9dec711b700afbce0625185ce.png)

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [February 17, 2021, 11:41am UTC](https://community.thunkable.com/t/html-help-with-code/1103392/2 "2021-02-17T11:41:03Z")

</div>

use the open link block in control section

---

<div class="post-metadata">

**Author:** ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)\
**Post date:** [February 17, 2021, 11:54am UTC](https://community.thunkable.com/t/html-help-with-code/1103392/3 "2021-02-17T11:54:47Z")

</div>

i use the webviewer with html file this will not working  
i have to add this to the code in the file

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [February 17, 2021, 12:59pm UTC](https://community.thunkable.com/t/html-help-with-code/1103392/4 "2021-02-17T12:59:20Z")

</div>

Can you explain more?  
Are you trying to initiate the PayPal payment gateway?

Is this a callback function?

---

<div class="post-metadata">

**Author:** ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)\
**Post date:** [February 17, 2021, 1:14pm UTC](https://community.thunkable.com/t/html-help-with-code/1103392/5 "2021-02-17T13:14:41Z")

</div>

i have the html file with the PayPal payment gateway  
and i use the webviewer i want to take the user for my web site if the payment is completed  
but i dont know how to add this for the code in the html file

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [February 17, 2021, 1:32pm UTC](https://community.thunkable.com/t/html-help-with-code/1103392/6 "2021-02-17T13:32:50Z")

</div>

Do you mean the page has to redirect the user to another page after payment is completed?

You can use this `window.location.href = "http://www.the-other-website.com";`

---

<div class="post-metadata">

**Author:** ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)\
**Post date:** [February 17, 2021, 1:48pm UTC](https://community.thunkable.com/t/html-help-with-code/1103392/7 "2021-02-17T13:48:39Z")

</div>

thank you

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/html-help-with-code/1103392/8 "2024-11-08T13:29:23Z")

</div>


