# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 67 67: def account 68: params["ACCT"] 69: end
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 71 71: def acknowledge 72: true 73: end
Was the transaction complete?
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 10 10: def complete? 11: status == "Completed" 12: end
What currency have we been dealing with
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 44 44: def currency 45: nil 46: end
the money amount we received in X.2 decimal.
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 39 39: def gross 40: params['AMT'] 41: end
This is the invoice which you passed to paypal
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 58 58: def invoice 59: params['INVNUM'] 60: end
This is the item number which we submitted to paypal
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 53 53: def item_id 54: params['USER1'] 55: 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 18: def received_at 19: DateTime.parse(params['TRANSTIME']) if params['TRANSTIME'] 20: rescue ArgumentError 21: nil 22: end
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 24 24: def status 25: params['RESPMSG'] 26: end
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 48 48: def status 49: params['RESULT'] == '0' ? 'Completed' : 'Failed' 50: end
Was this a test transaction?
# File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 63 63: def test? 64: params['USER2'] == 'true' 65: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.