-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stripe with cy.origin will frame bust #25934
Comments
@tlolkema thank you for opening this so we can have our own issue thread. Would you be able to help me in getting a reproduction available? I created https://github.com/AtofStryker/cypress-issue-25934 which goes to a stripe payment demo but these are mostly embedded form fields without a redirect, so I don't have a reproduction of the actual issue 🙁 . |
Cool, i will set up an example |
Hi. I faced the same issue with Stripe payment
Also, a few day's ago I added related question with more details: #26014 Video capture with Cypress test - https://drive.google.com/file/d/1Tgi6bvLWfnVGzsGEfTmmVoIu_B9TG5Zb/view?usp=share_link |
@AtofStryker |
We have the reproduction in hand, but I am not to sure if framebusting is occurring. @kbodya is this what you are seeing in the console? The test runner/reporter still seems to be displayed in the Cypress app |
Hi, @AtofStryker Yes. The same error is in the console for me |
Interesting. It doesn't look like Stripe is framebusting here, which is good. But it doesn't work, which is currently expected I believe. Going to mark this as related to #21603 which should be completed when we fully support Stripe. We have some other issues with Stripe opened that we also need to address, which should fix other types of framebusting as well when the time comes. |
I wonder if looking into why the error message is happening could fall under |
@AtofStryker Is it planned to make fully support Stripe in the near future and fix this problem? |
@AtofStryker Amazing! Adding |
@kbodya That's great! we don't have plans to support iframes in the near future, but I did send something to support that that should work through a checkout (I used a test card on the registration link just a heads up). From what I can see, setting I believe @tlolkema 's issue is still valid here, but I am glad we were able to help here. |
Yes, it allows me to place an order and pay and test payment through Cypress works perfectly. Thanks a lot @AtofStryker |
@cabarcaGAP Yes we are seeing this same issue on our end. Have you come to any conclusions on how to resolve this or is this still an issue for y'all? |
@AtofStryker or all folks |
Current behavior
I was asked by @AtofStryker to create this issue:
#21603
Description
Our setup is as follows.
The flow with
cy.origin
will be as follows:See:
#21186 (comment)
Unfortunately the moment you will be redirected to Stripe the page will frame bust.
Setting
modifyObstructiveCode
will not prevent this frame busting.When setting
experimentalModifyObstructiveThirdPartyCode
the Stripe iframes to fill in your details are giving the error:IntegrationError: Elements must be used within an IFRAME
See:
#21603 (comment)
Desired behavior
Be able to use cy.origin in combination with a redirect to Stripe.
Either by making
modifyObstructiveCode
not frame bust the Stripe page or let theexperimentalModifyObstructiveThirdPartyCode
not break the Stripe Elements.Test code to reproduce
/
Cypress Version
11.0.1
Node version
18.14.2
Operating System
Mac Os 13.2.1 (22D68)
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: