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

Getting error on using google pay props #1529

Closed
namanReact opened this issue Oct 9, 2023 · 1 comment
Closed

Getting error on using google pay props #1529

namanReact opened this issue Oct 9, 2023 · 1 comment

Comments

@namanReact
Copy link

I am using version "@Stripe/Stripe-react-native": "0.18.1" but I am not getting any props for that platform.

import React, {useEffect, useState } from 'react'
import { usePlatformPay } from '@stripe/stripe-react-native';

export default function GooglePayGateway() {
const { isPlatformPaySupported } = usePlatformPay();

useEffect(() => {
(async function () {
if (!(await isPlatformPaySupported({ googlePay: {testEnv: true} }))) {
Alert.alert('Google Pay is not supported.');
return;
}
})();
}, []);

img

@charliecruzan-stripe
Copy link
Collaborator

Fixed by #1524

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

2 participants