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