stripe
Version, currently master branch1 version
- master branchlatestNov 6, 2018
github.com/vladfaust/stripe.cr
🚧 WIP 🚧 Stripe API wrapper 💳
Installation
# Add this to your shard.yml
dependencies:
stripe:
github: vladfaust/stripe.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.27.0- License
- MIT
- Author
- Vlad Faust
Dependencies
This version declares no dependencies.
README
Stripe
Stripe API wrapper for Crystal.
Installation
Add this to your application's shard.yml:
dependencies:
stripe:
github: vladfaust/stripe.cr
Usage
require "stripe"
stripe = Stripe.new("YOUR_API_TOKEN")
token = stripe.create_card_token(card: {
number: "4242424242424242",
exp_month: 12,
exp_year: 2019,
cvc: 123,
})
customer = stripe.create_customer(source: token)
charge = stripe.create_charge(amount: 1000, currency: "usd", customer: customer)
Progress
API methods
Core
Balance
☑️ Retrieve balance
⬜️ Retrieve a balance transaction
⬜️ List all balance history
Charges
☑️ Create a charge
⬜️ Retrieve a charge
⬜️ Update a charge
⬜️ Capture a charge
⬜️ List all charges
Customers
☑️ Create a customer
☑️ Retrieve a customer
☑️ Update a customer
⬜️ Delete a customer
⬜️ List all customers
Tokens
☑️ Create a card token
⬜️ Create a bank account token
⬜️ Create a PII token
⬜️ Create an account token
⬜️ Retrieve a token
Objects
Core
☑️ Balance
⬜️ Balance transaction
☑️ Charge
☑️ Customer
⬜️ Dispute
⬜️ Dispute evidence
⬜️ Event
⬜️ File
⬜️ File link
⬜️ Payout
⬜️ Product
☑️ Refund
☑️ Token
Payment methods
☑️ Bank account
☑️ Card
⬜️ Source
Connect
⬜️ Account
⬜️ Login link
⬜️ Application fee refund
⬜️ Application fee
⬜️ Country spec
⬜️ Top-up
⬜️ Transfer
⬜️ Transfer reversal
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/vladfaust/stripe.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- vladfaust Vlad Faust - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Nov 6, 2018
- Crystal
0.27.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/vladfaust/stripe.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1