#RubyDev-prices
1 messages · Page 1 of 1 (latest)
@true elm do you have a request ID req_xxx for that error? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Yes here it is
req_RSr9IXoeAIs1dR
yep you pass 4997.0 which is not an integer.
you probably want to round it in your code, I'd imagine (https://stackoverflow.com/questions/4346205/rounding-a-float-to-the-nearest-integer-in-ruby)
Shall I pass to unit_amount_decimal then?