So you need a payment gateway for your react-native app, and for any reason, your only best choice is iPay88.
You don't have to write your own sdk wrapper library.
There is already an open source library for you.
If you are looking to integrate iPay88 into your react-native app, take a look at this library.
I must say it is an awesome work from the developer.
You got to be extremely patience.
Chances are, you are going to spent a lot of time to get your issue (not your ticket) resolved.
So be earlier in your integration, do it as soon as possible!
To provide a bit of context to my experience, here is what I am trying to do:
If you are trying to enable credit card or online banking, you might have better experience integrating it.
So in order to enable selected/subscribed payment method, we need to provide
paymentId for respective payment method, and in my case, for Alipay.
Alipay is supported by the platform(that's why it is chosen), but there is no documentation on the
paymentId that need to be used, and you get
Invalid parameters(Payment Not Allow) error.
A ticket was submitted, and got a response the next working day with a link in it to integrate by using "standard integration API doc".
Then you get the same documentation and it don't have the
paymentId for Alipay.
The cycle repeats.
Another ticket was submitted, with greater precision on the issue(to avoid getting another reply with a link).
This time is different, I was asked to provide the merchant code, and redirect to contact with account manager.
After few more rounds, finally you got what you want. The
paymentId for Alipay payment method.
However, it still didn't work.
Invalid parameters(Payment Not Allow)
So the above cycle, repeats again.
It was due to unsupported currency that caused it, but you only can know after a lot of emails, and many days later.
So be sure to ask about the supported currency if you are integrating Alipay with iPay88.
If you are curious on the solutions, here you go.
You need to pass in
paymentId: 118 and
currency: 'CNY' if you are using Alipay.
iPay88 is great to be used for web integration. However, when it comes to mobile, there needs to be improvements.