stripe-pricing
v1.1.5
Published
an object representation of stripe’s international pricing
Downloads
15
Readme
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
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' }
]