module OffsitePayments::Integrations::Paypal::MassPayNotification
Public Instance Methods
account()
click to toggle source
Mass pay returns a collection of MassPay Items, so inspect items to get the values
# File lib/offsite_payments/integrations/paypal.rb, line 330 def account end
currency()
click to toggle source
Mass pay returns a collection of MassPay Items, so inspect items to get the values
# File lib/offsite_payments/integrations/paypal.rb, line 322 def currency end
fee()
click to toggle source
Mass pay returns a collection of MassPay Items, so inspect items to get the values
# File lib/offsite_payments/integrations/paypal.rb, line 318 def fee end
gross()
click to toggle source
Mass pay returns a collection of MassPay Items, so inspect items to get the values
# File lib/offsite_payments/integrations/paypal.rb, line 314 def gross end
item_id()
click to toggle source
Mass pay returns a collection of MassPay Items, so inspect items to get the values
# File lib/offsite_payments/integrations/paypal.rb, line 326 def item_id end
items()
click to toggle source
Collection of notification items returned for MassPay transactions
# File lib/offsite_payments/integrations/paypal.rb, line 334 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
transaction_id()
click to toggle source
Mass pay returns a collection of MassPay Items, so inspect items to get the values
# File lib/offsite_payments/integrations/paypal.rb, line 310 def transaction_id end
Private Instance Methods
number_of_mass_pay_items()
click to toggle source
# File lib/offsite_payments/integrations/paypal.rb, line 350 def number_of_mass_pay_items @number_of_mass_pay_items ||= params.keys.select { |k| k.start_with? 'masspay_txn_id' }.size end