{"repo":"confact/stripe.cr","free":true,"listed":false,"github":"https://github.com/confact/stripe.cr","clone":"git clone https://github.com/confact/stripe.cr.git","description":"Stripe API Wrapper for crystal","language":"Crystal","stars":51,"topics":["crystal","stripe"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Stripe Stripe API wrapper for Crystal. This version ( 1.0) is changed to follow Ruby's method and class structure. We will follow Stripe::Class.method but follow crystal parameters to take care of the types automatically. Notice This api wrapper was tested on api version 2020-03-02 but have been trying to make it flexible with String? and correspondent in the types. Installation Add this to your application's shard.yml : Usage custom API version You can set custom api version if needed. Version need to be set before first api call is called. otherwise it won't be used. Example of setting up a subscription Here is a simple way to setup a subscription by using payment method. Follow the instruction for setting up an subscription at stripe: https://stripe.com/docs/billing/subscriptions/set-up-subscription When the step is at server code, check the code below that is corresponding towards the ruby code for same step. Setting up an customer: create a subscription with that customer: The rest is frontend to check SCA and more. You should not need to do more than this on the backend. But follow https://stripe.com/docs/billing/subscriptions/set-up-subscription for the frontend part to make sure it works for SCA and other things. Progress API methods Core Balance - [x] Retrieve balance - [ ] Retrieve a balance transaction - [ ] List all balance history Charges - [x] Create a charge - [x] Retrieve a charge - [ ] Update a charge - [ ] Capture a charge - [ ] List all charges Sources - [x","default_branch":null,"files":null,"tree":[],"storefront":"/r/confact","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/confact/stripe.cr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}