Files
tipsi-stripe/website/docs-md/usage.md
2018-04-03 15:23:28 +02:00

656 B

id, title, sidebar_label
id title sidebar_label
usage Usage Usage

Let's require tipsi-stripe module:

import stripe from 'tipsi-stripe'

And initialize it with your Stripe credentials that you can get from dashboard. If you want to use Apple Pay you must provide your Merchant ID.

stripe.setOptions({
  publishableKey: 'PUBLISHABLE_KEY',
  merchantId: 'MERCHANT_ID', // Optional
  androidPayMode: 'test', // Android only
})

androidPayMode String (Android only) - Corresponds to WALLET_ENVIRONMENT.
Can be one of: test|production.