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

no supported application for NFC Tag #882

Open
brijenTechtic opened this issue Feb 6, 2025 · 0 comments
Open

no supported application for NFC Tag #882

brijenTechtic opened this issue Feb 6, 2025 · 0 comments

Comments

@brijenTechtic
Copy link

Describe the bug
When Tap to Pay payment screen open in android and i tap a card its always say me no supported application for NFC Tag. Also in some device i didn’t even get the message .

Stripe Terminal React Native SDK version

"@stripe/stripe-terminal-react-native": "^0.0.1-beta.23",

Smartphone (please complete the following information):

  • Device: ['SM-S926B - 14', 'motorola]
  • OS: [14]

Code:
const collectPayment = async secret => {
try {
const clientSecret = secret;
console.log('Client secret:', clientSecret);
// Retrieve the payment intent
const collectResult = await retrievePaymentIntent(clientSecret);
console.log('Collect result:', collectResult?.paymentIntent);
if (collectResult.error) {
console.error('ERRRORRR', collectResult.error);
return;
}
// Collect the payment method
const collectPaymentResult = await collectPaymentMethod({
paymentIntent: collectResult?.paymentIntent,
});
if (collectPaymentResult.error) {
console.error('collectPaymentResult error', collectPaymentResult.error);
SimpleToast.show('Please try another card.');
Navigation.navigate('Scan');
return;
}
console.log('Collect payment result:', collectPaymentResult);
// Confirm the payment intent
const confirmResult = await confirmPaymentIntent({
paymentIntent: collectResult?.paymentIntent,
});
if (confirmResult.error) {
console.error('confirmResult error', confirmResult.error);
return;
}
updateBooking(eventBookingId, 'tapToPay');
console.log(
'Payment successful:',
confirmResult?.paymentIntent?.charges[0]?.paymentMethodDetails,
);
} catch (error) {
console.error('Payment failed:', error);
}
};

Screenshot:

https://prnt.sc/U_6u8H60IFmK

If anyone have idea then help me.....

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