Sha256: 52437a9cd908402aafedbb26c262e9e1257932a55e840ed962c1b2a6628c1e65
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
module PayPal module ExpressCheckout module Response class Account < PayPal::ExpressCheckout::Response::Base has_fields :account # mapping( # :pal => :PAL, # :locale => :LOCALE # ) def balances @balances ||= begin index = 0 [].tap do |balances| while params["L_AMT#{index}"] balances << { :amount => params["L_AMT#{index}"].to_f, :currency => params["L_CURRENCYCODE#{index}"] } index += 1 end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paypal-payment-0.1.2 | lib/paypal/express_checkout/response/account.rb |