1.0.2 • Published 5 years ago

rnative-stripe-api v1.0.2

Weekly downloads
2
License
ISC
Repository
bitbucket
Last release
5 years ago

README

React Native Stripe API

What is this repository for?

  • This Library is used create payment method by using Publishable key

How do I get set up?

Installation

npm install rnative-stripe-api --save

Setup

import stripe from 'rnative-stripe-api'
const rnStripe = stripe('your publishable key')
const requestData = {
            "type": "card",
            "billing_details": {
                "email": "youruser@example.com",
                "name": "nameoncard",
            },
            "card": {
                "exp_month": "expireMonth",
                "exp_year": "expireYear",
                "number": "cardNumber"
            }
        }
let paymentMethod = rnStripe.createPaymentMethod(requestData)
submitPaymentMethodToserver(paymentMethod)
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago