WhoBuilt

How to implement Stripe solution in mobile app

Apr 13, 2022· 5 min· 363 views·Watch on YouTube

Speakers

Charlie, whose role and company are not specified, explains Stripe's React Native integration on Callstack's podcast with host and main speaker Kubo.

Getting started with Stripe React Native

Kubo says Stripe provides SDKs for multiple platforms, including React Native. Developers can install `@stripe/stripe-react-native`, wrap the app in `StripeProvider`, and use the library's payment features.

UI options and backend work

The library includes hooks, functions, card input components, and a full payment screen. Kubo notes that Stripe payments also require backend functions, supported by official Stripe SDKs for many languages and frameworks.

Using the library with Expo

Kubo confirms developers can use familiar React Native hooks and providers to connect the components. He says the library also works with Expo, including in a fresh Expo app.

Native SDKs beneath the React Native layer

Charlie explains that the library calls Stripe's iOS and Android SDKs directly for both UI components and API operations. Developers can build custom payment UI with Stripe functions or use Payment Sheet, which presents a modal and returns success or error results.

Takeaways

  • Start a React Native integration with `@stripe/stripe-react-native` and `StripeProvider`.
  • Plan backend work alongside the mobile integration; the React Native library alone is not sufficient.
  • Choose between custom payment UI and Stripe's Payment Sheet based on how much interface control you need.
  • Stripe's React Native components use native iOS and Android SDKs under the JavaScript layer.
  • Expo can be used to build an app with Stripe payments.

Mentioned in this talk

Search inside this talk

What was claimed 5

Related talks