Module: Reapal::Api::Money::MemberPaymentQuery
- Defined in:
- lib/reapal/api/money/member_payment_query.rb
Instance Method Summary collapse
Instance Method Details
#member_payment_query(member_payment_flow_id) ⇒ Hash
2.7 会员缴费查询
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/reapal/api/money/member_payment_query.rb', line 23 def member_payment_query(member_payment_flow_id) service = 'reapal.trust.memberPaymentQuery' post_path = '/tender/rest.htm' params = { orderNo: member_payment_flow_id, queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } res = operate_post(:query, service, params, post_path, Http::ErrorCode.member_payment_query, ['0000']) if 'P' == res[:result] && '0001' == res[:data][:resultCode] res[:result] = 'F' end Reapal.logger.info res res end |