Class: ActiveMerchant::Billing::Integrations::Migs::Return
- Inherits:
-
Return
- Object
- Return
- ActiveMerchant::Billing::Integrations::Migs::Return
show all
- Defined in:
- lib/active_merchant/billing/integrations/migs/return.rb
Instance Attribute Summary
Attributes inherited from Return
#notification, #params
Instance Method Summary
collapse
Methods inherited from Return
#cancelled?, #initialize, #parse
Instance Method Details
#acknowledge ⇒ Object
42
43
44
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 42
def acknowledge
signature == params['vpc_SecureHash']
end
|
#authorize_id ⇒ Object
18
19
20
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 18
def authorize_id
params['vpc_AuthorizeId']
end
|
#item_id ⇒ Object
10
11
12
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 10
def item_id
params['vpc_MerchTxnRef']
end
|
#message ⇒ Object
34
35
36
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 34
def message
params['vpc_Message']
end
|
#order ⇒ Object
30
31
32
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 30
def order
params['vpc_OrderInfo']
end
|
#payer_card ⇒ Object
26
27
28
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 26
def payer_card
params['vpc_Card']
end
|
#receipt_no ⇒ Object
22
23
24
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 22
def receipt_no
params['vpc_ReceiptNo']
end
|
#response_code ⇒ Object
38
39
40
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 38
def response_code
params['vpc_TxnResponseCode']
end
|
#signature ⇒ Object
46
47
48
49
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 46
def signature
unescape_params = params.map
Helper::sign(@options[:credential2], params)
end
|
#success? ⇒ Boolean
6
7
8
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 6
def success?
acknowledge && params['vpc_TxnResponseCode'] == '0'
end
|
#transaction_no ⇒ Object
14
15
16
|
# File 'lib/active_merchant/billing/integrations/migs/return.rb', line 14
def transaction_no
params['vpc_TransactionNo']
end
|