attempting to redirect to an external site using fetch

You have two choices with your options from YaadPay.

If you are embedding the html code into an html iframe on your page then you will need to add the moving to a new page within your existing html code.

As you’re using YaadPay, it is code from a third party provider which Wix will not provide support for
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
Wix cannot provide support for external codes that were not created or tested with Wix.
If you are experiencing an issue with your code snippet, please contact the provider directly.

So you will need to reach out to their own support to get help with adding this to their own html code that they supplied you with.

Otherwise, you will have to look into using their own API and either using Wix Fetch or Wix HTTP Functions to expose your site.

https://www.wix.com/corvid/reference/wix-fetch.html
https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api

https://www.wix.com/corvid/reference/wix-http-functions.html
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions

Wix Corvid Example.
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-myapi-and-myapiclient

Finally, you can use Wix HTML Component to pass data to a html component from your page or to a page from an html component as shown here.
https://support.wix.com/en/article/corvid-working-with-the-html-element
https://www.wix.com/corvid/reference/$w.HtmlComponent.html

As for using the src of the html component then make sure that you are using it correctly.
https://www.wix.com/corvid/reference/$w.HtmlComponent.html#src

Set the displayed website

$w("#myHtmlComponent").src = "https://en.wikipedia.org/wiki/HTTPS";