Sha256: 95ba6375c4c6eb1583b8f5affe4a7326d5bab145c886adb92ef8c23b832ea627
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
module PayPal module ExpressCheckout module Response class Search < PayPal::ExpressCheckout::Response::Base def payments @payments ||= begin index = 0 [].tap do |payments| while params["L_TIMESTAMP#{index}"] payments << PayPal::ExpressCheckout::Payment.new({ :timestamp => params["L_TIMESTAMP#{index}"], :time_zone => params["L_TIMEZONE#{index}"], :payment_type => params["L_TYPE#{index}"], :email => params["L_EMAIL#{index}"], :name => params["L_NAME#{index}"], :transaction_id => params["L_TRANSACTIONID#{index}"], :status => params["L_STATUS#{index}"], :amount => params["L_AMT#{index}"].to_f, :currency => params["L_CURRENCYCODE#{index}"], :fee_amount => params["L_FEEAMT#{index}"].to_f, :net_amount => params["L_NETAMT#{index}"].to_f }) 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/search.rb |