pay
stripe
Our great sponsors
pay | stripe | |
---|---|---|
17 | 8 | |
1,811 | 1,995 | |
1.7% | 1.8% | |
9.2 | 9.0 | |
24 days ago | 6 days ago | |
Ruby | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pay
-
Implement paypal in my Rails 6 app
I believe he was talking about the gem called "pay", see https://github.com/pay-rails/pay
-
June Stripe Developer Digest
Pay for Ruby on Rails: Pay , a payments engine for Ruby on Rails, has made it easier to build custom webhooks.
Rails: Open-source maintainer @excid3 has released version 4.0 of Pay Rails with built-in support for Stripe Tax, metered billing, multiple subscription items, and pausing subscriptions. In addition, @JeffMorhous covers how to sell a one-time purchase in Rails with Stripe.
- PayPal checkout integration with v2 API
-
DB Design for SaaS Subscriptions
In the Pay gem, we model all these tables and sync from Stripe using webhooks so that your local copy is always up-to-date and fast.
-
User registration for SaaS businesses - with a bonus!
Again, you don't technically need to store anything in your database. However, I recommend storing at least the string ID of the Stripe Customer (which looks like cus_abc123) in your database. You can store this directly on the users or teams table, or create a separate table for storing Stripe Customer IDs and their relation to PaymentMethods and Subscriptions. Maintaining a separate table offers a bit more flexibility later if you decide to change from supporting single users to teams. It also separates concerns. Have a look at the open source pay-rails database schema or the cashier-stripe migrations for inspiration for modeling your database. If you’d like more suggestions about how to model your database to work well with SaaS, let me know on Twitter: @cjav_dev.
-
Help with simple payment app! Which components can I use to build a full stack Rails and Hotwire based page, that can take subscription based payments?
I'd suggest checking out the pay gem. It won't do everything for you, but it'll get you part of the way.
-
New Episode! Chris Oliver on Code and the Coding Coders who Code it
Pay gem
- Payments Engine for Ruby on Rails
- Pay – Payments Engine for Ruby on Rails
stripe
-
August Stripe Developer Digest
New API version released: Version 2022-08-01 of the Stripe API has been released along with major version upgrades to all official client libraries, namely Dotnet, Go, Java, PHP, Node, Python, and Ruby. Read more about breaking changes in the API upgrades section and how to upgrade.
-
Ask HN: How can I “reset” the way I approach building software?
All I can give is my experience (been coding professionally for maybe 12-15 years) but I never looked at patterns like you are for a LONG time. I had no choice but to code in a "simple, straightforward" style because I didn't know anything fancy. I just did everything the normal, dumb way.
That said, things often become complicated because you don't have the skills to keep them simple (for example, you draw the boundaries between your modules wrong, or you fail to abstract the right things, leading to tight coupling and information leaking). So it's pretty normal for your software to be a mess for the first decade or so.
You should just keep writing your project, and as you find as the developer certain things on it are harder than they should be / frustrating / take too long, that will indicate a problem. Then you can keep trying to refactor until you get it right. Writing bad software is how you learn to write good software.
You asked for an example and I just gave you a bunch of philosophy, so I'll give you at least one. It depends on your language and what you're doing but I use Go a lot, and I think Stripe is pretty good at keeping things straightforward https://github.com/stripe/stripe-go
-
Stripe Open Sources Markdoc
Unfortunately my experience has been different; I found that Stripe's Go doc doesn't match their API and while searching on it I found that someone else had mentioned that to their personnel over freenode 2 years ago.
So I raised an issue on GitHub[1] on Apr 9 and hasn't been attended to yet.
On a more serious note, Stripe's payment links doc seemed to imply that tax rates are automatically calculated if the tax rates are set(as we do with code when we pass the tax_id), But I found after couple of payments that tax aren't being charged, On conversing on Twitter with the payment links dev I came to realize that the required option was not there for me[2] and then after couple of hours with their support staff I was informed that the options was not available for India as 'Stripe Tax' is a separate product.
Overall, I'm happy with Stripe's tech; at least compared to the other options I have. But their docs have caused me some frustrations.
[1] https://github.com/stripe/stripe-go/issues/1447
[2] https://twitter.com/joshuaackerman/status/144759582096702259...
-
Explore Stripe Tax and the new webhooks dashboard
Stay compliant with updated KYC regulations: We’ve added future_requirements support to our Java, PHP, .NET, Go, and Node SDKs. This parameter enables developers to know account verification requirements and deadlines.
-
The Idempotency-Key HTTP Header Field
A nice feature of keeping the idempotency key separate from the payload is that a service like Stripe can build tools to help users with idempotency even if the user has no idea what an idempotency key is.
For example, take a look at stripe-go's implementation, which automatically tags a request with a key if the user didn't specify one:
https://github.com/stripe/stripe-go/blob/67034d2205c0240ade9...
This works for all mutating requests, and is useful because the built-in retry system will automatically reuse the same key that was generated. Users can get the benefits of idempotency without really having to understand very well what's going on under the hood.
I suppose you could still do that by munging each request body, but IMO it's a nice feature to make sure that requests are the same as what the user specified. Also note that in practice the implementations are probably not that wildly different under the hood — despite being in a header, Stripe's idempotency is still being handled by the same application stack which processes the payment (i.e. not a middle box or load balancer).
-
Scalable developer video production
Stripe has seven main client libraries — Ruby, PHP, Python, Node, .NET, Go, and Java — and we wanted to give junior developers a foundation of broadly applicable knowledge to help them in all of their Stripe development going forward.
-
🎥 New developer foundations videos for our client libraries
Thank you to our top open-source contributors this month: joeltaylor, ybiquitous, gogainda (stripe-ruby); masterjus (stripe-php); westy92, msternow (stripe-android); ees37 (stripe-go); Fonata (stripe-cli); rdsedmundo (stripe-node); hibariya (stripe-samples); risentveber, vinistock, jaredbeck, ryanwilsonperkin, anandvc, RyanBrushett, paracycle (sorbet).
-
Incident response tips from firefighters 👩🚒 and new dev foundations videos
Thank you to our top open-source contributors this month: merrickfox, bayandin (stripe-go); KaanOzkan, Morriar, RyanBrushett, sharpobject, paracycle, kddeisz (sorbet); hibariya, maeda-kazuya, (stripe-samples); jofftiquez (stripe-js).
What are some alternatives?
Stripe.Net - Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com.
telegraph
paddle-billing-sdk - Paddle Billing API SDK for Node
paypal - Golang client for PayPal REST API
Stripe - Java library for the Stripe API.
telegram-bot-api - Golang bindings for the Telegram Bot API
bike_index - All the code for Bike Index, because we love you
go-webmoney - package for working with webmoney xml interfaces
saasblog - Ruby on Rails SaaS blog with Stripe. Active Subscribers can view premium posts. User can select Plan and subscribe. User can manage subscription via Stripe Billing Portal.
spotify - Go library for the Spotify Web API
stripe-android - Stripe Android SDK
geo-golang - Go library to access geocoding and reverse geocoding APIs