tipsi-stripe

tipsi-stripe

  • Docs
  • Blog

›Native Pay -  & G

Overview

  • Start here
  • Compatibility
  • Installation
  • Linking
  • Running  Pay on a real Device
  • Google Pay
  • Usage
  • Example
  • Payment Intent API
  • Save Card/Subscription
  • Migration
  • Changelog

Objects

  • Token
  • Source
  • Payment Method

Native Pay -  & G

  • .canMakeNativePayPayments()
  • .deviceSupportsNativePay()
  • .potentiallyAvailableNativePayNetworks()
  • .completeNativePayRequest()
  • .cancelNativePayRequest()

Card Form

  • .paymentRequestWithCardForm()

Card Params Object

  • .createTokenWithCard()

Bank Account Params Object

  • .createTokenWithBankAccount()

Create Source Object With Params

  • .createSourceWithParams()

Components

  • <PaymentCardTextField />

Error Codes

  • Error Codes

Tests

  • Local CI
  • Manual

Troubleshooting

  • Android
  • Jest
  • Tests
  • use_frameworks issue

Deprecated Docs

  • .openApplePaySetup()
  • .deviceSupportsApplePay()
  • .deviceSupportsAndroidPay()
  • .canMakeAndroidPayPayments()
  • .canMakeApplePayPayments()
  • .paymentRequestWithAndroidPay()
  • .paymentRequestWithApplePay()
  • .completeApplePayRequest()
  • .cancelApplePayRequest()

.potentiallyAvailableNativePayNetworks([options]) -> Promise

Provides a list of payment networks potentially available on this device for this specific operating system version.

All Platforms

When referring to networks below, we mean values from this list:

  • american_express
  • cartes_bancaires
  • china_union_pay
  • discover
  • eftpos
  • electron
  • elo
  • id_credit
  • interac
  • jcb
  • mada
  • maestro
  • master_card
  • private_label
  • quic_pay
  • suica
  • visa
  • vpay

Example

import stripe from 'tipsi-stripe'

await stripe.potentiallyAvailableNativePayNetworks()
// -> returns null if Native Pay is disabled
// -> returns [] if it Native Pay is enabled, but it doesn't know what networks are available (on Android)
// -> returns [ 'american_express', 'discover', ...a list of all supported networks, documented above...]

Android Note -- this returns [] an empty array or null, as the networks aren't exposed to application code

← .deviceSupportsNativePay().completeNativePayRequest() →
Docs
Getting StartedRunning on DeviceAPI Reference
More
BlogGitHubStar
Copyright © 2019 Tipsi.