All Projects → Fitpassu → React Native Stripe Payments

Fitpassu / React Native Stripe Payments

Licence: mit
Lightweight, easy to integrate and use React native library for Stripe payments (using Payment Intents) compliant with SCA (strong customer authentication)

Programming Languages

java
68154 projects - #9 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to React Native Stripe Payments

wp-simple-pay-lite
Add high conversion Stripe payment forms to your WordPress site in minutes.
Stars: ✭ 31 (-60.26%)
Mutual labels:  stripe, payments
Digota
ecommerce microservice
Stars: ✭ 382 (+389.74%)
Mutual labels:  stripe, payments
drf-stripe-subscription
An out-of-box Django REST framework solution for payment and subscription management using Stripe.
Stars: ✭ 42 (-46.15%)
Mutual labels:  stripe, payments
Stripe Billing Typographic
⚡️Typographic is a webfont service (and demo) built with Stripe Billing.
Stars: ✭ 186 (+138.46%)
Mutual labels:  stripe, payments
Pinax Stripe
a payments Django app for Stripe
Stars: ✭ 650 (+733.33%)
Mutual labels:  stripe, payments
subscribie
Collect recurring payments online - subscription payments collection automation
Stars: ✭ 36 (-53.85%)
Mutual labels:  stripe, payments
Stripy
Micro wrapper for Stripe's REST API.
Stars: ✭ 49 (-37.18%)
Mutual labels:  stripe, payments
Laravel Stripe Webhooks
Handle Stripe webhooks in a Laravel application
Stars: ✭ 300 (+284.62%)
Mutual labels:  stripe, payments
Django Payments
Universal payment handling for Django.
Stars: ✭ 575 (+637.18%)
Mutual labels:  stripe, payments
Stripe Connect Rocketrides
Sample on-demand platform built on Stripe: Connect onboarding for pilots, iOS app for passengers to request rides.
Stars: ✭ 426 (+446.15%)
Mutual labels:  stripe, payments
Ngx Stripe
Angular 6+ wrapper for StripeJS
Stars: ✭ 128 (+64.1%)
Mutual labels:  stripe, payments
Elements Examples
Stripe Elements examples.
Stars: ✭ 874 (+1020.51%)
Mutual labels:  stripe, payments
Stripe Payments Demo
Sample store accepting universal payments on the web with Stripe Elements, Payment Request, Apple Pay, Google Pay, Microsoft Pay, and the PaymentIntents API. 💳🌍✨
Stars: ✭ 1,287 (+1550%)
Mutual labels:  stripe, payments
pinax-stripe-light
a payments Django app for Stripe
Stars: ✭ 670 (+758.97%)
Mutual labels:  stripe, payments
Gringotts
A complete payment library for Elixir and Phoenix Framework
Stars: ✭ 396 (+407.69%)
Mutual labels:  stripe, payments
Servicebot
Open-source subscription management & billing automation system
Stars: ✭ 857 (+998.72%)
Mutual labels:  stripe, payments
Dj Stripe
Django + Stripe Made Easy
Stars: ✭ 1,022 (+1210.26%)
Mutual labels:  stripe, payments
Payment icons
An easy to use library that allows you to manage and access payment icons
Stars: ✭ 59 (-24.36%)
Mutual labels:  payments
Gopay
💰 Integrace Gopay pro Nette Framework
Stars: ✭ 68 (-12.82%)
Mutual labels:  payments
Checkout Netlify Serverless
Sell products on the Jamstack with Netlify Functions and Stripe Checkout!
Stars: ✭ 58 (-25.64%)
Mutual labels:  stripe

React Native Stripe payments

A well typed React Native library providing support for Stripe payments on both iOS and Android.

React Native Stripe payments

Getting started

Starting September 14, 2019 new payments regulation is being rolled out in Europe, which mandates Strong Customer Authentication (SCA) for many online payments in the European Economic Area (EEA). SCA is part of the second Payment Services Directive (PSD2).

This library provides simple way to integrate SCA compliant Stripe payments into your react native app with a first class Typescript support.

Installation

$ yarn add react-native-stripe-payments

$ npx react-native link react-native-stripe-payments

The library ships with platform native code that needs to be compiled together with React Native. This requires you to configure your build tools which can be done with autolinking.

Usage

Setup

First of all you have to obtain Stripe account publishabe key. And then you need to set it for module.

import stripe from 'react-native-stripe-payments';

stripe.setOptions({ publishingKey: 'STRIPE_PUBLISHING_KEY' });

Validate the given card details

import stripe from 'react-native-stripe-payments';

const isCardValid = stripe.isCardValid({
  number: '4242424242424242',
  expMonth: 10,
  expYear: 21,
  cvc: '888',
});

One-time payments

import stripe from 'react-native-stripe-payments';

const cardDetails = {
  number: '4242424242424242',
  expMonth: 10,
  expYear: 21,
  cvc: '888',
}
stripe.confirmPayment('client_secret_from_backend', cardDetails)
  .then(result => {
    // result of type PaymentResult
  })
  .catch(err =>
    // error performing payment
  )

Reusing cards

Not supported yet, though as we're highly invested in development of our product which depends on this library we'll do it as soon as possible!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].