Class: Wechatpay::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/wechatpay.rb

Constant Summary collapse

UNIFIED_ORDER_URL =
'https://api.mch.weixin.qq.com/pay/unifiedorder'

Class Attribute Summary collapse

Class Attribute Details

.app_idObject

app_id: 公众账号id, mch_id: 商户号, payment_key: 商户支付秘钥



14
15
16
# File 'lib/wechatpay.rb', line 14

def app_id
  @app_id
end

.mch_idObject

app_id: 公众账号id, mch_id: 商户号, payment_key: 商户支付秘钥



14
15
16
# File 'lib/wechatpay.rb', line 14

def mch_id
  @mch_id
end

.payment_keyObject

app_id: 公众账号id, mch_id: 商户号, payment_key: 商户支付秘钥



14
15
16
# File 'lib/wechatpay.rb', line 14

def payment_key
  @payment_key
end