Module: NeotelisPay
- Defined in:
- lib/neotelis_pay.rb,
lib/neotelis_pay/result.rb,
lib/neotelis_pay/railtie.rb,
lib/neotelis_pay/service.rb,
lib/neotelis_pay/version.rb,
lib/neotelis_pay/utils/des.rb,
lib/neotelis_pay/utils/crypt.rb,
lib/neotelis_pay/utils/http_post.rb
Defined Under Namespace
Modules: Utils Classes: Railtie, Result, Service
Constant Summary collapse
- SERVICE_TYPE_SIGN_APPLY =
签约申请接口
'signApply'- SERVICE_TYPE_SIGN_CONFIRM =
签约确认接口
'signConfirm'- SERVICE_TYPE_PREPAY =
签约支付申请接口
'prepay'- SERVICE_TYPE_PAY_CONFIRM =
签约支付确认接口
'payConfirm'- SERVICE_TYPE_GATEWAY_PAY =
网关支付接口
'gatewayPay'- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.api_base_url ⇒ Object
Returns the value of attribute api_base_url.
-
.debug_mode ⇒ Object
merchant_id 商户账号 secret_key 加密key merchant_abbr 商户名称 product_name 商品名称 request_ip 请求地址.
-
.merchant_abbr ⇒ Object
merchant_id 商户账号 secret_key 加密key merchant_abbr 商户名称 product_name 商品名称 request_ip 请求地址.
-
.merchant_id ⇒ Object
merchant_id 商户账号 secret_key 加密key merchant_abbr 商户名称 product_name 商品名称 request_ip 请求地址.
-
.product_desc ⇒ Object
merchant_id 商户账号 secret_key 加密key merchant_abbr 商户名称 product_name 商品名称 request_ip 请求地址.
-
.product_name ⇒ Object
merchant_id 商户账号 secret_key 加密key merchant_abbr 商户名称 product_name 商品名称 request_ip 请求地址.
-
.request_ip ⇒ Object
merchant_id 商户账号 secret_key 加密key merchant_abbr 商户名称 product_name 商品名称 request_ip 请求地址.
-
.secret_key ⇒ Object
merchant_id 商户账号 secret_key 加密key merchant_abbr 商户名称 product_name 商品名称 request_ip 请求地址.
Class Method Summary collapse
Class Attribute Details
.api_base_url ⇒ Object
Returns the value of attribute api_base_url.
42 43 44 |
# File 'lib/neotelis_pay.rb', line 42 def api_base_url @api_base_url end |
.debug_mode ⇒ Object
merchant_id 商户账号secret_key 加密key merchant_abbr 商户名称product_name 商品名称request_ip 请求地址
41 42 43 |
# File 'lib/neotelis_pay.rb', line 41 def debug_mode @debug_mode end |
.merchant_abbr ⇒ Object
merchant_id 商户账号secret_key 加密key merchant_abbr 商户名称product_name 商品名称request_ip 请求地址
41 42 43 |
# File 'lib/neotelis_pay.rb', line 41 def merchant_abbr @merchant_abbr end |
.merchant_id ⇒ Object
merchant_id 商户账号secret_key 加密key merchant_abbr 商户名称product_name 商品名称request_ip 请求地址
41 42 43 |
# File 'lib/neotelis_pay.rb', line 41 def merchant_id @merchant_id end |
.product_desc ⇒ Object
merchant_id 商户账号secret_key 加密key merchant_abbr 商户名称product_name 商品名称request_ip 请求地址
41 42 43 |
# File 'lib/neotelis_pay.rb', line 41 def product_desc @product_desc end |
.product_name ⇒ Object
merchant_id 商户账号secret_key 加密key merchant_abbr 商户名称product_name 商品名称request_ip 请求地址
41 42 43 |
# File 'lib/neotelis_pay.rb', line 41 def product_name @product_name end |
.request_ip ⇒ Object
merchant_id 商户账号secret_key 加密key merchant_abbr 商户名称product_name 商品名称request_ip 请求地址
41 42 43 |
# File 'lib/neotelis_pay.rb', line 41 def request_ip @request_ip end |
.secret_key ⇒ Object
merchant_id 商户账号secret_key 加密key merchant_abbr 商户名称product_name 商品名称request_ip 请求地址
41 42 43 |
# File 'lib/neotelis_pay.rb', line 41 def secret_key @secret_key end |
Class Method Details
.client_options ⇒ Object
59 60 61 62 63 |
# File 'lib/neotelis_pay.rb', line 59 def = {"signType" => @sign_type, "version" => @version, "dev" => @dev} @client_options = @client_options end |
.client_params ⇒ Object
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/neotelis_pay.rb', line 48 def client_params uuid = UUID.new @request_id = uuid.generate params = {"merchantId" => @merchant_id, "requestId" => @request_id, "requestTime" => Time.now.strftime("%Y%m%d%H%M%S"), "requestIp" => @request_ip} @client_params = params @client_params end |
.debug_mode? ⇒ Boolean
65 66 67 |
# File 'lib/neotelis_pay.rb', line 65 def debug_mode? @debug_mode end |