rio icon indicating copy to clipboard operation
rio copied to clipboard

Add Full Stripe Checkout Example

Open bedbad opened this issue 9 months ago • 6 comments

Please add a Rio implementation for checkout example with stripe checkout session, success and cancel urls etc, because it is a basic example for webapp in order to decide to use your framework!

bedbad avatar Mar 11 '25 01:03 bedbad

If you folks wish to build such a demonstration, you may wish to use stripe-mock as the server endpoint for the Rio client. It's a drop-in replacement for the Stripe server that can be used for testing.

iwr-redmond avatar Mar 12 '25 07:03 iwr-redmond

We should start a public list with examples to add. I agree this would be nice to have and I'm sure people would like to contribute examples

mad-moo avatar Mar 12 '25 21:03 mad-moo

I think this is a pivotal example of choosing your framework - with it it's clear that the work done in can be monetized. Would even go as far as making it your first arriving user facing demo..

bedbad avatar Mar 13 '25 23:03 bedbad

I'm unsure about the claim regarding prioritization. Nonetheless, it may be possible to combine the existing authentication UI with the Stripe oauth and charge examples without whistling up the wind. A JSON file of "valid" sample accounts would be needed for the stripe-mock backend.

EDIT: You may wish to include some documentation and a sample for obfuscating a single file containing the Stripe secret and client keys.

iwr-redmond avatar Mar 14 '25 00:03 iwr-redmond

@bedbad I understand where you're coming from. Making money with web apps is obviously a huge driver. However, I think this is far less common with Rio's user group. In my experience Python developers are usually creating UIs for dashboards, personal projects, enterprise apps, and the like. Python has become the language of data processing, and in that context stripe isn't nearly as relevant as in other languages. Yes this is a good idea, but I don't think it's a high priority for Rio specifically.

mad-moo avatar Mar 14 '25 20:03 mad-moo

However, I think this is far less common with Rio's user group

Oh thank God, I thought I was more than one brick shy of a load for a moment there!

Yes this is a good idea, but I don't think it's a high priority for Rio specifically.

I do wonder whether a demo along the lines proposed would be more helpful than you realize, because it would be quite distinctive. Only Streamlit has something similar, and as with many of those addons it's not especially well maintained.

iwr-redmond avatar Mar 14 '25 20:03 iwr-redmond