Sha256: e860f45ac0108d0bfccf0efa821e6f0a4260b603579c397c45d773d0468f63d4
Contents?: true
Size: 459 Bytes
Versions: 2
Compression:
Stored size: 459 Bytes
Contents
# -*- coding: utf-8 -*- require 'models/chinabank' module Magpie class Chinabank include Utils def initialize(app, pay_gateway = "https://pay3.chinabank.com.cn/PayGate") @app = app @pay_gateway = pay_gateway @red_xpath = "//strong[@class='red']" end def call(env) status, header, body, req, red_text = dig env [status, header, get_xml_body(env, ChinabankModel.new(req.params), red_text)] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magpie-0.8.8.1 | lib/middles/chinabank.rb |
magpie-0.8.8 | lib/middles/chinabank.rb |