Class: AlipayEscrow::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/alipay_escrow/base.rb

Direct Known Subclasses

Payment, Refund

Constant Summary collapse

GATEWAY =
'https://mapi.alipay.com/gateway.do?'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params, key, partner_id) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
13
# File 'lib/alipay_escrow/base.rb', line 8

def initialize(params, key, partner_id)
  @params = params
  @key = key
  @partner_id = partner_id
  @options = {}
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/alipay_escrow/base.rb', line 3

def key
  @key
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/alipay_escrow/base.rb', line 4

def options
  @options
end

#paramsObject (readonly)

Returns the value of attribute params.



3
4
5
# File 'lib/alipay_escrow/base.rb', line 3

def params
  @params
end

#partner_idObject (readonly)

Returns the value of attribute partner_id.



3
4
5
# File 'lib/alipay_escrow/base.rb', line 3

def partner_id
  @partner_id
end

Instance Method Details

#verifyObject



15
16
17
# File 'lib/alipay_escrow/base.rb', line 15

def verify
  signature_verify && notification_verify
end