Sha256: 2b1855e55700eafbdeae6a0f3202b17c43ecc126c7332c738da6f1626293e88c
Contents?: true
Size: 396 Bytes
Versions: 268
Compression:
Stored size: 396 Bytes
Contents
module ForestLiana class StripePaymentRefunder def initialize(params) @params = params Stripe.api_key = ForestLiana.integrations[:stripe][:api_key] end def perform return unless @params[:data][:attributes][:ids] @params[:data][:attributes][:ids].each do |id| ch = ::Stripe::Charge.retrieve(id) ch.refunds.create end end end end
Version data entries
268 entries across 268 versions & 1 rubygems