You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rnative-stripe-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnative-stripe-api

This module is used to call stripe api directly without client library using form-urlencoded

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
3
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

stripe

FAQs

Package last updated on 04 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts