lib/geee_pay/result.rb in geee_pay-0.1.0 vs lib/geee_pay/result.rb in geee_pay-0.1.1

- old
+ new

@@ -4,11 +4,11 @@ RESULT_SUCCESS_FLAG = '1' # 网关支付-银行编码 - BANK_CODE_MAP = { + LV_BANK_CODE_MAP = { '102' => '工商银行', '103' => '农业银行', '104' => '中国银行', '105' => '建设银行', '203' => '农业发展银行', @@ -27,9 +27,50 @@ '316' => '浙商银行', '318' => '渤海银行', '325' => '上海银行', '403' => '邮储银行', '440' => '徽商银行' + } + + # 扫码支付方式 + LV_SCAN_PAY_MODE = { + '00021' => '支付宝扫码', + '00022' => '微信扫码', + '00032' => 'QQ扫码', + '00027' => '京东扫码' + } + + LV_PAY_MODE = { + '00020' => '银行卡', + '00023' => '快捷', + '00024' => '支付宝Wap' + } + + # 到账类型 + LV_RECEIVABLE_TYPE = { 'D00' => 'D+0', 'T01' => 'T+1', 'D01' => 'D+1'} + + # 业务类型 + LV_WITHDRAW_TYPE = { '0' => '对私', '1' => '对公' } + + # 账户类型 + LV_ACCOUNT_TYPE = { '0' => '借记卡', '1' => '贷记卡' } + + # 订单状态:交易订单 + LV_TRAN_ORDER_STATUS= { + '00' => '未支付', + '01' => '支付成功', + '02' => '银行处理中', + '14' => '冻结', + '19' => '待处理' + } + + # 订单状态:代付订单 + LV_OTH_ORDER_STATUS = { + '00' => '未支付', + '01' => '已完成', + '14' => '冻结', + '02' => '银行处理中', + '22' => '退还支付账户' } def initialize(result) self.raw = result.to_s self.msg = result \ No newline at end of file