I am working on a mobile app based on expo (react-native) and I need double check if the mobile device supports apple payment. I found a library for stripe payment system #stripe/stripe-react-native and there are files that return method isApplePaySupported - true/false.
I need to use that method without installing that package and I have tried to extract the code which does that validation - I see that declaration of that method in that file node_modules#stripe\stripe-react-native\src\NativeStripeSdk.tsx but I cant find implementation. I mean the code which I can run and get the same response with that isApplePaySupported method.
I do not have big experience in structure of those react modules, but I check all files and can find the only declaration without implementation of that code. Can someone help me?
To rewrite this function yourself, you'll have to write code that interfaces with native components, specifically PassKit.
My recommendation would be to just install that ReactNative SDK from Stripe and use its functions as it does everything you need it to. Especially if you're taking payments with Apple Pay, you need to run the payment through some payment provider, so if you're using Stripe then you need to use Stripe's SDK to actually accept a payment.
Related
As part of a project I'm developing an application for the care of people with cognitive disorders, it may happen that such a person forgets where he put his phone. Therefore, it needs functionality that will allow the phone to be automatically answered when a trusted number calls. I don't know what I could use to create such functionality.
I create the application using expo-react-native. I tried to use the expo-phone-call library, but I can't install it because it shows an error that such a library doesn't exist. On the other hand, when trying to use react-native-phone-call, I kept getting errors with importing things.
Trust me when I say I've tried every single solution people are currently downloading. tipsi-stripe, react-native-payments, react-native-paypal, you name it.
Every single guide says to link the library using link. Or automatically using yarn/npm. I've tried both ways, doesn't work. The new React Native version is certainly preventing this, and all the npm packages are failing. It seems no one can update the packages to work with react native yet.
If this is the case, how is anyone at all processing payments in react native? There doesn't appear to be any workable option here. Going to have to cancel my client's project due to impossible needs, simply payments.
I would think the best solution is to have a server or webservice that calls an API like PayPal v2/checkout/orders, to set up and capture a transaction. See "Create Order" and "Capture Order" here: https://developer.paypal.com/docs/business/checkout/server-side-api-calls/#server-side-api-calls
Then, for the approval flow, you can open a secure browser view to the approval_url the create call returns, having set the return_url in your creation to be a deeplink back to your app, which when opened immediately calls your server or webservice to do the capture and respond with success/failure.
I am trying to find a solid, scalable way of integrating stripe into a react native (managed workflow with expo) app for android & iOS.
There are several options. E.g.:
tipsi/stripe
expo/payments
Directly communicating with the stripe API (e.g. as described in this blog post)
I would like to go with option 3 as it's the one with the fewest overhead and most flexible (you don't need to eject expo, etc.). Now my question is, are there compliance/ security issues when directly calling the stripe API in a production mobile app? (Given the fact that payments need to follow a lot of restrictions and are a highly sensitive topic)
Thanks a lot
I'm trying to incorporate a feature into one of my apps that allows you to message users that are, at that moment, in and using the app. I've searched for a while now, but with no luck finding any article, API, npm package, etc, that supports this concept - if it even is possible.
I'd rather use an API than see when the user was last on the app via a timestamp and then "guess" if the user is still using the app.
I'm using React Native.
Check that AppState equals to 'active'.
https://facebook.github.io/react-native/docs/appstate
I am developing an app that can go through an array of phone numbers and call one by one. And when the user answers the call, an automated voice should be played. Can anyone please help me by giving some suggestions to develop this app. Please mention any useful packages that I can use for my use case.
This cannot be done only React Native. You have to use third party API. As there will be so many calls so it will be better to put that in backend. Here are some API you can use :-
Twilio
Exotel
Tropo