stripe-pricing

1.1.5 • Public • Published

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

/stripe-pricing/

    Package Sidebar

    Install

    npm i stripe-pricing

    Weekly Downloads

    14

    Version

    1.1.5

    License

    MIT

    Unpacked Size

    11.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • michaelrhodes