0.0.2 • Published 2 years ago

@fixers/stripe-js v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Stripe-js

This package is ESM only!

Just like the old good @stripe/stripe-js, but no side-effects, no console logs and no warnings.

Usage

import { loadStripe } from '@fixers/stripe-js'

// Stripe.js will not be loaded until `loadStripe` is called
const stripe = await loadStripe('pk_test_TYooMQauvdEDq54NiTphI7jx')

Disabling advanced fraud detection signals

If you would like to disable advanced fraud detection altogether, you need to manually load the script:

import { loadScript } from '@fixers/stripe-js'

const stripe = await loadScript({
  advancedFraudSignals: true
})

// Note: stripe is undefined in SSR
return stripe('pk_test_TYooMQauvdEDq54NiTphI7jx')
0.0.2

2 years ago

0.0.1

2 years ago