D
D
Daniel_Pro2020-07-07 21:26:42
Mobile development
Daniel_Pro, 2020-07-07 21:26:42

How to add a payment system to a react native application to get additional features?

I am developing an application. (you need to make an application with testing). and there you need to add a payment system to open additional opportunities.
what is the best way to make such a system? are there any ready made widgets for this under RN. I work through EXPO. there is but they work with Stripe, but in Russia this system does not accept.
Please tell us about the principle of payment in applications in general and are there any problems with the app store and google play with this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Alexandrovich, 2020-07-07
@RomReed

I made payment on RN cli using https://github.com/dooboolab/react-native-iap. There, as for me, the logic is rather complicated, but the payment application still works.
as an option https://github.com/naoufal/react-native-payments and there is also https://medium.com/enappd/implement-apple-pay-in-r... this is the instruction for it. expo has an eject function I haven't tried it myself, but you can try adding one of them with it. As for Stripe and other payment systems, you need to look in the documentation to see if there is an sdk for mobile phones and hope that someone has already made a package for working with this payment system. Well, or implement a class yourself that will pull native functions that access the sdk.

G
Georgy Khromchenko, 2020-07-20
@Mox

It's a little tricky.
I used react-native-payments, but I spent a lot of time and had to patch - the library is abandoned, there is nothing better.
Important - it was just for paying through a bank using Apple Pay.
Perhaps in-app purchases, when the account is indicated directly in the second, are easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question