Stripe Checkout #9579
Unanswered
DragomirRhv
asked this question in
Questions and Help
Stripe Checkout
#9579
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
What version of Cypress are you using? There's an issue with Stripe Checkout detailed here that may be affecting you #9447 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have to call stripe.redirectToCheckout to take the customer to stripe checkout page. But the frame is lost when stripe navigates to the page. I got the following code:
`cy.intercept(
'GET',
'https://checkout.stripe.com/pay',
cy.get('#checkout-btn').click()`
I have attached a screenshot of the result:

Visually it is working but the frame is lost. I cannot do anything after that. Is there anyway just to intercept the request and to verify somehow, that it's going to redirect me to stripe domain page!?
If I use the code below:
cy.intercept( 'GET', 'https://checkout.stripe.com/pay', (request) => { return request.redirect({location: 'http:0.0.0.0:3000/something'}) } )
It is loading for a while because I have a loader before the redirect and then the frame is lost again.
Beta Was this translation helpful? Give feedback.
All reactions