Closed denys-medynskyi closed 2 years ago
I am unable to set decimal price for my product. As I see in the Stripe API reference - decimal price is supported.
Any tips how I can workaround this?
How to reproduce the issue:
Stripe.price :community_points do |price| price.product_id = Stripe::Products::COMMUNITY_POINTS.id price.unit_amount_decimal = 5.5 end
rake stripe:prepare
rake aborted! NoMethodError: undefined method `unit_amount_decimal=' for #<Stripe::Prices::Configuration:0x00007fe4425afb80 @id=:community_point, @stripe_class=Stripe::Price, @stripe_configuration_class=Stripe::Prices, @currency="usd", @lookup_key="community_point", @recurring={}, @product_id=:community_point> Did you mean? unit_amount=
I need Package pricing and I don't think it is supported by API.
Package pricing
I am going to use UI https://stripe.com/docs/billing/prices-guide#create-prices
I am unable to set decimal price for my product. As I see in the Stripe API reference - decimal price is supported.
Any tips how I can workaround this?
How to reproduce the issue: