It is worth checking the version of the strip vent you are using. Earlier versions returned the fee directly from the payment object, rather than creating an explicit refund. For example.
charge = Stripe::Charge.retrieve("ch_123")
charge.refund
It looks like this approach will still work with the last lowercase gem, although the documentation points to the approach Stripe::Refundyou tried, so I guess this is the best way with the last gem.
source
share