Skip to content
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

- tapOn: 'platformPay' crashes app (Apple Pay with Stripe Platform Pay) #2183

Open
1 task done
umrashrf opened this issue Dec 10, 2024 · 1 comment
Open
1 task done

Comments

@umrashrf
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

import React, { useState } from 'react';
import { StripeProvider, PlatformPay, PlatformPayButton } from '@stripe/stripe-react-native';

const [publishableKey, setPublishableKey] = useState(null);

// initialization, etc

render() {
return <StripeProvider
                publishableKey={publishableKey}
                merchantIdentifier="merchant.dev.mobile" // required for Apple Pay
              >
<PlatformPayButton
                    accessibilityLabel='platformPay'
                    onPress={() => this.pay()}
                    type={PlatformPay.ButtonType.Order}
                    appearance={PlatformPay.ButtonStyle.Black}
                  />
</StripeProvider>;
}
appId: dev.mobile.maestro
---
  - launchApp
  - tapOn: 'platformPay' # it passes 
  - tapOn: 'Pay with Passcode'

Actual results

Running on iPhone 16 - iOS 18.0 - 0ACD8DAB-D41E-4E20-A147-6820087C8147


║ > Flow: test

║ ✅ Launch app "dev.mobile.maestro"
║ ✅ Tap on "platformPay"
║ ❌ Tap on "Pay with Passcode"

Element not found: Text matching regex: Pay with Passcode

==== Debug output (logs & screenshots) ====

Expected results

Running on iPhone 16 - iOS 18.0 - 0ACD8DAB-D41E-4E20-A147-6820087C8147


║ > Flow: test

║ ✅ Launch app "dev.mobile.maestro"
║ ✅ Tap on "platformPay"
║ ✅ Tap on "Pay with Passcode"

Element not found: Text matching regex: Pay with Passcode

==== Debug output (logs & screenshots) ====

About app

Expo React Native Managed Flow
Using Stripe Pay and Stripe Platform Pay

About environment

java version "17.0.10" 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)

macOS 14.6.1 (23G93)

Pro M1 arm64?

Logs

Logs
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->

Maestro version

1.39.2

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

No response

Copy link

linear bot commented Dec 10, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant