1.1.5 • Published 5 years ago

stripe-pricing v1.1.5

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

stripe-pricing

This is an object representation of Stripe’s international pricing. Each supported country can be accessed by its ISO 3166-1 alpha-2 country code

Build status

Install

$ npm install stripe-pricing

Usage

var pricing = require('stripe-pricing')
var coerced = require('stripe-pricing/coerced')

pricing['AU']
=> [
  { percentage: '1.75%', fee: '30¢', description: 'Domestic cards' },
  { percentage: '2.9%', fee: '30¢', description: 'International + AmEx' }
]

// This may be helpful if you plan to do maths with the values.
coerced['AU']
=> [
  { percentage: 0.0175, fee: 30, description: 'Domestic cards' },
  { percentage: 0.029, fee: 30, description: 'International + AmEx' }
]

License

MIT

1.1.5

5 years ago

1.1.4

6 years ago

1.1.3

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago