| Class | ActiveMerchant::Billing::Integrations::Gestpay::Notification |
| In: |
lib/active_merchant/billing/integrations/gestpay/notification.rb
|
| Parent: | ActiveMerchant::Billing::Integrations::Notification |
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 45
45: def acknowledge
46: true
47: end
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 10
10: def complete?
11: status == 'Completed'
12: end
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 28
28: def currency
29: CURRENCY_MAPPING.index(params['PAY1_UICCODE'])
30: end
the money amount we received in X.2 decimal.
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 24
24: def gross
25: params['PAY1_AMOUNT']
26: end
The important param
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 15
15: def item_id
16: params['PAY1_SHOPTRANSACTIONID']
17: end
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 36
36: def status
37: case params['PAY1_TRANSACTIONRESULT']
38: when 'OK'
39: 'Completed'
40: else
41: 'Failed'
42: end
43: end
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 32
32: def test?
33: false
34: end