Kérian Pelat
Kérian Pelat

Reputation: 121

React Native - Which module do you use to make in-app payments?

I develop a game app to drink with React Native and ExpoKit so without authentication, I wanted to know if I wanted to make a monthly payment how I could know if the person had paid or not? AsyncStorage? Or develop a back end? Or to use Stripe as back end? And which module is the most recommended to be able to develop a payment with Apple Pay & Google Pay? I have test : https://github.com/tipsi/tipsi-stripe but I don't success to import StripeModule for iOS and also https://github.com/naoufal/react-native-payments but that doesn't work)

Upvotes: 2

Views: 1588

Answers (2)

Gaurav Roy
Gaurav Roy

Reputation: 12210

The way i have integrated in-app purchase is by following this article on medium which precisecly described how to integrate both on ios and android with ease. But keep in mind i've used bare react native ,i.e not expo. and i would recommend you to use pure react native for such complex functions.

RN -IAP

But if you wan to use expo , ive checked this on expo docs, hope it helps :: expo -in app purchase

And you would need a backend so that you can store the users after succesfull transactions. Hence backend is required.

Hope it helps. feel free for doubts,

Upvotes: 2

Shing Ho Tan
Shing Ho Tan

Reputation: 951

You can use react-native-iap.

https://github.com/dooboolab/react-native-iap

And here are some medium articles about that.

https://medium.com/dooboolab/react-native-in-app-purchase-121622d26b67? https://medium.com/dooboolab/react-native-iap-v3-1259e0b0c017

In here you could find, product and subscription. You can make a subscription in both android and ios. Also, you could send the result to backend after the user subscribes.

Upvotes: 2

Related Questions