# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 151 151: def acknowledge 152: true 153: end
The customer’s city
# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 98 98: def city 99: params['city'] 100: end
# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 6 6: def complete? 7: status == 'Completed' 8: end
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
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
Additional parameter
# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 128 128: def custom2 129: params['cs2'] 130: end
Additional parameter
# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 133 133: def custom3 134: params['cs3'] 135: end
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 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
The customer’s email address
# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 83 83: def email 84: params['email'] 85: end
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
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
# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 57 57: def language 58: params['language'] 59: end
The customer’s full name
# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 78 78: def name 79: params['name'] 80: end
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
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
# 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
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
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 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
The customer’s street address
# File lib/active_merchant/billing/integrations/chronopay/notification.rb, line 88 88: def street 89: params['street'] 90: end
# 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 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
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
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.