qaengray
qaengray

Reputation: 11

Automation testing stripe Google and apple pay

I'm trying to write automated tests for scenarios where customer can pay using apple pay or Google pay. We use stripe as our payment processor. When I click on Apple pay or Google pay it a new browser secure element pops and I couldn't find a way to interact with them. Looking for help as I'm stuck here.

Upvotes: 1

Views: 1911

Answers (2)

Lisa Smith
Lisa Smith

Reputation: 1

For automation testing of Stripe, Google Pay, and Apple Pay, you can use a combination of the following tools and approaches:

Selenium: For web-based payment flow selenium automation companies. Appium: For mobile app automation, including payment flows on Android and iOS. Stripe API Testing: Use Postman or automated scripts to test Stripe's API endpoints. Google Pay and Apple Pay Test Environments: Use sandbox environments provided by Google and Apple for testing payment integrations. These tools help ensure comprehensive testing of payment integrations across different platforms.

Upvotes: 0

Paul Asjes
Paul Asjes

Reputation: 5847

You can't interact with those by design as that would be a security risk. Instead you should look at mocking the responses from those instead.

In the case of Stripe's PaymentRequest API you should see if you can mock the "paymentmethod" event: https://stripe.com/docs/js/payment_request/events/on_paymentmethod

Upvotes: 1

Related Questions