Class Index [+]

Quicksearch

ActiveMerchant::Billing::Integrations::Chronopay::Notification

Public Instance Methods

acknowledge() click to toggle source
     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 151
151:           def acknowledge
152:             true
153:           end
city() click to toggle source

The customer’s city

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 98
 98:           def city
 99:             params['city']
100:           end
complete?() click to toggle source
   # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 6
6:           def complete?
7:             status == 'Completed'
8:           end
country() click to toggle source

The customer’s country - 3 digit country code

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 93
93:           def country
94:             params['country']
95:           end
currency() click to toggle source

The currency the purchase was made in

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 138
138:           def currency
139:             params['currency']
140:           end
custom2() click to toggle source

Additional parameter

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 128
128:           def custom2
129:             params['cs2']
130:           end
custom3() click to toggle source

Additional parameter

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 133
133:           def custom3
134:             params['cs3']
135:           end
customer_id() click to toggle source

Unique ID of customer

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 42
42:           def customer_id
43:             params['customer_id']
44:           end
date() click to toggle source

Date of transaction in MM/DD/YYYY format

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 68
68:           def date 
69:             params['date']
70:           end
email() click to toggle source

The customer’s email address

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 83
83:           def email
84:             params['email']
85:           end
gross() click to toggle source

the money amount we received in X.2 decimal.

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 143
143:           def gross
144:             params['total']
145:           end
item_id() click to toggle source

The item id passed in the first custom parameter

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 123
123:           def item_id
124:             params['cs1']
125:           end
language() click to toggle source

Language

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 57
57:           def language
58:             params['language']
59:           end
name() click to toggle source

The customer’s full name

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 78
78:           def name
79:             params['name']
80:           end
password() click to toggle source

Customer’s password for restricted access zone of Merchant’s Web-site, as chosen

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 118
118:           def password
119:             params['password']
120:           end
product_id() click to toggle source

ID of a product that was purchased

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 52
52:           def product_id
53:             params['product_id']
54:           end
received_at() click to toggle source
    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 61
61:           def received_at
62:             # Date should be formatted "dd-mm-yy" to be parsed by 1.8 and 1.9 the same way
63:             formatted_date = Date.strptime(date, "%m/%d/%Y").strftime("%d-%m-%Y")
64:             Time.parse("#{formatted_date} #{time}") unless date.blank? || time.blank?
65:           end
site_id() click to toggle source

Unique ID of Merchant’s web-site

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 47
47:           def site_id 
48:             params['site_id']
49:           end
state() click to toggle source

The customer’s state. Only useful for US Customers

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 108
108:           def state
109:             params['state']
110:           end
status() click to toggle source

Status of transaction. List of possible values:

onetime – one time payment has been made, no repayment required;
initial – first payment has been made, repayment required in corresponding period;
decline – charge request has been rejected;
rebill – repayment has been made together with initial transaction;
cancel – repayments has been disabled;
expire – customer’s access to restricted zone membership has been expired;
refund – request to refund has been received;
chargeback – request to chargeback has been received.

This implementation of Chronopay does not support subscriptions. The status codes used are matched to the status codes that Paypal sends. See Paypal::Notification#status for more details

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 23
23:           def status
24:             case params['transaction_type']
25:             when 'onetime'
26:               'Completed'
27:             when 'refund'
28:               'Refunded'
29:             when 'chargeback'
30:               'Reversed'
31:             else
32:               'Failed'
33:             end
34:           end
street() click to toggle source

The customer’s street address

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 88
88:           def street
89:             params['street']
90:           end
test?() click to toggle source
     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 147
147:           def test?
148:             date.blank? && time.blank? && transaction_id.blank?
149:           end
time() click to toggle source

Time of transaction in HH:MM:SS format

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 73
73:           def time
74:             params['time']
75:           end
transaction_id() click to toggle source

Unique ID of transaction

    # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 37
37:           def transaction_id
38:             params['transaction_id']
39:           end
username() click to toggle source

Customer’s login for restricted access zone of Merchant’s Web-site

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 113
113:           def username
114:             params['username']
115:           end
zip() click to toggle source

The customer’s zip

     # File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 103
103:           def zip
104:             params['zip']
105:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.