#Ansel
1 messages ยท Page 1 of 1 (latest)
๐ Hello! Give me a few mi nutes and I'd be happy to help
Quick question - are you already using metered prices to create your Subscriptions?
metered prices? I'm not familiar with that
Think of it like an AWS type service. People can add something, use it for a period of time, and then stop using it.
We do have a per-minute charge
https://stripe.com/docs/products-prices/pricing-models#usage-based-pricing -> this sounds like exactly what you want
but it depends on the service
so is there a way to do this without setting all that up in Stripe ahead of time?
We really just want to have an API to run the card, and I'm not too keen on reproducing everything from our system into Stripe's...
I don't want to put the invoice details into stripe, effectively, I just want to reference "invoice xxxxx" and then run the card
KISS and all that
If all you need to do is collect payment method details then yes, this is something you can do with react
Have you read these docs? https://stripe.com/docs/payments/save-and-reuse
awesome! thanks.
this is probably what I want. (goes to read)
in the docs, is there an easy way to connect the dots from the default ruby code its showing into JS? curiously JS isn't even listed as one of the valid languages. Let alone React...
oh :face-palm: Node?
Yeah you'll want Node for the server-side code
and for the client-side code down here (https://stripe.com/docs/payments/save-and-reuse?platform=web&client=react#web-collect-payment-details) we give you the choice to switch to react
we have Elixir on the server side, but either way, I hope the stripey stripe lib can handle it (I'll dig into that later)
๐
cool adding client=react to the url is a good hint. I wasn't seeing it in the listed options.
FWIW, this is to manage a bare-metal-cloud-like service (https://cato.digital)
I need to head out now, but if you have any other questions synthrider is around to answer them