Sha256: acc9764afd8d0b33d5b1d79a2c93f1d8046da0989be76ddb314f2b258c868d09
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
module LlPay module RefundOrder def refund_order(params) params = LlPay::Utils.stringify_keys(params) params[:sign_type] = params[:sign_type] || LlPay.sign_type params[:oid_partner] = LlPay.oid_partner sign_params = { 'oid_partner' => params[:oid_partner], 'sign_type' => params[:sign_type], 'no_refund' => params[:no_refund], 'dt_refund' => params[:dt_refund], 'money_refund' => params[:money_refund], 'no_order' => params[:no_order], 'dt_order' => params[:dt_order], 'oid_paybill' => params[:oid_paybill], 'notify_url' => params[:notify_url] } params[:sign] = LlPay::Sign.generate(sign_params) request(:post, 'https://yintong.com.cn/traderapi/refund.htm', params) end def refund_order_query(params) params = LlPay::Utils.stringify_keys(params) params[:sign_type] = params[:sign_type] || LlPay.sign_type params[:oid_partner] = LlPay.oid_partner sign_params = { 'oid_partner' => params[:oid_partner], 'sign_type' => params[:sign_type], 'no_refund' => params[:no_refund], 'dt_refund' => params[:dt_refund], 'oid_refundno' => params[:oid_refundno] } params[:sign] = LlPay::Sign.generate(sign_params) request(:post, 'https://queryapi.lianlianpay.com/refundquery.htm', params) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ll_pay-0.5.0 | lib/ll_pay/refund_order.rb |