Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@hideokamoto hideokamoto released this 10 Dec 13:15
· 15 commits to master since this release

Breaking Change

Client Constructor

Constructor prop has been changed.
We can set more various Stripe options.

Before

import {
  StripeClient
} from './index'

const apiKey = 'sk_test_xxx'
const client = new StripeClient(apiKey, 'test', true)

After

import {
  StripeClient
} from './index'

const apiKey = 'sk_test_xxx'
const client = new StripeClient(apiKey, {
  maxNetworkRetries: 2,
  stage: 'test',
  debugMode: 'enabled',
  apiVersion: '2019-12-01'
})

Allowed props

https://github.com/stripe/stripe-node/blob/master/lib/stripe.js#L30-L38