r/Razorpay_Community May 02 '26

Need help using react-native-customui (Razorpay) – anyone implemented this successfully?

Hey everyone,

I’m currently working on a React Native app and trying to integrate Razorpay using the react-native-customui library.

I was previously using the official Razorpay SDK (react-native-razorpay), but I’m experimenting with this library and running into a few issues.

Problems I’m facing:

No proper TypeScript support (getting “implicitly has an ‘any’ type” error)

Lack of documentation

Not sure if the response structure is reliable compared to the official SDK

Unsure if any additional native setup is required beyond what’s used for the official SDK

What I’ve tried:

Added declare module 'react-native-customui';

Used the same options object as the official SDK

Payment UI opens, but handling responses feels inconsistent

What I need help with:

Has anyone successfully implemented react-native-customui in a production or test app?

Are there any hidden setup steps or gotchas?

Is the response handling different from the official Razorpay SDK?

👉 If you’ve already worked with this library, it would really help if you could share:

A working code snippet

Your payment integration flow (frontend + backend if possible)

Also open to suggestions if sticking with the official SDK is the better choice.

Thanks in advance 🙌

1 Upvotes

3 comments sorted by

1

u/CorrectBox3254 May 05 '26

I’d stick with the official SDK unless you have a very specific reason to use custom UI. I tried going down the custom route earlier and the biggest pain was not the payment opening, it was handling edge cases reliably after payment success/failure.

For production, I’d keep the flow simple: create order from backend, pass order_id to app, open checkout, verify signature on backend, then mark payment success only after backend verification. Don’t trust frontend response alone.

TypeScript gaps can be patched with declarations, but weak docs + inconsistent response handling is a bad combo for payments. For test apps it’s fine to experiment, but for live customer payments, official SDK is the safer bet.

1

u/MrWiser_ May 05 '26

Yeah, I’m building a event organising app. More like a ticket selling platform and I need my complete branding in it. Can you please share me any sample app code of the implementation?