Class: AlipayMini::Api::AlipayBase
- Inherits:
-
Object
- Object
- AlipayMini::Api::AlipayBase
show all
- Defined in:
- lib/alipay_mini/api/alipay_base.rb
Instance Method Summary
collapse
Instance Method Details
#method ⇒ Object
5
6
7
|
# File 'lib/alipay_mini/api/alipay_base.rb', line 5
def method
raise ArgumentError, "please set the correct api method name"
end
|
#sign_params(params) ⇒ Object
25
26
27
|
# File 'lib/alipay_mini/api/alipay_base.rb', line 25
def sign_params(params)
params.merge(sign: AlipayMini::Sign.generate(params))
end
|
#timestamp ⇒ Object
9
10
11
|
# File 'lib/alipay_mini/api/alipay_base.rb', line 9
def timestamp
Time.now.strftime("%Y-%m-%d %H:%M:%S")
end
|