Class Index [+]

Quicksearch

ActiveMerchant::Billing::Integrations::PayflowLink::Notification

Public Instance Methods

account() click to toggle source
    # File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 67
67:           def account
68:             params["ACCT"]
69:           end
acknowledge() click to toggle source
    # File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 71
71:           def acknowledge
72:             true
73:           end
complete?() click to toggle source

Was the transaction complete?

    # File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 10
10:           def complete?
11:             status == "Completed"
12:           end
currency() click to toggle source

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
gross() click to toggle source

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
invoice() click to toggle source

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
item_id() click to toggle source

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
received_at() click to toggle source

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
status() click to toggle source
    # File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 24
24:           def status
25:             params['RESPMSG']
26:           end
status() click to toggle source
    # File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 48
48:           def status
49:             params['RESULT'] == '0' ? 'Completed' : 'Failed'
50:           end
test?() click to toggle source

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
transaction_id() click to toggle source

Id of this transaction (paypal number)

    # File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 29
29:           def transaction_id
30:             params['PNREF']
31:           end
type() click to toggle source

What type of transaction are we dealing with?

    # File lib/active_merchant/billing/integrations/payflow_link/notification.rb, line 34
34:           def type
35:             params['TYPE']
36:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.