Toss payments 개발자 커뮤니티Tp개커Toss payments 개발자 커뮤니티
Powered by
investigatorI
Toss payments 개발자 커뮤니티•3y ago•
5 replies
investigator

Using Payment Window inside iframe

Due to the nature of our integration, we need to render Payment Window inside an iframe. This iframe renders the payment windows calling another application so the iframe and the content are in different domains.
This is problematic in PC as the redirection tries to change the parent location (parent of the content is the window where the iframe is rendered), but due to cross origin policy, Toss Payment Window cannot change the location of the parent.

We get "Failed to set the href property on Location: The current window does not have permission to navigate the target frame to {successUrl}.

Is it possible to detect when Toss Pay Payment window will perform a redirection so we can pass the redirection url to the parent iframe and the parent do the redirection?

Thanks.
Toss payments 개발자 커뮤니티 banner
Toss payments 개발자 커뮤니티Join
Toss payments 개발자 커뮤니티입니다. 결제 연동하며 겪는 기술 문의부터, 결제 시장에 대한 다양한 정보까지 얻어가세요~
15,588Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Mastercard not showing up in payment window
AkiraAAkira / 🌎┃global-support
3y ago
Is Tosspay support other language in payment window?
Mohammad Hasibul HasanMMohammad Hasibul Hasan / 🌎┃global-support
2y ago
Change payment option is not coming using payment for credit card?
ramkumarRramkumar / 🌎┃global-support
2y ago
SDK payment window test environment: cannot get success url after execution
Jason ZhuJJason Zhu / 🌎┃global-support
8mo ago