Module: Wechat::Pay::Redpack
- Included in:
- Client
- Defined in:
- lib/wechat/pay/redpack.rb
Instance Method Summary collapse
- #group_redpack(transaction_id, openid, params = {}) ⇒ Object
- #redpack(transaction_id, openid, params = {}) ⇒ Object
- #redpack_info(transaction_id) ⇒ Object
Instance Method Details
#group_redpack(transaction_id, openid, params = {}) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/wechat/pay/redpack.rb', line 16 def group_redpack(transaction_id, openid, params = {}) post\ '/mmpaymkttransfers/sendgroupredpack', params.merge( mch_billno: tran_id(transaction_id), wxappid: @wxappid, re_openid: openid ) end |
#redpack(transaction_id, openid, params = {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/wechat/pay/redpack.rb', line 7 def redpack(transaction_id, openid, params = {}) post\ '/mmpaymkttransfers/sendredpack', params.merge( mch_billno: tran_id(transaction_id), wxappid: @wxappid, re_openid: openid ) end |
#redpack_info(transaction_id) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/wechat/pay/redpack.rb', line 25 def redpack_info(transaction_id) post\ '/mmpaymkttransfers/gethbinfo', mch_billno: tran_id(transaction_id), bill_type: 'MCHT', appid: @wxappid end |