lib/offsite_payments/integrations/paypal.rb
# Collection of notification items returned for MassPay transactions
Collection of notification items returned for MassPay transactions
Collection of notification items returned for MassPay transactions
def items
          @items ||= (1..number_of_mass_pay_items).map do |item_number|
            MassPayItem.new(
              params["masspay_txn_id_#{item_number}"],
              params["mc_gross_#{item_number}"],
              params["mc_fee_#{item_number}"],
              params["mc_currency_#{item_number}"],
              params["unique_id_#{item_number}"],
              params["receiver_email_#{item_number}"],
              params["status_#{item_number}"]
            )
          end
        end
def items @items ||= ( 1 .. number_of_mass_pay_items ) . map do | item_number | MassPayItem . new ( params [ "masspay_txn_id_#{item_number}" ] , params [ "mc_gross_#{item_number}" ] , params [ "mc_fee_#{item_number}" ] , params [ "mc_currency_#{item_number}" ] , params [ "unique_id_#{item_number}" ] , params [ "receiver_email_#{item_number}" ] , params [ "status_#{item_number}" ] ) end end
Collection of notification items returned for MassPay transactions
Collection of notification items returned for MassPay transactions