Module: Lanmao::Api::Trade::VerifyDeduct

Defined in:
lib/lanmao/form/trade/verify_deduct_form.rb

Instance Method Summary collapse

Instance Method Details

#verify_deduct_form(flow_id, platform_user_no, amount, target_platform_user_no, redirect_url, expired, custom_define = "") ⇒ Hash

验密扣费

Returns:

  • (Hash)

    结果集

    • :result [String] “S”/“F”/“P”

    • :request_params [Hash] 请求参数

    • :response [Object] 请求返回对象

    • :code [String] 结果代码

    • :msg [String] 结果信息

    • :data: 具体业务返回信息

      * :requestNo [String] 请求流水号
      * :code [Enum] 返回吗
      * :status [Enum] 业务处理状态(处理失败INIT;处理成功SUCCESS)
      * :errorCode [String] 错误码
      * :errorMessage [String] 错误描述
      


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/lanmao/form/trade/verify_deduct_form.rb', line 21

def verify_deduct_form(flow_id, platform_user_no, amount, target_platform_user_no, redirect_url, expired, custom_define="")

  service = "VERIFY_DEDUCT"

  params = {
    requestNo: flow_id,
    platformUserNo: platform_user_no,
    amount: amount,
    targetPlatformUserNo: target_platform_user_no,
    redirectUrl: redirect_url,
    expired: expired,
    customDefine: custom_define
  }

  res = get_form_data(service, params)

  res
end