Sha256: 4c32c6e92350d5d730176fc24ce1e83fb4e68e65697c1dcec55ae9c451e6bb77
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
module PayPal module Recurring module Response class Payment < Base mapping( :status => :PAYMENTINFO_0_PAYMENTSTATUS, :amount => :PAYMENTINFO_0_AMT, :fees => :PAYMENTINFO_0_FEEAMT, :seller_id => :PAYMENTINFO_0_SECUREMERCHANTACCOUNTID, :reference => [:PROFILEREFERENCE, :PAYMENTREQUEST_0_CUSTOM, :PAYMENTREQUEST_0_INVNUM] ) def completed? params[:PAYMENTINFO_0_PAYMENTSTATUS] == "Completed" end def approved? params[:PAYMENTINFO_0_ACK] == "Success" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems