# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 67 def account params["ACCT"] end
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 71 def acknowledge true end
Was the transaction complete?
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 10 def complete? status == "Completed" end
What currency have we been dealing with
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 44 def currency nil end
the money amount we received in X.2 decimal.
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 39 def gross params['AMT'] end
This is the invoice which you passed to paypal
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 58 def invoice params['INVNUM'] end
This is the item number which we submitted to paypal
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 53 def item_id params['USER1'] end
When was this payment received by the client. sometimes it can happen that we get the notification much later. One possible scenario is that our web application was down. In this case paypal tries several times an hour to inform us about the notification
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 18 def received_at DateTime.parse(params['TRANSTIME']) if params['TRANSTIME'] rescue ArgumentError nil end
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 24 def status params['RESPMSG'] end
Was this a test transaction?
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 63 def test? params['USER2'] == 'true' end
Generated with the Darkfish Rdoc Generator 2.